GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Push — master ( 8b9576...7fa102 )
by Steeven
02:18
created
src/NoSql/Drivers/MongoDb/QueryBuilder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
 
119 119
             if ($field === '_id') {
120 120
                 foreach ($values as $key => $value) {
121
-                    $values[ $key ] = new \MongoDb\BSON\ObjectID($value);
121
+                    $values[$key] = new \MongoDb\BSON\ObjectID($value);
122 122
                 }
123 123
             }
124 124
 
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
             $builderCache->store('from', $collection);
189 189
             $builderCache->store('where', ['_id' => $document->_id]);
190 190
             $document = $document->getArrayCopy();
191
-            unset($document[ '_id' ]);
191
+            unset($document['_id']);
192 192
 
193 193
             $builderCache->store('sets', array_merge($document, $sets));
194 194
 
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
                 $document = $this->get()->first();
230 230
                 $documentIds[] = $document->_id;
231 231
                 $document = $document->getArrayCopy();
232
-                unset($document[ '_id' ]);
232
+                unset($document['_id']);
233 233
 
234 234
                 $documents[] = array_merge($document, $sets);
235 235
             }
Please login to merge, or discard this patch.
src/NoSql/Drivers/MongoDb/Connection.php 1 patch
Spacing   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -100,17 +100,17 @@  discard block
 block discarded – undo
100 100
         $cursor->setTypeMap(['root' => 'array', 'document' => 'array']);
101 101
         $result = current($cursor->toArray());
102 102
 
103
-        $this->queriesResultCache[ 'databaseNames' ] = [];
103
+        $this->queriesResultCache['databaseNames'] = [];
104 104
 
105
-        if ( ! empty($result[ 'databases' ])) {
106
-            foreach ($result[ 'databases' ] as $database) {
107
-                if ( ! in_array($database[ 'name' ], ['admin', 'local'])) {
108
-                    $this->queriesResultCache[ 'databaseNames' ][] = $database[ 'name' ];
105
+        if ( ! empty($result['databases'])) {
106
+            foreach ($result['databases'] as $database) {
107
+                if ( ! in_array($database['name'], ['admin', 'local'])) {
108
+                    $this->queriesResultCache['databaseNames'][] = $database['name'];
109 109
                 }
110 110
             }
111 111
         }
112 112
 
113
-        return $this->queriesResultCache[ 'databaseNames' ];
113
+        return $this->queriesResultCache['databaseNames'];
114 114
     }
115 115
 
116 116
     // ------------------------------------------------------------------------
@@ -130,15 +130,15 @@  discard block
 block discarded – undo
130 130
 
131 131
         $result = new \IteratorIterator($cursor);
132 132
 
133
-        $this->queriesResultCache[ 'collectionNames' ] = [];
133
+        $this->queriesResultCache['collectionNames'] = [];
134 134
 
135 135
         foreach ($result as $collection) {
136
-            if ($collection[ 'type' ] === 'collection') {
137
-                $this->queriesResultCache[ 'collectionNames' ][] = $collection[ 'name' ];
136
+            if ($collection['type'] === 'collection') {
137
+                $this->queriesResultCache['collectionNames'][] = $collection['name'];
138 138
             }
139 139
         }
140 140
 
141
-        return $this->queriesResultCache[ 'collectionNames' ];
141
+        return $this->queriesResultCache['collectionNames'];
142 142
     }
143 143
 
144 144
     // ------------------------------------------------------------------------
@@ -158,13 +158,13 @@  discard block
 block discarded – undo
158 158
 
159 159
         $result = current($cursor->toArray());
160 160
 
161
-        $this->queriesResultCache[ 'collectionKeys' ][ $collection ] = [];
161
+        $this->queriesResultCache['collectionKeys'][$collection] = [];
162 162
 
163 163
         foreach (get_object_vars($result) as $key => $value) {
164
-            $this->queriesResultCache[ 'collectionKeys' ][ $collection ][] = $key;
164
+            $this->queriesResultCache['collectionKeys'][$collection][] = $key;
165 165
         }
166 166
 
167
-        return $this->queriesResultCache[ 'collectionKeys' ][ $collection ];
167
+        return $this->queriesResultCache['collectionKeys'][$collection];
168 168
     }
169 169
 
170 170
     // ------------------------------------------------------------------------
@@ -185,13 +185,13 @@  discard block
 block discarded – undo
185 185
 
186 186
         $result = new \IteratorIterator($cursor);
187 187
 
188
-        $this->queriesResultCache[ 'collectionIndexes' ][ $collection ] = [];
188
+        $this->queriesResultCache['collectionIndexes'][$collection] = [];
189 189
 
190 190
         foreach ($result as $index) {
191
-            $this->queriesResultCache[ 'collectionIndexes' ][ $collection ][] = $index[ 'name' ];
191
+            $this->queriesResultCache['collectionIndexes'][$collection][] = $index['name'];
192 192
         }
193 193
 
194
-        return $this->queriesResultCache[ 'collectionIndexes' ][ $collection ];
194
+        return $this->queriesResultCache['collectionIndexes'][$collection];
195 195
     }
