Completed
Push — master ( 1d37d4...bf8214 )
by Ori
01:34
created
src/Resources/BaseResource.php 1 patch
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -48,7 +48,9 @@  discard block
 block discarded – undo
48 48
                     $rows[] = $row;
49 49
                     if ($limit !== null) {
50 50
                         $limit--;
51
-                        if ($limit < 0) break;
51
+                        if ($limit < 0) {
52
+                            break;
53
+                        }
52 54
                     }
53 55
                 };
54 56
             } else {
@@ -56,11 +58,15 @@  discard block
 block discarded – undo
56 58
                     $rows[] = $row;
57 59
                     if ($limit !== null) {
58 60
                         $limit--;
59
-                        if ($limit < 0) break;
61
+                        if ($limit < 0) {
62
+                            break;
63
+                        }
60 64
                     }
61 65
                 }
62 66
             }
63
-            if ($limit !== null && $limit < 0) break;
67
+            if ($limit !== null && $limit < 0) {
68
+                break;
69
+            }
64 70
         }
65 71
         return $rows;
66 72
     }
Please login to merge, or discard this patch.