Skip to content

Commit f01ea4b

Browse files
committed
build: Upgrade mediawiki/mediawiki-codesniffer to v43.0.0
Change-Id: Id3ad71a055d19b1601b908ae5e1295463be81f0b
1 parent fcb70a0 commit f01ea4b

File tree

2 files changed

+19
-14
lines changed

2 files changed

+19
-14
lines changed

composer.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"php": ">=7.4.0"
3030
},
3131
"require-dev": {
32-
"mediawiki/mediawiki-codesniffer": "41.0.0",
32+
"mediawiki/mediawiki-codesniffer": "43.0.0",
3333
"mediawiki/mediawiki-phan-config": "0.14.0",
3434
"mediawiki/minus-x": "1.1.1",
3535
"ockcyp/covers-validator": "1.6.0",
@@ -56,5 +56,10 @@
5656
],
5757
"phan": "phan --allow-polyfill-parser --no-progress-bar",
5858
"phpcs": "phpcs -sp"
59+
},
60+
"config": {
61+
"allow-plugins": {
62+
"dealerdirect/phpcodesniffer-composer-installer": true
63+
}
5964
}
6065
}

src/Cli.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -58,19 +58,19 @@ public function __construct( $out, array $args ) {
5858
public function run() {
5959
try {
6060
switch ( $this->action ) {
61-
case 'get':
62-
$this->runGet();
63-
break;
64-
case 'list':
65-
$this->runList();
66-
break;
67-
case 'match':
68-
$this->runMatch();
69-
break;
70-
default:
71-
$this->exitCode = 1;
72-
$this->help();
73-
break;
61+
case 'get':
62+
$this->runGet();
63+
break;
64+
case 'list':
65+
$this->runList();
66+
break;
67+
case 'match':
68+
$this->runMatch();
69+
break;
70+
default:
71+
$this->exitCode = 1;
72+
$this->help();
73+
break;
7474
}
7575
} catch ( Throwable $e ) {
7676
$this->exitCode = 1;

0 commit comments

Comments
 (0)