196 196
 
197 197
     // ------------------------------------------------------------------------
@@ -234,9 +234,9 @@  discard block
 block discarded – undo
234 234
     protected function platformGetPlatformInfoHandler()
235 235
     {
236 236
         $metadata = $this->server->getInfo();
237
-        $metadata[ 'latency' ] = $this->server->getLatency();
238
-        $metadata[ 'type' ] = $this->server->getType();
239
-        $metadata[ 'tags' ] = $this->server->getTags();
237
+        $metadata['latency'] = $this->server->getLatency();
238
+        $metadata['type'] = $this->server->getType();
239
+        $metadata['tags'] = $this->server->getTags();
240 240
 
241 241
         return new SplArrayObject([
242 242
             'name'     => $this->getPlatform(),
@@ -297,10 +297,10 @@  discard block
 block discarded – undo
297 297
     {
298 298
         $this->parseQueryStatement($statement);
299 299
 
300
-        if (isset($options[ 'method' ])) {
300
+        if (isset($options['method'])) {
301 301
 
302
-            $method = $options[ 'method' ];
303
-            unset($options[ 'method' ]);
302
+            $method = $options['method'];
303
+            unset($options['method']);
304 304
 
305 305
             $options = array_merge(['safe' => true, 'ordered' => true], $options);
306 306
             $bulk = new \MongoDb\Driver\BulkWrite($options);
@@ -384,7 +384,7 @@  discard block
 block discarded – undo
384 384
             $projection = [];
385 385
 
386 386
             foreach ($builderCache->select as $field) {
387
-                $projection[ $field ] = 1;
387
+                $projection[$field] = 1;
388 388
             }
389 389
 
390 390
             $statement->addOption('projection', $projection);
@@ -394,9 +394,9 @@  discard block
 block discarded – undo
394 394
         if (count($builderCache->whereIn)) {
395 395
             foreach ($builderCache->whereIn as $field => $clause) {
396 396
                 if (count($builderCache->orWhereIn)) {
397
-                    $builderCache->orWhere[ $field ] = ['$in' => $clause];
397
+                    $builderCache->orWhere[$field] = ['$in' => $clause];
398 398
                 } else {
399
-                    $builderCache->where[ $field ] = ['$in' => $clause];
399
+                    $builderCache->where[$field] = ['$in' => $clause];
400 400
                 }
401 401
             }
402 402
         }
@@ -404,44 +404,44 @@  discard block
 block discarded – undo
404 404
         // Filter Where Not In
405 405
         if (count($builderCache->whereNotIn)) {
406 406
             foreach ($builderCache->whereNotIn as $field => $clause) {
407
-                $builderCache->where[ $field ] = ['$nin' => $clause];
407
+                $builderCache->where[$field] = ['$nin' => $clause];
408 408
             }
409 409
         }
410 410
 
411 411
         // Filter Or Where In
412 412
         if (count($builderCache->orWhereIn)) {
413 413
             foreach ($builderCache->orWhereIn as $field => $clause) {
414
-                $builderCache->orWhere[ $field ] = ['$in' => $clause];
414
+                $builderCache->orWhere[$field] = ['$in' => $clause];
415 415
             }
416 416
         }
417 417
 
418 418
         // Filter Or Where Not In
419 419
         if (count($builderCache->orWhereNotIn)) {
420 420
             foreach ($builderCache->orWhereNotIn as $field => $clause) {
421
-                $builderCache->orWhere[ $field ] = ['$nin' => $clause];
421
+                $builderCache->orWhere[$field] = ['$nin' => $clause];
422 422
             }
423 423
         }
424 424
 
425 425
         // Filter Where Between
426 426
         if (count($builderCache->between)) {
427 427
             foreach ($builderCache->between as $field => $clause) {
428
-                $builderCache->where[ $field ] = ['$gte' => $clause[ 'start' ], '$lte' => $clause[ 'end' ]];
428
+                $builderCache->where[$field] = ['$gte' => $clause['start'], '$lte' => $clause['end']];
429 429
             }
430 430
         }
431 431
 
432 432
         // Filter Or Where Between
433 433
         if (count($builderCache->orBetween)) {
434 434
             foreach ($builderCache->orBetween as $field => $clause) {
435
-                $builderCache->orWhere[ $field ] = ['$gte' => $clause[ 'start' ], '$lte' => $clause[ 'end' ]];
435
+                $builderCache->orWhere[$field] = ['$gte' => $clause['start'], '$lte' => $clause['end']];
436 436
             }
437 437
         }
438 438
 
439 439
         // Filter Where Not Between
440 440
         if (count($builderCache->notBetween)) {
441 441
             foreach ($builderCache->notBetween as $field => $clause) {
442
-                $builderCache->where[ $field ][ '$not' ] = [
443
-                    '$gte' => $clause[ 'start' ],
444
-                    '$lte' => $clause[ 'end' ],
442
+                $builderCache->where[$field]['$not'] = [
443
+                    '$gte' => $clause['start'],
444
+                    '$lte' => $clause['end'],
445 445
                 ];
446 446
             }
447 447
         }
@@ -449,9 +449,9 @@  discard block
 block discarded – undo
449 449
         // Filter Or Where Not Between
450 450
         if (count($builderCache->orNotBetween)) {
451 451
             foreach ($builderCache->orNotBetween as $field => $clause) {
452
-                $builderCache->orWhere[ $field ][ '$not' ] = [
453
-                    '$gte' => $clause[ 'start' ],
454
-                    '$lte' => $clause[ 'end' ],
452
+                $builderCache->orWhere[$field]['$not'] = [
453
+                    '$gte' => $clause['start'],
454
+                    '$lte' => $clause['end'],
455 455
                 ];
456 456
             }
457 457
         }
@@ -489,7 +489,7 @@  discard block
 block discarded – undo
489 489
             $sort = [];
490 490
             foreach ($builderCache->orderBy as $field => $direction) {
491 491
                 $direction = $direction === 'ASC' ? 1 : -1;
492
-                $sort[ $field ] = $direction;
492
+                $sort[$field] = $direction;
493 493
             }
494 494
 
495 495
             $statement->addOption('sort', $sort);
Please login to merge, or discard this patch.
src/NoSql/DataStructures/Query/BuilderCache.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
      */
81 81
     public function &__get($property)
82 82
     {
83
-        return $this->vars[ $property ];
83
+        return $this->vars[$property];
84 84
     }
85 85
 
86 86
     // ------------------------------------------------------------------------
@@ -96,16 +96,16 @@  discard block
 block discarded – undo
96 96
     public function store($index, $value)
97 97
     {
98 98
         if (array_key_exists($index, $this->vars)) {
99
-            if (is_array($this->vars[ $index ])) {
99
+            if (is_array($this->vars[$index])) {
100 100
                 if (is_array($value)) {
101
-                    $this->vars[ $index ] = array_merge($this->vars[ $index ], $value);
101
+                    $this->vars[$index] = array_merge($this->vars[$index], $value);
102 102
                 } else {
103
-                    array_push($this->vars[ $index ], $value);
103
+                    array_push($this->vars[$index], $value);
104 104
                 }
105
-            } elseif (is_bool($this->vars[ $index ])) {
106
-                $this->vars[ $index ] = (bool)$value;
105
+            } elseif (is_bool($this->vars[$index])) {
106
+                $this->vars[$index] = (bool)$value;
107 107
             } else {
108
-                $this->vars[ $index ] = $value;
108
+                $this->vars[$index] = $value;
109 109
             }
110 110
         }
111 111
 
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
     protected function resetRun(array $cacheKeys)
214 214
     {
215 215
         foreach ($cacheKeys as $cacheKey => $cacheDefaultValue) {
216
-            $this->vars[ $cacheKey ] = $cacheDefaultValue;
216
+            $this->vars[$cacheKey] = $cacheDefaultValue;
217 217
         }
218 218
     }
219 219
 
Please login to merge, or discard this patch.
src/NoSql/DataStructures/Query/Statement.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
      */
183 183
     public function addFilter($field, $value)
184 184
     {
185
-        $this->filter[ $field ] = $value;
185
+        $this->filter[$field] = $value;
186 186
 
187 187
         return $this;
188 188
     }
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
      */
234 234
     public function addOption($option, $value)
235 235
     {
236
-        $this->options[ $option ] = $value;
236
+        $this->options[$option] = $value;
237 237
 
238 238
         return $this;
239 239
     }
Please login to merge, or discard this patch.
src/Sql/Abstracts/AbstractForge.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
      */
42 42
     public function __construct(AbstractConnection &$conn)
43 43
     {
44
-        $this->conn =& $conn;
44
+        $this->conn = & $conn;
45 45
     }
46 46
 
47 47
     // ------------------------------------------------------------------------
Please login to merge, or discard this patch.
src/Sql/Drivers/Sqlite/Connection.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -123,9 +123,9 @@  discard block
 block discarded – undo
123 123
      */
124 124
     public function getDatabases()
125 125
     {
126
-        $this->queriesResultCache[ 'databaseNames' ][] = pathinfo($this->database, PATHINFO_FILENAME);
126
+        $this->queriesResultCache['databaseNames'][] = pathinfo($this->database, PATHINFO_FILENAME);
127 127
 
128
-        return $this->queriesResultCache[ 'databaseNames' ];
128
+        return $this->queriesResultCache['databaseNames'];
129 129
     }
130 130
 
131 131
     // ------------------------------------------------------------------------
@@ -143,12 +143,12 @@  discard block
 block discarded – undo
143 143
      */
144 144
     public function getTables($prefixLimit = false)
145 145
     {
146
-        if (empty($this->queriesResultCache[ 'tableNames' ])) {
146
+        if (empty($this->queriesResultCache['tableNames'])) {
147 147
 
148 148
             $sqlStatement = 'SELECT "NAME" FROM "SQLITE_MASTER" WHERE "TYPE" = \'table\'';
149 149
 
150
-            if ($prefixLimit !== false && $this->config[ 'tablePrefix' ] !== '') {
151
-                $sqlStatement .= ' AND "NAME" LIKE \'' . $this->escapeLikeString($this->config[ 'tablePrefix' ]) . "%' ";
150
+            if ($prefixLimit !== false && $this->config['tablePrefix'] !== '') {
151
+                $sqlStatement .= ' AND "NAME" LIKE \'' . $this->escapeLikeString($this->config['tablePrefix']) . "%' ";
152 152
             }
153 153
 
154 154
             $result = $this->query($sqlStatement);
@@ -157,9 +157,9 @@  discard block
 block discarded – undo
157 157
                 foreach ($result as $row) {
158 158
                     // Do we know from which column to get the table name?
159 159
                     if ( ! isset($key)) {
160
-                        if (isset($row[ 'table_name' ])) {
160
+                        if (isset($row['table_name'])) {
161 161
                             $key = 'table_name';
162
-                        } elseif (isset($row[ 'TABLE_NAME' ])) {
162
+                        } elseif (isset($row['TABLE_NAME'])) {
163 163
                             $key = 'TABLE_NAME';
164 164
                         } else {
165 165
                             /* We have no other choice but to just get the first element's key.
@@ -172,12 +172,12 @@  discard block
 block discarded – undo
172 172
                         }
173 173
                     }
174 174
 
175
-                    $this->queriesResultCache[ 'tableNames' ][] = $row->offsetGet($key);
175
+                    $this->queriesResultCache['tableNames'][] = $row->offsetGet($key);
176 176
                 }
177 177
             }
178 178
         }
179 179
 
180
-        return $this->queriesResultCache[ 'tableNames' ];
180
+        return $this->queriesResultCache['tableNames'];
181 181
     }
182 182
 
183 183
     // ------------------------------------------------------------------------
@@ -195,24 +195,24 @@  discard block
 block discarded – undo
195 195
     {
196 196
         $table = $this->prefixTable($table);
197 197
 
198
-        if (empty($this->queriesResultCache[ 'tableColumns' ][ $table ])) {
198
+        if (empty($this->queriesResultCache['tableColumns'][$table])) {
199 199
             $result = $this->query('PRAGMA TABLE_INFO(' . $this->protectIdentifiers($table, true, null, false) . ')');
200 200
 
201 201
             if ($result->count()) {
202 202
                 foreach ($result as $row) {
203 203
                     // Do we know from where to get the column's name?
204 204
                     if ( ! isset($key)) {
205
-                        if (isset($row[ 'name' ])) {
205
+                        if (isset($row['name'])) {
206 206
                             $key = 'name';
207 207
                         }
208 208
                     }
209 209
 
210
-                    $this->queriesResultCache[ 'tableColumns' ][ $table ][ $row->offsetGet($key) ] = $row;
210
+                    $this->queriesResultCache['tableColumns'][$table][$row->offsetGet($key)] = $row;
211 211
                 }
212 212
             }
213 213
         }
214 214
 
215
-        return $this->queriesResultCache[ 'tableColumns' ][ $table ];
215
+        return $this->queriesResultCache['tableColumns'][$table];
216 216
     }
217 217
 
218 218
     // ------------------------------------------------------------------------
@@ -331,7 +331,7 @@  discard block
 block discarded – undo
331 331
         if (false !== ($result = $this->handle->query($statement->getSqlFinalStatement()))) {
332 332
             $i = 0;
333 333
             while ($row = $result->fetchArray(SQLITE3_ASSOC)) {
334
-                $rows[ $i ] = $row;
334
+                $rows[$i] = $row;
335 335
                 $i++;
336 336
             }
337 337
         } else {
Please login to merge, or discard this patch.
src/DataObjects/Result.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 
50 50
         parent::__construct($this->info->num_rows);
51 51
 
52
-        foreach($rows as $offset => $row) {
52
+        foreach ($rows as $offset => $row) {
53 53
             $this->offsetSet($offset, $row);
54 54
         }
55 55
     }
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
      */
189 189
     public function offsetSet($offset, $value)
190 190
     {
191
-        if(is_array($value)) {
191
+        if (is_array($value)) {
192 192
             parent::offsetSet($offset, new Row($value));
193 193
         } else {
194 194
             parent::offsetSet($offset, $value);
Please login to merge, or discard this patch.
src/DataObjects/Result/Row.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -69,19 +69,19 @@  discard block
 block discarded – undo
69 69
                     str_replace('record_create_', '', $name),
70 70
                     $value
71 71
                 );
72
-                unset($columns[ $name ]);
72
+                unset($columns[$name]);
73 73
             } elseif (strpos($name, 'record_update') !== false) {
74 74
                 $this->record->create->offsetSet(
75 75
                     str_replace('record_update_', '', $name),
76 76
                     $value
77 77
                 );
78
-                unset($columns[ $name ]);
78
+                unset($columns[$name]);
79 79
             } elseif (strpos($name, 'record') !== false) {
80 80
                 $this->record->offsetSet(
81 81
                     str_replace('record_', '', $name),
82 82
                     $value
83 83
                 );
84
-                unset($columns[ $name ]);
84
+                unset($columns[$name]);
85 85
             }
86 86
         }
87 87
 
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
         if ( ! preg_match('/^([adObis]):/', $string, $matches)) {
248 248
             return false;
249 249
         }
250
-        switch ($matches[ 1 ]) {
250
+        switch ($matches[1]) {
251 251
             case 'a' :
252 252
             case 'O' :
253 253
             case 's' :
@@ -282,11 +282,11 @@  discard block
 block discarded – undo
282 282
 
283 283
         foreach ($fields as $fieldName => $fieldValue) {
284 284
             if ($this->isJSON($fieldValue)) {
285
-                $fields[ $fieldName ] = new Row\Columns\DataJSON(json_decode($fieldValue, true));
285
+                $fields[$fieldName] = new Row\Columns\DataJSON(json_decode($fieldValue, true));
286 286
             } elseif ($this->isSerialized($fieldValue)) {
287
-                $fields[ $fieldName ] = new Row\Columns\DataSerialize(unserialize($fieldValue));
287
+                $fields[$fieldName] = new Row\Columns\DataSerialize(unserialize($fieldValue));
288 288
             } else {
289
-                $fields[ $fieldName ] = $fieldValue;
289
+                $fields[$fieldName] = $fieldValue;
290 290
             }
291 291
         }
292 292
 
@@ -356,9 +356,9 @@  discard block
 block discarded – undo
356 356
      */
357 357
     public function offsetGet($offset)
358 358
     {
359
-        if (isset($this->columns[ $offset ])) {
359
+        if (isset($this->columns[$offset])) {
360 360
 
361
-            $data = $this->columns[ $offset ];
361
+            $data = $this->columns[$offset];
362 362
 
363 363
             if ($this->isJSON($data)) {
364 364
                 return new Row\Columns\DataJSON(json_decode($data, true));
@@ -367,7 +367,7 @@  discard block
 block discarded – undo
367 367
             } else {
368 368
                 return $data;
369 369
             }
370
-        } elseif(strpos($offset, 'record') !== false) {
370
+        } elseif (strpos($offset, 'record') !== false) {
371 371
             switch ($offset) {
372 372
                 case 'record':
373 373
                     return $this->record;
@@ -438,7 +438,7 @@  discard block
 block discarded – undo
438 438
      */
439 439
     public function offsetSet($offset, $value)
440 440
     {
441
-        $this->columns[ $offset ] = $value;
441
+        $this->columns[$offset] = $value;
442 442
     }
443 443
 
444 444
     // ------------------------------------------------------------------------
@@ -479,7 +479,7 @@  discard block
 block discarded – undo
479 479
      */
480 480
     public function offsetExists($offset)
481 481
     {
482
-        return isset($this->columns[ $offset ]);
482
+        return isset($this->columns[$offset]);
483 483
     }
484 484
 
485 485
     // ------------------------------------------------------------------------
@@ -500,7 +500,7 @@  discard block
 block discarded – undo
500 500
      */
501 501
     public function offsetUnset($field)
502 502
     {
503
-        unset($this->columns[ $field ]);
503
+        unset($this->columns[$field]);
504 504
     }
505 505
 
506 506
     // ------------------------------------------------------------------------
Please login to merge, or discard this patch.
src/Sql/Drivers/MySql/QueryBuilder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -198,11 +198,11 @@  discard block
 block discarded – undo
198 198
         $columns = [];
199 199
 
200 200
         foreach ($values as $key => $value) {
201
-            $ids[] = $value[ $index ];
201
+            $ids[] = $value[$index];
202 202
 
203 203
             foreach (array_keys($value) as $field) {
204 204
                 if ($field !== $index) {
205
-                    $columns[ $field ][] = 'WHEN ' . $index . ' = ' . $value[ $index ] . ' THEN ' . $value[ $field ];
205
+                    $columns[$field][] = 'WHEN ' . $index . ' = ' . $value[$index] . ' THEN ' . $value[$field];
206 206
                 }
207 207
             }
208 208
         }
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
 
274 274
         if ($this->isSubQuery) {
275 275
             return $sqlStatement;
276
-        } elseif(strpos($sqlStatement, 'COUNT') !== false) {
276
+        } elseif (strpos($sqlStatement, 'COUNT') !== false) {
277 277
             return $sqlStatement;
278 278
         }
279 279
 
Please login to merge, or discard this patch.