@@ -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 |
@@ -90,11 +90,11 @@ |
||
90 | 90 | return |
91 | 91 | |
92 | 92 | '<div class="fileupload-container"> ' . |
93 | - '<label>' . \Message::newFromKey( 'upload-form-label-infoform-description' )->escaped() . ':<br>'. |
|
93 | + '<label>' . \Message::newFromKey( 'upload-form-label-infoform-description' )->escaped() . ':<br>' . |
|
94 | 94 | '<span class="mw-input">' . |
95 | - Html::element('textarea', ['name' => 'wfUploadDescription', 'cols' => '80', 'rows' => '8'], $uploadPageText) . |
|
95 | + Html::element( 'textarea', [ 'name' => 'wfUploadDescription', 'cols' => '80', 'rows' => '8' ], $uploadPageText ) . |
|
96 | 96 | '</span>' . |
97 | - '</label><br> '. |
|
97 | + '</label><br> ' . |
|
98 | 98 | '<span class="fileupload-dropzone fileinput-button"> ' . |
99 | 99 | '<i class="glyphicon glyphicon-plus"></i> ' . |
100 | 100 | '<span>' . \Message::newFromKey( 'simplebatchupload-buttonlabel' )->escaped() . '</span> ' . |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | ->method( 'setFunctionHook' ) |
53 | 53 | ->with( |
54 | 54 | $this->equalTo( 'batchupload' ), |
55 | - $this->callback( function ( $param ) { |
|
55 | + $this->callback( function( $param ) { |
|
56 | 56 | return is_callable( $param ); |
57 | 57 | } ), |
58 | 58 | $this->equalTo( Parser::SFH_OBJECT_ARGS ) ) |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | } |
64 | 64 | |
65 | 65 | public function testOnMakeGlobalVariablesScript() { |
66 | - $vars = []; |
|
66 | + $vars = [ ]; |
|
67 | 67 | $out = $this->getMockBuilder( OutputPage::class ) |
68 | 68 | ->disableOriginalConstructor() |
69 | 69 | ->getMock(); |
@@ -48,7 +48,7 @@ |
||
48 | 48 | * @param \OutputPage $out |
49 | 49 | */ |
50 | 50 | public static function onMakeGlobalVariablesScript( &$vars, $out ) { |
51 | - $vars['simpleBatchUploadMaxFilesPerBatch'] = MediaWikiServices::getInstance()->getMainConfig()->get( 'SimpleBatchUploadMaxFilesPerBatch' ); |
|
51 | + $vars[ 'simpleBatchUploadMaxFilesPerBatch' ] = MediaWikiServices::getInstance()->getMainConfig()->get( 'SimpleBatchUploadMaxFilesPerBatch' ); |
|
52 | 52 | } |
53 | 53 | |
54 | 54 | } |