@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | * Lingo\LingoParser constructor. |
| 58 | 58 | * @param MessageLog|null $messages |
| 59 | 59 | */ |
| 60 | - public function __construct( MessageLog &$messages = null ) { |
|
| 60 | + public function __construct( MessageLog & $messages = null ) { |
|
| 61 | 61 | global $wgexLingoBackend; |
| 62 | 62 | |
| 63 | 63 | $this->mLingoBackend = new $wgexLingoBackend( $messages ); |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | * @param string $text |
| 70 | 70 | * @return Boolean |
| 71 | 71 | */ |
| 72 | - public static function parse( Parser &$parser, &$text ) { |
|
| 72 | + public static function parse( Parser & $parser, &$text ) { |
|
| 73 | 73 | |
| 74 | 74 | if ( !self::$parserSingleton ) { |
| 75 | 75 | self::$parserSingleton = new LingoParser(); |
@@ -135,13 +135,13 @@ discard block |
||
| 135 | 135 | } else { |
| 136 | 136 | |
| 137 | 137 | wfDebug( "Cache miss: Lingo tree not found in cache.\n" ); |
| 138 | - $this->mLingoTree =& $this->buildLingo(); |
|
| 138 | + $this->mLingoTree = & $this->buildLingo(); |
|
| 139 | 139 | $cache->set( $cachekey, $this->mLingoTree ); |
| 140 | 140 | wfDebug( "Cached lingo tree.\n" ); |
| 141 | 141 | } |
| 142 | 142 | } else { |
| 143 | 143 | wfDebug( "Caching of lingo tree disabled.\n" ); |
| 144 | - $this->mLingoTree =& $this->buildLingo(); |
|
| 144 | + $this->mLingoTree = & $this->buildLingo(); |
|
| 145 | 145 | } |
| 146 | 146 | |
| 147 | 147 | } |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | * Lingo\BasicBackend constructor. |
| 49 | 49 | * @param MessageLog|null $messages |
| 50 | 50 | */ |
| 51 | - public function __construct( MessageLog &$messages = null ) { |
|
| 51 | + public function __construct( MessageLog & $messages = null ) { |
|
| 52 | 52 | |
| 53 | 53 | global $wgexLingoPage, $wgRequest; |
| 54 | 54 | |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | $term = null; |
| 127 | 127 | } |
| 128 | 128 | |
| 129 | - $definitions[] = trim( $chunks[ 1 ] ); |
|
| 129 | + $definitions[ ] = trim( $chunks[ 1 ] ); |
|
| 130 | 130 | } |
| 131 | 131 | |
| 132 | 132 | // found a new term? |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | |
| 137 | 137 | if ( $term !== null ) { |
| 138 | 138 | foreach ( $definitions as $definition ) { |
| 139 | - $ret[] = array( |
|
| 139 | + $ret[ ] = array( |
|
| 140 | 140 | Element::ELEMENT_TERM => $term, |
| 141 | 141 | Element::ELEMENT_DEFINITION => $definition, |
| 142 | 142 | Element::ELEMENT_LINK => null, |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | * Lingo\Backend constructor. |
| 42 | 42 | * @param MessageLog|null $messages |
| 43 | 43 | */ |
| 44 | - public function __construct( MessageLog &$messages = null ) { |
|
| 44 | + public function __construct( MessageLog & $messages = null ) { |
|
| 45 | 45 | |
| 46 | 46 | if ( !$messages ) { |
| 47 | 47 | $this->mMessageLog = new MessageLog(); |