@@ -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 | /** |