Completed
Push — master ( 29eed0...b21523 )
by
unknown
04:31
created
src/BasicBackend.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -128,8 +128,8 @@
 block discarded – undo
128 128
 	}
129 129
 
130 130
 	/**
131
-	 * @param $definitions
132
-	 * @param $term
131
+	 * @param string[] $definitions
132
+	 * @param string $term
133 133
 	 * @return array
134 134
 	 */
135 135
 	protected function queueDefinitions( $definitions, $term ) {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 	 * Lingo\BasicBackend constructor.
51 51
 	 * @param MessageLog|null $messages
52 52
 	 */
53
-	public function __construct( MessageLog &$messages = null ) {
53
+	public function __construct( MessageLog & $messages = null ) {
54 54
 
55 55
 		parent::__construct( $messages );
56 56
 
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
 				$term = null;
117 117
 			}
118 118
 
119
-			$definitions[] = trim( $chunks[ 1 ] );
119
+			$definitions[ ] = trim( $chunks[ 1 ] );
120 120
 		}
121 121
 
122 122
 		// found a new term?
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
 		$ret = array();
137 137
 
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,
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
 	 * @param WikiPage $wikipage
256 256
 	 * @return Bool
257 257
 	 */
258
-	public function purgeCache( WikiPage &$wikipage ) {
258
+	public function purgeCache( WikiPage & $wikipage ) {
259 259
 
260 260
 		if ( !is_null( $wikipage ) && ( $wikipage->getTitle()->getText() === $this->getLingoPageName() ) ) {
261 261
 
Please login to merge, or discard this patch.