Test Setup Failed
Push — master ( e46154...4b4c9f )
by
unknown
33:31 queued 11s
created
src/LingoParser.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
 				} else {
155 155
 
156 156
 					wfDebug( "Cache miss: Lingo tree not found in cache.\n" );
157
-					$this->mLingoTree =& $this->buildLingo();
157
+					$this->mLingoTree = & $this->buildLingo();
158 158
 					wfDebug( "Cached lingo tree.\n" );
159 159
 				}
160 160
 
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
 
166 166
 			} else {
167 167
 				wfDebug( "Caching of lingo tree disabled.\n" );
168
-				$this->mLingoTree =& $this->buildLingo();
168
+				$this->mLingoTree = & $this->buildLingo();
169 169
 			}
170 170
 
171 171
 		}
@@ -201,10 +201,10 @@  discard block
 block discarded – undo
201 201
 		// Parse text identical to options used in includes/api/ApiParse.php
202 202
 		$params = $this->mApiParams;
203 203
 		$text = is_null( $params ) ? $parser->getOutput()->getText() : $parser->getOutput()->getText( [
204
-			'allowTOC' => !$params['disabletoc'],
205
-			'enableSectionEditLinks' => !$params['disableeditsection'],
206
-			'wrapperDivClass' => $params['wrapoutputclass'],
207
-			'deduplicateStyles' => !$params['disablestylededuplication'],
204
+			'allowTOC' => !$params[ 'disabletoc' ],
205
+			'enableSectionEditLinks' => !$params[ 'disableeditsection' ],
206
+			'wrapperDivClass' => $params[ 'wrapoutputclass' ],
207
+			'deduplicateStyles' => !$params[ 'disablestylededuplication' ],
208 208
 		] );
209 209
 
210 210
 		if ( $text === null || $text === '' ) {
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
 		// Iterate all HTML text matches
236 236
 		$numberOfTextElements = $textElements->length;
237 237
 
238
-		$definitions = [];
238
+		$definitions = [ ];
239 239
 
240 240
 		for ( $textElementIndex = 0; $textElementIndex < $numberOfTextElements; $textElementIndex++ ) {
241 241
 			$textElement = $textElements->item( $textElementIndex );
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
 				continue;
245 245
 			}
246 246
 
247
-			$matches = [];
247
+			$matches = [ ];
248 248
 			preg_match_all(
249 249
 				$this->regex,
250 250
 				$textElement->nodeValue,
Please login to merge, or discard this patch.
tests/phpunit/Unit/LingoParserTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,12 +49,12 @@  discard block
 block discarded – undo
49 49
 		'mwTitleExpectsGetNamespace' => null,
50 50
 		'mwOutputExpectsGetText' => null,
51 51
 
52
-		'mwParserProperties' => [],
52
+		'mwParserProperties' => [ ],
53 53
 
54 54
 		'namespace' => 0,
55 55
 		'text' => null,
56 56
 
57
-		'wgexLingoUseNamespaces' => [],
57
+		'wgexLingoUseNamespaces' => [ ],
58 58
 		'wgexLingoBackend' => 'Lingo\\BasicBackend',
59 59
 	];
60 60
 
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
 	/**
168 168
 	 * @return MockObject
169 169
 	 */
170
-	protected function getParserMock( $config = [] ) {
170
+	protected function getParserMock( $config = [ ] ) {
171 171
 		if ( array_key_exists( 'mwParser', $config ) ) {
172 172
 			return $config[ 'mwParser' ];
173 173
 		}
Please login to merge, or discard this patch.