Test Failed
Push — dependabot/composer/newinterna... ( 885eab )
by
unknown
52:13 queued 44:23
created
config.inc.php 1 patch
Indentation   +88 added lines, -88 removed lines patch added patch discarded remove patch
@@ -189,27 +189,27 @@  discard block
 block discarded – undo
189 189
 
190 190
 // request states
191 191
 $availableRequestStates = array(
192
-    'Open'          => array(
193
-        'defertolog' => 'users', // don't change or you'll break old logs
194
-        'deferto'    => 'users',
195
-        'header'     => 'Open requests',
196
-        'api'        => "open",
197
-        'queuehelp'  => null
198
-    ),
199
-    'Flagged users' => array(
200
-        'defertolog' => 'flagged users', // don't change or you'll break old logs
201
-        'deferto'    => 'flagged users',
202
-        'header'     => 'Flagged user needed',
203
-        'api'        => "admin",
204
-        'queuehelp'  => 'This queue lists the requests which require a user with the <code>accountcreator</code> flag to create.<br />If creation is determined to be the correct course of action, requests here will require the overriding the AntiSpoof checks or the title blacklist in order to create. It is recommended to try to create the account <em>without</em> checking the flags to validate the results of the AntiSpoof and/or title blacklist hits.'
205
-    ),
206
-    'Checkuser'     => array(
207
-        'defertolog' => 'checkusers', // don't change or you'll break old logs
208
-        'deferto'    => 'checkusers',
209
-        'header'     => 'Checkuser needed',
210
-        'api'        => "checkuser",
211
-        'queuehelp'  => null
212
-    ),
192
+	'Open'          => array(
193
+		'defertolog' => 'users', // don't change or you'll break old logs
194
+		'deferto'    => 'users',
195
+		'header'     => 'Open requests',
196
+		'api'        => "open",
197
+		'queuehelp'  => null
198
+	),
199
+	'Flagged users' => array(
200
+		'defertolog' => 'flagged users', // don't change or you'll break old logs
201
+		'deferto'    => 'flagged users',
202
+		'header'     => 'Flagged user needed',
203
+		'api'        => "admin",
204
+		'queuehelp'  => 'This queue lists the requests which require a user with the <code>accountcreator</code> flag to create.<br />If creation is determined to be the correct course of action, requests here will require the overriding the AntiSpoof checks or the title blacklist in order to create. It is recommended to try to create the account <em>without</em> checking the flags to validate the results of the AntiSpoof and/or title blacklist hits.'
205
+	),
206
+	'Checkuser'     => array(
207
+		'defertolog' => 'checkusers', // don't change or you'll break old logs
208
+		'deferto'    => 'checkusers',
209
+		'header'     => 'Checkuser needed',
210
+		'api'        => "checkuser",
211
+		'queuehelp'  => null
212
+	),
213 213
 );
214 214
 
215 215
 $defaultRequestStateKey = 'Open';
@@ -262,24 +262,24 @@  discard block
 block discarded – undo
262 262
 require_once('config.local.inc.php');
263 263
 
264 264
 $cDatabaseConfig = array(
265
-    "acc"           => array(
266
-        "dsrcname" => "mysql:host=" . $toolserver_host . ";dbname=" . $toolserver_database,
267
-        "username" => $toolserver_username,
268
-        "password" => $toolserver_password,
265
+	"acc"           => array(
266
+		"dsrcname" => "mysql:host=" . $toolserver_host . ";dbname=" . $toolserver_database,
267
+		"username" => $toolserver_username,
268
+		"password" => $toolserver_password,
269 269
 		"options"  => array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8mb4'),
270
-    ),
271
-    "wikipedia"     => array(
272
-        "dsrcname" => "mysql:host=" . $antispoof_host . ";dbname=" . $antispoof_db,
273
-        "username" => $toolserver_username,
274
-        "password" => $toolserver_password,
275
-        "options"  => array(),
276
-    ),
277
-    "notifications" => array(
278
-        "dsrcname" => "mysql:host=" . $toolserver_notification_dbhost . ";dbname=" . $toolserver_notification_database,
279
-        "username" => $notifications_username,
280
-        "password" => $notifications_password,
281
-        "options"  => array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8mb4'),
282
-    ),
270
+	),
271
+	"wikipedia"     => array(
272
+		"dsrcname" => "mysql:host=" . $antispoof_host . ";dbname=" . $antispoof_db,
273
+		"username" => $toolserver_username,
274
+		"password" => $toolserver_password,
275
+		"options"  => array(),
276
+	),
277
+	"notifications" => array(
278
+		"dsrcname" => "mysql:host=" . $toolserver_notification_dbhost . ";dbname=" . $toolserver_notification_database,
279
+		"username" => $notifications_username,
280
+		"password" => $notifications_password,
281
+		"options"  => array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8mb4'),
282
+	),
283 283
 );
