@@ -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 |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | */ |
| 59 | 59 | public function getConfiguration() { |
| 60 | 60 | |
| 61 | - $configuration = []; |
|
| 61 | + $configuration = [ ]; |
|
| 62 | 62 | |
| 63 | 63 | $configuration[ 'wgExtensionMessagesFiles' ][ 'SimpleBatchUploadAlias' ] = __DIR__ . '/SimpleBatchUpload.alias.php'; |
| 64 | 64 | $configuration[ 'wgExtensionMessagesFiles' ][ 'SimpleBatchUploadMagic' ] = __DIR__ . '/SimpleBatchUpload.magic.php'; |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | |
| 68 | 68 | $configuration[ 'wgHooks' ][ 'ParserFirstCallInit' ][ 'ext.simplebatchupload' ] = [ $this, 'registerParserFunction' ]; |
| 69 | 69 | $configuration[ 'wgHooks' ][ 'MakeGlobalVariablesScript' ][ 'ext.simplebatchupload' ] = [ $this, 'onMakeGlobalVariablesScript' ]; |
| 70 | - $configuration[ 'wgHooks' ][ 'SetupAfterCache' ][ 'ext.simplebatchupload' ] = [ $this, 'onSetupAfterCache']; |
|
| 70 | + $configuration[ 'wgHooks' ][ 'SetupAfterCache' ][ 'ext.simplebatchupload' ] = [ $this, 'onSetupAfterCache' ]; |
|
| 71 | 71 | |
| 72 | 72 | return $configuration; |
| 73 | 73 | |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | * @param \OutputPage $out |
| 139 | 139 | */ |
| 140 | 140 | public function onMakeGlobalVariablesScript( &$vars, $out ) { |
| 141 | - $vars['simpleBatchUploadMaxFilesPerBatch'] = $this->getMaxFilesPerBatch(); |
|
| 141 | + $vars[ 'simpleBatchUploadMaxFilesPerBatch' ] = $this->getMaxFilesPerBatch(); |
|
| 142 | 142 | } |
| 143 | 143 | |
| 144 | 144 | public function onSetupAfterCache() { |