Legoktm has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/360286 )
Change subject: build: Updating mediawiki/mediawiki-codesniffer to 0.9.0
......................................................................
build: Updating mediawiki/mediawiki-codesniffer to 0.9.0
Change-Id: If4680c55c757dc8988c3c2a853061edf7e9cb807
---
M WikibaseJavaScriptApi.php
M composer.json
M resources.php
M resources.test.php
M src/resources.php
M tests/resources.php
6 files changed, 6 insertions(+), 8 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WikibaseJavaScriptApi
refs/changes/86/360286/1
diff --git a/WikibaseJavaScriptApi.php b/WikibaseJavaScriptApi.php
index 702a6a6..1465af1 100644
--- a/WikibaseJavaScriptApi.php
+++ b/WikibaseJavaScriptApi.php
@@ -13,7 +13,7 @@
}
if ( defined( 'MEDIAWIKI' ) ) {
- call_user_func( function() {
+ call_user_func( function () {
require_once __DIR__ . '/init.mw.php';
} );
}
diff --git a/composer.json b/composer.json
index a23026b..d6e5aad 100644
--- a/composer.json
+++ b/composer.json
@@ -21,7 +21,7 @@
},
"require-dev": {
"jakub-onderka/php-parallel-lint": ">=0.3 <0.10",
- "mediawiki/mediawiki-codesniffer": ">=0.4 <0.8",
+ "mediawiki/mediawiki-codesniffer": "0.9.0",
"jakub-onderka/php-console-highlighter": "0.3.2"
},
"autoload": {
diff --git a/resources.php b/resources.php
index bcecd2c..e2e29ac 100644
--- a/resources.php
+++ b/resources.php
@@ -7,7 +7,7 @@
*
* @codeCoverageIgnoreStart
*/
-return call_user_func( function() {
+return call_user_func( function () {
global $wgResourceModules;
$wgResourceModules = array_merge(
diff --git a/resources.test.php b/resources.test.php
index 528d59a..0316635 100644
--- a/resources.test.php
+++ b/resources.test.php
@@ -6,7 +6,7 @@
* @author H. Snater < [email protected] >
*/
global $wgHooks;
-$wgHooks['ResourceLoaderTestModules'][] = function(
+$wgHooks['ResourceLoaderTestModules'][] = function (
array &$testModules,
ResourceLoader &$resourceLoader
) {
diff --git a/src/resources.php b/src/resources.php
index 207b0eb..867fbf6 100644
--- a/src/resources.php
+++ b/src/resources.php
@@ -4,7 +4,7 @@
* @license GPL-2.0+
* @author Adrian Lang <[email protected]>
*/
-return call_user_func( function() {
+return call_user_func( function () {
preg_match( '+' . preg_quote( DIRECTORY_SEPARATOR ) .
'(?:vendor|extensions)'
. preg_quote( DIRECTORY_SEPARATOR ) . '.*+', __DIR__,
$remoteExtPath );
@@ -82,5 +82,4 @@
],
];
-
} );
diff --git a/tests/resources.php b/tests/resources.php
index 1da3c97..ec320de 100644
--- a/tests/resources.php
+++ b/tests/resources.php
@@ -6,7 +6,7 @@
*
* @codeCoverageIgnoreStart
*/
-return call_user_func( function() {
+return call_user_func( function () {
preg_match( '+' . preg_quote( DIRECTORY_SEPARATOR ) .
'(?:vendor|extensions)'
. preg_quote( DIRECTORY_SEPARATOR ) . '.*+', __DIR__,
$remoteExtPath );
@@ -39,5 +39,4 @@
],
],
];
-
} );
--
To view, visit https://gerrit.wikimedia.org/r/360286
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: If4680c55c757dc8988c3c2a853061edf7e9cb807
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikibaseJavaScriptApi
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits