@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | } else { |
156 | 156 | |
157 | 157 | wfDebug( "Cache miss: Lingo tree not found in cache.\n" ); |
158 | - $this->mLingoTree =& $this->buildLingo(); |
|
158 | + $this->mLingoTree = & $this->buildLingo(); |
|
159 | 159 | wfDebug( "Cached lingo tree.\n" ); |
160 | 160 | } |
161 | 161 | |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | |
167 | 167 | } else { |
168 | 168 | wfDebug( "Caching of lingo tree disabled.\n" ); |
169 | - $this->mLingoTree =& $this->buildLingo(); |
|
169 | + $this->mLingoTree = & $this->buildLingo(); |
|
170 | 170 | } |
171 | 171 | |
172 | 172 | } |
@@ -202,10 +202,10 @@ discard block |
||
202 | 202 | // Parse text identical to options used in includes/api/ApiParse.php |
203 | 203 | $params = $this->mApiParams; |
204 | 204 | $text = is_null( $params ) ? $parser->getOutput()->getText() : $parser->getOutput()->getText( [ |
205 | - 'allowTOC' => !$params['disabletoc'], |
|
206 | - 'enableSectionEditLinks' => !$params['disableeditsection'], |
|
207 | - 'wrapperDivClass' => $params['wrapoutputclass'], |
|
208 | - 'deduplicateStyles' => !$params['disablestylededuplication'], |
|
205 | + 'allowTOC' => !$params[ 'disabletoc' ], |
|
206 | + 'enableSectionEditLinks' => !$params[ 'disableeditsection' ], |
|
207 | + 'wrapperDivClass' => $params[ 'wrapoutputclass' ], |
|
208 | + 'deduplicateStyles' => !$params[ 'disablestylededuplication' ], |
|
209 | 209 | ] ); |
210 | 210 | |
211 | 211 | if ( $text === null || $text === '' ) { |
@@ -236,7 +236,7 @@ discard block |
||
236 | 236 | // Iterate all HTML text matches |
237 | 237 | $numberOfTextElements = $textElements->length; |
238 | 238 | |
239 | - $definitions = []; |
|
239 | + $definitions = [ ]; |
|
240 | 240 | |
241 | 241 | for ( $textElementIndex = 0; $textElementIndex < $numberOfTextElements; $textElementIndex++ ) { |
242 | 242 | $textElement = $textElements->item( $textElementIndex ); |
@@ -245,7 +245,7 @@ discard block |
||
245 | 245 | continue; |
246 | 246 | } |
247 | 247 | |
248 | - $matches = []; |
|
248 | + $matches = [ ]; |
|
249 | 249 | preg_match_all( |
250 | 250 | $this->regex, |
251 | 251 | $textElement->nodeValue, |
@@ -406,7 +406,7 @@ discard block |
||
406 | 406 | protected function shouldParse( &$parser ) { |
407 | 407 | global $wgexLingoUseNamespaces; |
408 | 408 | |
409 | - if ( !( $parser instanceof Parser || $parser instanceof StubObject) ) { |
|
409 | + if ( !( $parser instanceof Parser || $parser instanceof StubObject ) ) { |
|
410 | 410 | return false; |
411 | 411 | } |
412 | 412 |