Completed
Push — master ( 85d1e0...3dc773 )
by
unknown
04:22
created
src/LingoParser.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 		}
Please login to merge, or discard this patch.
src/BasicBackend.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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,
Please login to merge, or discard this patch.
src/Backend.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.