@@ -1,10 +1,10 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -if ( is_readable( __DIR__ . '/vendor/autoload.php' ) ) { |
|
4 | - require_once __DIR__ . '/vendor/autoload.php'; |
|
3 | +if (is_readable(__DIR__.'/vendor/autoload.php')) { |
|
4 | + require_once __DIR__.'/vendor/autoload.php'; |
|
5 | 5 | } |
6 | 6 | |
7 | -call_user_func( function () { |
|
7 | +call_user_func(function() { |
|
8 | 8 | // Set credits |
9 | 9 | $GLOBALS['wgExtensionCredits']['wikibase'][] = [ |
10 | 10 | 'path' => __FILE__, |
@@ -17,9 +17,9 @@ discard block |
||
17 | 17 | ]; |
18 | 18 | |
19 | 19 | // Initialize localization and aliases |
20 | - $GLOBALS['wgMessagesDirs']['WikibaseQualityExternalValidation'] = __DIR__ . '/i18n'; |
|
20 | + $GLOBALS['wgMessagesDirs']['WikibaseQualityExternalValidation'] = __DIR__.'/i18n'; |
|
21 | 21 | $GLOBALS['wgExtensionMessagesFiles']['WikibaseQualityExternalValidationAlias'] = |
22 | - __DIR__ . '/WikibaseQualityExternalValidation.alias.php'; |
|
22 | + __DIR__.'/WikibaseQualityExternalValidation.alias.php'; |
|
23 | 23 | |
24 | 24 | // Initalize hooks for creating database tables |
25 | 25 | $GLOBALS['wgHooks']['LoadExtensionSchemaUpdates'][] = |
@@ -38,8 +38,8 @@ discard block |
||
38 | 38 | // Define API modules |
39 | 39 | $GLOBALS['wgAPIModules']['wbqevcrosscheck'] = [ |
40 | 40 | 'class' => WikibaseQuality\ExternalValidation\Api\RunCrossCheck::class, |
41 | - 'factory' => function( ApiMain $main, $action ) { |
|
42 | - return WikibaseQuality\ExternalValidation\Api\RunCrossCheck::newFromGlobalState( $main, $action ); |
|
41 | + 'factory' => function(ApiMain $main, $action) { |
|
42 | + return WikibaseQuality\ExternalValidation\Api\RunCrossCheck::newFromGlobalState($main, $action); |
|
43 | 43 | } |
44 | 44 | ]; |
45 | 45 |