Completed
Push — master ( 93adc0...581e1d )
by Sergey
03:05
created
src/Helpers/PaginationHelper.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,9 @@  discard block
 block discarded – undo
20 20
     {
21 21
         $batchesNum = 0;
22 22
         do {
23
-            if (self::reachBatchesLimit($batchesLimit, $batchesNum))  break;
23
+            if (self::reachBatchesLimit($batchesLimit, $batchesNum)) {
24
+                break;
25
+            }
24 26
 
25 27
             $items = [];
26 28
             $res = call_user_func_array([$obj, $function], $params);
@@ -36,7 +38,9 @@  discard block
 block discarded – undo
36 38
                 $params['bookmarks'] = $res['bookmarks'];
37 39
             }
38 40
 
39
-            if (empty($items)) return;
41
+            if (empty($items)) {
42
+                return;
43
+            }
40 44
 
41 45
             $batchesNum++;
42 46
             yield $items;
Please login to merge, or discard this patch.
src/Helpers/SearchHelper.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,9 @@
 block discarded – undo
77 77
      */
78 78
     public static function parseSearchResponse($res, $bookmarksUsed)
79 79
     {
80
-        if ($res === null || ! $bookmarksUsed) return self::parseSimpledSearchResponse($res);
80
+        if ($res === null || ! $bookmarksUsed) {
81
+            return self::parseSimpledSearchResponse($res);
82
+        }
81 83
 
82 84
         return self::parseBookMarkedSearchResponse($res);
83 85
     }
Please login to merge, or discard this patch.