284 284
 
285 285
 // //Keep the included files from being executed.
@@ -291,18 +291,18 @@  discard block
 block discarded – undo
291 291
 ini_set('user_agent', $toolUserAgent);
292 292
 
293 293
 foreach (array(
294
-    "mbstring", // unicode and stuff
295
-    "pdo",
296
-    "pdo_mysql", // new database module
297
-    "session",
298
-    "date",
299
-    "pcre", // core stuff
300
-    "curl", // mediawiki api access etc
301
-    "openssl", // token generation
294
+	"mbstring", // unicode and stuff
295
+	"pdo",
296
+	"pdo_mysql", // new database module
297
+	"session",
298
+	"date",
299
+	"pcre", // core stuff
300
+	"curl", // mediawiki api access etc
301
+	"openssl", // token generation
302 302
 ) as $x) {
303
-    if (!extension_loaded($x)) {
304
-        die("extension $x is required.");
305
-    }
303
+	if (!extension_loaded($x)) {
304
+		die("extension $x is required.");
305
+	}
306 306
 }
307 307
 
308 308
 // Set up the AutoLoader
@@ -326,42 +326,42 @@  discard block
 block discarded – undo
326 326
 $siteConfiguration = new \Waca\SiteConfiguration();
327 327
 
328 328
 $siteConfiguration->setBaseUrl($baseurl)
