Completed
Push — master ( f565ee...0c9187 )
by
unknown
06:37
created
WikibaseQualityExternalValidation.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@  discard block
 block discarded – undo
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'][] = array(
10 10
 		'path' => __FILE__,
@@ -17,8 +17,8 @@  discard block
 block discarded – undo
17 17
 	);
18 18
 
19 19
 	// Initialize localization and aliases
20
-	$GLOBALS['wgMessagesDirs']['WikibaseQualityExternalValidation'] = __DIR__ . '/i18n';
21
-	$GLOBALS['wgExtensionMessagesFiles']['WikibaseQualityExternalValidationAlias'] = __DIR__ . '/WikibaseQualityExternalValidation.alias.php';
20
+	$GLOBALS['wgMessagesDirs']['WikibaseQualityExternalValidation'] = __DIR__.'/i18n';
21
+	$GLOBALS['wgExtensionMessagesFiles']['WikibaseQualityExternalValidationAlias'] = __DIR__.'/WikibaseQualityExternalValidation.alias.php';
22 22
 
23 23
 	// Initalize hooks for creating database tables
24 24
 	$GLOBALS['wgHooks']['LoadExtensionSchemaUpdates'][] = 'WikibaseQualityExternalValidationHooks::onCreateSchema';
@@ -33,8 +33,8 @@  discard block
 block discarded – undo
33 33
 	// Define API modules
34 34
 	$GLOBALS['wgAPIModules']['wbqevcrosscheck'] = array(
35 35
 		'class' => 'WikibaseQuality\ExternalValidation\Api\RunCrossCheck',
36
-		'factory' => function( ApiMain $main, $action ) {
37
-			return \WikibaseQuality\ExternalValidation\Api\RunCrossCheck::newFromGlobalState( $main, $action );
36
+		'factory' => function(ApiMain $main, $action) {
37
+			return \WikibaseQuality\ExternalValidation\Api\RunCrossCheck::newFromGlobalState($main, $action);
38 38
 		}
39 39
 	);
40 40
 
@@ -46,13 +46,13 @@  discard block
 block discarded – undo
46 46
 	);
47 47
 
48 48
 	// Ids of certain Wikidata entities
49
-	if( !defined( 'INSTANCE_OF_PID' ) ) {
50
-		define( 'INSTANCE_OF_PID', 'P31' );
49
+	if (!defined('INSTANCE_OF_PID')) {
50
+		define('INSTANCE_OF_PID', 'P31');
51 51
 	}
52
-	if( !defined( 'IDENTIFIER_PROPERTY_QID' ) ) {
53
-		define( 'IDENTIFIER_PROPERTY_QID', 'Q19847637' );
52
+	if (!defined('IDENTIFIER_PROPERTY_QID')) {
53
+		define('IDENTIFIER_PROPERTY_QID', 'Q19847637');
54 54
 	}
55
-	if( !defined( 'STATED_IN_PID' ) ) {
56
-		define( 'STATED_IN_PID', 'P248' );
55
+	if (!defined('STATED_IN_PID')) {
56
+		define('STATED_IN_PID', 'P248');
57 57
 	}
58 58
 } );
Please login to merge, or discard this patch.