@@ -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 | } |
@@ -62,8 +62,7 @@ |
||
62 | 62 | |
63 | 63 | if ( $fileSummaryMsg->exists() ) { |
64 | 64 | return preg_replace( '/^<!--.*?-->\n*/s', '', $fileSummaryMsg->plain() ); |
65 | - } |
|
66 | - else { |
|
65 | + } else { |
|
67 | 66 | return '{{' . $templateName . $templateParams . '}}'; |
68 | 67 | } |
69 | 68 |
@@ -22,28 +22,28 @@ |
||
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 | ]; |
32 | 32 | |
33 | 33 | /** Simplified Chinese |
34 | 34 | */ |
35 | -$specialPageAliases['zh-hans'] = [ |
|
35 | +$specialPageAliases[ 'zh-hans' ] = [ |
|
36 | 36 | 'BatchUpload' => [ '批量上传' ], |
37 | 37 | ]; |
38 | 38 | |
39 | 39 | /** Traditional Chinese |
40 | 40 | */ |
41 | -$specialPageAliases['zh-hant'] = [ |
|
41 | +$specialPageAliases[ 'zh-hant' ] = [ |
|
42 | 42 | 'BatchUpload' => [ '批次上傳' ], |
43 | 43 | ]; |
44 | 44 | |
45 | 45 | /** Traditional Chinese, Hong Kong |
46 | 46 | */ |
47 | -$specialPageAliases['zh-hk'] = [ |
|
47 | +$specialPageAliases[ 'zh-hk' ] = [ |
|
48 | 48 | 'BatchUpload' => [ '批次上載' ], |
49 | 49 | ]; |