329
-    ->setFilePath(__DIR__)
330
-    ->setDebuggingTraceEnabled($enableErrorTrace)
331
-    ->setForceIdentification($forceIdentification)
332
-    ->setIdentificationCacheExpiry($identificationCacheExpiry)
333
-    ->setMediawikiScriptPath($mediawikiScriptPath)
334
-    ->setMediawikiWebServiceEndpoint($mediawikiWebServiceEndpoint)
335
-    ->setMetaWikimediaWebServiceEndpoint($metaWikimediaWebServiceEndpoint)
336
-    ->setEnforceOAuth($enforceOAuth)
337
-    ->setEmailConfirmationEnabled($enableEmailConfirm == 1)
338
-    ->setEmailConfirmationExpiryDays($emailConfirmationExpiryDays)
339
-    ->setMiserModeLimit($requestLimitShowOnly)
340
-    ->setRequestStates($availableRequestStates)
341
-    ->setSquidList($squidIpList)
342
-    ->setDefaultCreatedTemplateId($createdid)
343
-    ->setDefaultRequestStateKey($defaultRequestStateKey)
344
-    ->setUseStrictTransportSecurity($strictTransportSecurityExpiry)
345
-    ->setUserAgent($toolUserAgent)
346
-    ->setCurlDisableVerifyPeer($curlDisableSSLVerifyPeer)
347
-    ->setUseOAuthSignup($useOauthSignup)
348
-    ->setOAuthBaseUrl($oauthBaseUrl)
349
-    ->setOAuthConsumerToken($oauthConsumerToken)
350
-    ->setOAuthConsumerSecret($oauthSecretToken)
351
-    ->setOauthMediaWikiCanonicalServer($oauthMediaWikiCanonicalServer)
352
-    ->setDataClearInterval($dataclear_interval)
353
-    ->setXffTrustedHostsFile($xff_trusted_hosts_file)
354
-    ->setIrcNotificationsEnabled($ircBotNotificationsEnabled == 1)
355
-    ->setIrcNotificationType($ircBotNotificationType)
356
-    ->setIrcNotificationsInstance($whichami)
357
-    ->setTitleBlacklistEnabled($enableTitleblacklist == 1)
358
-    ->setTorExitPaths(array_merge(gethostbynamel('en.wikipedia.org'), gethostbynamel('accounts.wmflabs.org')))
359
-    ->setCreationBotUsername($creationBotUsername)
360
-    ->setCreationBotPassword($creationBotPassword)
361
-    ->setCurlCookieJar($curlCookieJar)
362
-    ->setYubicoApiId($yubicoApiId)
363
-    ->setYubicoApiKey($yubicoApiKey)
364
-    ->setTotpEncryptionKey($totpEncryptionKey)
365
-    ->setRegistrationAllowed($allowRegistration)
366
-    ->setCspReportUri($cspReportUri)
367
-    ->setResourceCacheEpoch($resourceCacheEpoch);
329
+	->setFilePath(__DIR__)
330
+	->setDebuggingTraceEnabled($enableErrorTrace)
331
+	->setForceIdentification($forceIdentification)
332
+	->setIdentificationCacheExpiry($identificationCacheExpiry)
333
+	->setMediawikiScriptPath($mediawikiScriptPath)
334
+	->setMediawikiWebServiceEndpoint($mediawikiWebServiceEndpoint)
335
+	->setMetaWikimediaWebServiceEndpoint($metaWikimediaWebServiceEndpoint)
336
+	->setEnforceOAuth($enforceOAuth)
337
+	->setEmailConfirmationEnabled($enableEmailConfirm == 1)
338
+	->setEmailConfirmationExpiryDays($emailConfirmationExpiryDays)
339
+	->setMiserModeLimit($requestLimitShowOnly)
340
+	->setRequestStates($availableRequestStates)
341
+	->setSquidList($squidIpList)
342
+	->setDefaultCreatedTemplateId($createdid)
343
+	->setDefaultRequestStateKey($defaultRequestStateKey)
344
+	->setUseStrictTransportSecurity($strictTransportSecurityExpiry)
345
+	->setUserAgent($toolUserAgent)
346
+	->setCurlDisableVerifyPeer($curlDisableSSLVerifyPeer)
347
+	->setUseOAuthSignup($useOauthSignup)
348
+	->setOAuthBaseUrl($oauthBaseUrl)
349
+	->setOAuthConsumerToken($oauthConsumerToken)
350
+	->setOAuthConsumerSecret($oauthSecretToken)
351
+	->setOauthMediaWikiCanonicalServer($oauthMediaWikiCanonicalServer)
352
+	->setDataClearInterval($dataclear_interval)
353
+	->setXffTrustedHostsFile($xff_trusted_hosts_file)
354
+	->setIrcNotificationsEnabled($ircBotNotificationsEnabled == 1)
355
+	->setIrcNotificationType($ircBotNotificationType)
356
+	->setIrcNotificationsInstance($whichami)
357
+	->setTitleBlacklistEnabled($enableTitleblacklist == 1)
358
+	->setTorExitPaths(array_merge(gethostbynamel('en.wikipedia.org'), gethostbynamel('accounts.wmflabs.org')))
359
+	->setCreationBotUsername($creationBotUsername)
360
+	->setCreationBotPassword($creationBotPassword)
361
+	->setCurlCookieJar($curlCookieJar)
362
+	->setYubicoApiId($yubicoApiId)
363
+	->setYubicoApiKey($yubicoApiKey)
364
+	->setTotpEncryptionKey($totpEncryptionKey)
365
+	->setRegistrationAllowed($allowRegistration)
366
+	->setCspReportUri($cspReportUri)
367
+	->setResourceCacheEpoch($resourceCacheEpoch);
Please login to merge, or discard this patch.