@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | |
47 | 47 | public function testRegisterEarlyConfiguraion() { |
48 | 48 | $sbu = new SimpleBatchUpload(); |
49 | - $config = []; |
|
49 | + $config = [ ]; |
|
50 | 50 | |
51 | 51 | $sbu->registerEarlyConfiguration( $config ); |
52 | 52 | $this->assertEarlyConfiguration( $config ); |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | |
55 | 55 | public function testRegisterLateConfiguraion() { |
56 | 56 | $sbu = new SimpleBatchUpload(); |
57 | - $config = []; |
|
57 | + $config = [ ]; |
|
58 | 58 | |
59 | 59 | $sbu->registerLateConfiguration( $config ); |
60 | 60 | $this->assertLateConfiguration( $config ); |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | ->method( 'setFunctionHook' ) |
71 | 71 | ->with( |
72 | 72 | $this->equalTo( 'batchupload' ), |
73 | - $this->callback( function ( $param ) { |
|
73 | + $this->callback( function( $param ) { |
|
74 | 74 | return is_callable( $param ); |
75 | 75 | } ), |
76 | 76 | $this->equalTo( Parser::SFH_OBJECT_ARGS ) ) |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | } |
82 | 82 | |
83 | 83 | public function testOnMakeGlobalVariablesScript() { |
84 | - $vars = []; |
|
84 | + $vars = [ ]; |
|
85 | 85 | $out = $this->getMockBuilder( OutputPage::class ) |
86 | 86 | ->disableOriginalConstructor() |
87 | 87 | ->getMock(); |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | $this->assertArrayHasKey( 'ext.SimpleBatchUpload.jquery-file-upload', $configuration[ 'wgResourceModules' ] ); |
137 | 137 | $this->assertTrue( $configuration[ 'wgResourceModules' ][ 'ext.SimpleBatchUpload.jquery-file-upload' ] === [ |
138 | 138 | 'localBasePath' => dirname( dirname( __DIR__ ) ), |
139 | - 'remoteBasePath' => $GLOBALS[ 'wgExtensionAssetsPath' ] . '/SimpleBatchUpload', |
|
139 | + 'remoteBasePath' => $GLOBALS[ 'wgExtensionAssetsPath' ].'/SimpleBatchUpload', |
|
140 | 140 | 'scripts' => [ 'res/jquery.fileupload.js' ], |
141 | 141 | 'styles' => [ 'res/jquery.fileupload.css' ], |
142 | 142 | 'position' => 'top', |
@@ -146,21 +146,21 @@ discard block |
||
146 | 146 | $dependencies = [ 'ext.SimpleBatchUpload.jquery-file-upload', 'mediawiki.Title', 'mediawiki.jqueryMsg' ]; |
147 | 147 | |
148 | 148 | if ( version_compare( $GLOBALS[ 'wgVersion' ], '1.32.0', '>' ) ) { |
149 | - $dependencies[] = 'mediawiki.api'; |
|
149 | + $dependencies[ ] = 'mediawiki.api'; |
|
150 | 150 | } else { |
151 | - $dependencies[] = 'mediawiki.api.edit'; |
|
151 | + $dependencies[ ] = 'mediawiki.api.edit'; |
|
152 | 152 | } |
153 | 153 | |
154 | 154 | $this->assertArrayHasKey( 'ext.SimpleBatchUpload', $configuration[ 'wgResourceModules' ] ); |
155 | 155 | $this->assertTrue( $configuration[ 'wgResourceModules' ][ 'ext.SimpleBatchUpload' ] === [ |
156 | 156 | 'localBasePath' => dirname( dirname( __DIR__ ) ), |
157 | - 'remoteBasePath' => $GLOBALS[ 'wgExtensionAssetsPath' ] . '/SimpleBatchUpload', |
|
157 | + 'remoteBasePath' => $GLOBALS[ 'wgExtensionAssetsPath' ].'/SimpleBatchUpload', |
|
158 | 158 | 'scripts' => [ 'res/ext.SimpleBatchUpload.js' ], |
159 | 159 | 'styles' => [ 'res/ext.SimpleBatchUpload.css' ], |
160 | 160 | 'position' => 'top', |
161 | 161 | 'dependencies' => $dependencies, |
162 | 162 | 'messages' => [ 'simplebatchupload-comment', 'simplebatchupload-max-files-alert' ], |
163 | - ]); |
|
163 | + ] ); |
|
164 | 164 | |
165 | 165 | } |
166 | 166 |