@@ -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->getMaxFilesPerBatchConfig(); |
|
141 | + $vars[ 'simpleBatchUploadMaxFilesPerBatch' ] = $this->getMaxFilesPerBatchConfig(); |
|
142 | 142 | } |
143 | 143 | |
144 | 144 | public function onSetupAfterCache() { |