Test Setup Failed
Push — master ( c5cbde...376273 )
by Xu
39:44
created
src/helpers/DateHelper.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -214,7 +214,9 @@  discard block
 block discarded – undo
214 214
                     $i = 0;
215 215
                 } else {
216 216
                     for ($i = 1; $i < 12; $i++) {
217
-                        if ((100 * $month + $day) >= $zone [$i] && (100 * $month + $day) < $zone [$i + 1]) break;
217
+                        if ((100 * $month + $day) >= $zone [$i] && (100 * $month + $day) < $zone [$i + 1]) {
218
+                            break;
219
+                        }
218 220
                     }
219 221
                 }
220 222
                 $result = $data [$i] . '座';
@@ -314,7 +316,9 @@  discard block
 block discarded – undo
314 316
     {
315 317
         $year = $year ? $year : date('Y');
316 318
         $months = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
317
-        if (self::isLeapYear($year)) $months [1] = 29;
319
+        if (self::isLeapYear($year)) {
320
+            $months [1] = 29;
321
+        }
318 322
         return $months;
319 323
     }
320 324
 
Please login to merge, or discard this patch.
src/base/Collection.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -400,7 +400,7 @@
 block discarded – undo
400 400
             return $items->all();
401 401
         } elseif ($items instanceof Arrayable) {
402 402
             return $items->toArray();
403
-        }  elseif ($items instanceof JsonSerializable) {
403
+        } elseif ($items instanceof JsonSerializable) {
404 404
             return $items->jsonSerialize();
405 405
         } elseif ($items instanceof Traversable) {
406 406
             return iterator_to_array($items);
Please login to merge, or discard this patch.
src/console/views/migrate/_createTable.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,9 +11,11 @@
 block discarded – undo
11 11
 <?php foreach ($fields as $field):
12 12
     if (empty($field['decorators'])): ?>
13 13
             '<?= $field['property'] ?>',
14
-<?php else: ?>
14
+<?php else {
15
+    : ?>
15 16
             <?= "'{$field['property']}' => \$this->{$field['decorators']}" ?>,
16 17
 <?php endif;
18
+}
17 19
 endforeach; ?>
18 20
         ], $tableOptions);
19 21
 <?= $this->render('_addForeignKeys', [
Please login to merge, or discard this patch.
src/user/widgets/views/popular.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,9 +15,12 @@
 block discarded – undo
15 15
                         </a>
16 16
                     </li>
17 17
                 <?php endforeach; ?>
18
-            <?php else: ?>
18
+            <?php else {
19
+    : ?>
19 20
                 <?= Yii::t('yuncms', 'No popular users') ?>
20
-            <?php endif; ?>
21
+            <?php endif;
22
+}
23
+?>
21 24
         </ul>
22 25
     </div>
23 26
 </div>
Please login to merge, or discard this patch.