Skip to content

Commit 3e72150

Browse files
author
libraryupgrader
committed
build: Updating mediawiki/mediawiki-codesniffer to 37.0.0
Change-Id: I94deb0cd5fccbfe5b6b943793206c256447619a0
1 parent f816772 commit 3e72150

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"php": ">=7.2.9"
3030
},
3131
"require-dev": {
32-
"mediawiki/mediawiki-codesniffer": "36.0.0",
32+
"mediawiki/mediawiki-codesniffer": "37.0.0",
3333
"mediawiki/minus-x": "1.1.1",
3434
"ockcyp/covers-validator": "1.3.3",
3535
"php-parallel-lint/php-console-highlighter": "0.5.0",

src/Cli.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function run() {
7676
}
7777
}
7878

79-
private function runGet() : void {
79+
private function runGet(): void {
8080
if ( count( $this->params ) !== 1 ) {
8181
$this->error( "The 'get' action requires one parameter." );
8282
return;
@@ -92,7 +92,7 @@ private function runGet() : void {
9292
$this->output( $value );
9393
}
9494

95-
private function runList() : void {
95+
private function runList(): void {
9696
if ( count( $this->params ) > 1 ) {
9797
$this->error( "The 'list' action accepts only one parameter." );
9898
return;
@@ -112,7 +112,7 @@ private function runList() : void {
112112
}
113113
}
114114

115-
private function runMatch() : void {
115+
private function runMatch(): void {
116116
if ( count( $this->params ) !== 1 ) {
117117
$this->error( "The 'match' action requires one parameter." );
118118
return;
@@ -133,7 +133,7 @@ private function runMatch() : void {
133133
}
134134
}
135135

136-
private function help() : void {
136+
private function help(): void {
137137
$this->output( <<<TEXT
138138
usage: {$this->self} <file> [<action>=list] [<parameters...>]
139139
@@ -146,17 +146,17 @@ private function help() : void {
146146
);
147147
}
148148

149-
private function error( string $text ) : void {
149+
private function error( string $text ): void {
150150
$this->exitCode = 1;
151151
$this->output( "\nerror: $text\n------\n" );
152152
$this->help();
153153
}
154154

155-
private function output( string $text ) : void {
155+
private function output( string $text ): void {
156156
fwrite( $this->out, $text . "\n" );
157157
}
158158

159-
public function getExitCode() : int {
159+
public function getExitCode(): int {
160160
return $this->exitCode;
161161
}
162162
}

tests/CdbTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class CdbTest extends \PHPUnit\Framework\TestCase {
88
/** @var string */
99
private $phpCdbFile, $dbaCdbFile;
1010

11-
protected function setUp() : void {
11+
protected function setUp(): void {
1212
parent::setUp();
1313
if ( !Reader::haveExtension() ) {
1414
$this->markTestSkipped( 'Native CDB support is not available.' );
@@ -21,7 +21,7 @@ protected function setUp() : void {
2121
$this->dbaCdbFile = tempnam( $temp, get_class( $this ) . '_' );
2222
}
2323

24-
protected function tearDown() : void {
24+
protected function tearDown(): void {
2525
unlink( $this->phpCdbFile );
2626
unlink( $this->dbaCdbFile );
2727
parent::tearDown();

tests/CliTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class CliTest extends \PHPUnit\Framework\TestCase {
1010
private const FIXTURE = __DIR__ . '/fixture/example.cdb';
1111
private $out;
1212

13-
protected function setUp() : void {
13+
protected function setUp(): void {
1414
$this->out = fopen( 'php://memory', 'rw' );
1515
}
1616

tests/Reader/DBATest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*/
1111
class DBATest extends \PHPUnit\Framework\TestCase {
1212

13-
protected function setUp() : void {
13+
protected function setUp(): void {
1414
parent::setUp();
1515
if ( !Reader::haveExtension() ) {
1616
$this->markTestSkipped( 'Native CDB support is not available.' );

tests/Reader/PHPTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class PHPTest extends \PHPUnit\Framework\TestCase {
1111
/** @var string */
1212
private $cdbFile;
1313

14-
protected function setUp() : void {
14+
protected function setUp(): void {
1515
parent::setUp();
1616
$temp = sys_get_temp_dir();
1717
if ( !is_writable( $temp ) ) {
@@ -20,7 +20,7 @@ protected function setUp() : void {
2020
$this->cdbFile = tempnam( $temp, get_class( $this ) . '_' );
2121
}
2222

23-
protected function tearDown() : void {
23+
protected function tearDown(): void {
2424
unlink( $this->cdbFile );
2525
parent::tearDown();
2626
}

0 commit comments

Comments
 (0)