Test Failed
Push — 2.0 ( 865847...df9ab3 )
by Kirill
02:57
created
server/app/GraphQL/Queries/Support/QueryLimit.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
  * For the full copyright and license information, please view the LICENSE
6 6
  * file that was distributed with this source code.
7 7
  */
8
-declare(strict_types=1);
8
+declare(strict_types = 1);
9 9
 
10 10
 namespace App\GraphQL\Queries\Support;
11 11
 
@@ -66,11 +66,11 @@  discard block
 block discarded – undo
66 66
 
67 67
         switch (true) {
68 68
             case isset($args['_after']):
69
-                $builder = $builder->where('id', '>', (int)$args['_after']);
69
+                $builder = $builder->where('id', '>', (int) $args['_after']);
70 70
                 break;
71 71
 
72 72
             case isset($args['_before']):
73
-                $builder = $builder->where('id', '<', (int)$args['_before']);
73
+                $builder = $builder->where('id', '<', (int) $args['_before']);
74 74
                 break;
75 75
 
76 76
             case isset($args['_limit']):
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
      */
97 97
     private function limit(array $args = []): int
98 98
     {
99
-        return max(1, min(1000, (int)$args['_limit']));
99
+        return max(1, min(1000, (int) $args['_limit']));
100 100
     }
101 101
 
102 102
     /**
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
      */
107 107
     private function checkPageAndLimit($builder, array $args = [])
108 108
     {
109
-        $page = max(1, (int)$args['_page']);
109
+        $page = max(1, (int) $args['_page']);
110 110
 
111 111
         $builder = $builder->skip(($page - 1) * $this->limit($args));
112 112
 
Please login to merge, or discard this patch.