@@ -22,10 +22,10 @@ |
||
| 22 | 22 | * @ingroup ExtensionManager |
| 23 | 23 | */ |
| 24 | 24 | |
| 25 | -$specialPageAliases = []; |
|
| 25 | +$specialPageAliases = [ ]; |
|
| 26 | 26 | |
| 27 | 27 | /** English |
| 28 | 28 | */ |
| 29 | -$specialPageAliases['en'] = [ |
|
| 29 | +$specialPageAliases[ 'en' ] = [ |
|
| 30 | 30 | 'BatchUpload' => [ 'BatchUpload' ], |
| 31 | 31 | ]; |
@@ -22,10 +22,10 @@ |
||
| 22 | 22 | * @ingroup ExtensionManager |
| 23 | 23 | */ |
| 24 | 24 | |
| 25 | -$magicWords = []; |
|
| 25 | +$magicWords = [ ]; |
|
| 26 | 26 | |
| 27 | 27 | /** English |
| 28 | 28 | */ |
| 29 | -$magicWords['en'] = [ |
|
| 29 | +$magicWords[ 'en' ] = [ |
|
| 30 | 30 | 'batchupload' => [ 0, 'batchupload' ], |
| 31 | 31 | ]; |
| 32 | 32 | \ No newline at end of file |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | public static function provideTestDetectMaxAllowedUploadsPerBatch() { |
| 44 | 44 | return [ |
| 45 | 45 | [ false, 1 ], |
| 46 | - [ [], 2 ], |
|
| 46 | + [ [ ], 2 ], |
|
| 47 | 47 | [ [ 'user' ], 2 ], |
| 48 | 48 | [ [ 'sysop' ], 3 ], |
| 49 | 49 | [ [ 'bureaucrat' ], 2 ], |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | */ |
| 52 | 52 | public function getConfiguration() { |
| 53 | 53 | |
| 54 | - $configuration = []; |
|
| 54 | + $configuration = [ ]; |
|
| 55 | 55 | |
| 56 | 56 | $configuration[ 'wgExtensionMessagesFiles' ][ 'SimpleBatchUploadAlias' ] = __DIR__ . '/SimpleBatchUpload.alias.php'; |
| 57 | 57 | $configuration[ 'wgExtensionMessagesFiles' ][ 'SimpleBatchUploadMagic' ] = __DIR__ . '/SimpleBatchUpload.magic.php'; |
@@ -164,7 +164,7 @@ discard block |
||
| 164 | 164 | * @param \OutputPage $out |
| 165 | 165 | */ |
| 166 | 166 | public function onMakeGlobalVariablesScript( &$vars, $out ) { |
| 167 | - $vars['simpleBatchUploadMaxFilesPerBatch'] = $this->getMaxFilesPerBatch( $out->getUser() ); |
|
| 167 | + $vars[ 'simpleBatchUploadMaxFilesPerBatch' ] = $this->getMaxFilesPerBatch( $out->getUser() ); |
|
| 168 | 168 | } |
| 169 | 169 | |
| 170 | 170 | /** |