Test Setup Failed
Push — master ( a98d4b...a0c0ad )
by
unknown
05:56 queued 04:51
created
src/lib/DataObject/Factory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
     {
142 142
         $that = $this;
143 143
 
144
-        return $this->resource_factory->getAllFrom($this->db->{$collection->getCollection()}, $query, $offset, $limit, $sort, function (array $resource) use ($collection, $that) {
144
+        return $this->resource_factory->getAllFrom($this->db->{$collection->getCollection()}, $query, $offset, $limit, $sort, function(array $resource) use ($collection, $that) {
145 145
             return $that->build($resource, $collection);
146 146
         });
147 147
     }
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
     {
222 222
         $that = $this;
223 223
 
224
-        return $this->resource_factory->watchFrom($this->db->{$collection->getCollection()}, $after, $existing, $query, function (array $resource) use ($collection, $that) {
224
+        return $this->resource_factory->watchFrom($this->db->{$collection->getCollection()}, $after, $existing, $query, function(array $resource) use ($collection, $that) {
225 225
             return $that->build($resource, $collection);
226 226
         }, $offset, $limit, $sort);
227 227
     }
Please login to merge, or discard this patch.
src/lib/Log/Factory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
     {
102 102
         $that = $this;
103 103
 
104
-        return $this->resource_factory->getAllFrom($this->db->{self::COLLECTION_NAME}, $query, $offset, $limit, $sort, function (array $resource) use ($that) {
104
+        return $this->resource_factory->getAllFrom($this->db->{self::COLLECTION_NAME}, $query, $offset, $limit, $sort, function(array $resource) use ($that) {
105 105
             return $that->build($resource);
106 106
         });
107 107
     }
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
     {
174 174
         $that = $this;
175 175
 
176
-        return $this->resource_factory->watchFrom($this->db->{self::COLLECTION_NAME}, $after, $existing, $query, function (array $resource) use ($that) {
176
+        return $this->resource_factory->watchFrom($this->db->{self::COLLECTION_NAME}, $after, $existing, $query, function(array $resource) use ($that) {
177 177
             return $that->build($resource);
178 178
         }, $offset, $limit, $sort);
179 179
     }
Please login to merge, or discard this patch.
src/lib/Job.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
             'kind' => 'Job',
90 90
             'namespace' => $this->namespace->getName(),
91 91
             'data' => $this->getData(),
92
-            'status' => function () use ($resource, $scheduler) {
92
+            'status' => function() use ($resource, $scheduler) {
93 93
                 $process = iterator_to_array($scheduler->getJobs([
94 94
                     'data.job' => $resource->getName(),
95 95
                     'data.namespace' => $this->namespace->getName(),
Please login to merge, or discard this patch.
src/lib/Endpoint/Mysql/Wrapper.php 1 patch
Switch Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -142,17 +142,17 @@
 block discarded – undo
142 142
         $types = '';
143 143
         foreach ($values as $attr => $value) {
144 144
             switch (gettype($value)) {
145
-            case 'integer':
146
-                $types .= 'i';
145
+                case 'integer':
146
+                    $types .= 'i';
147 147
 
148
-            break;
149
-            case 'double':
150
-                $types .= 'd';
148
+                break;
149
+                case 'double':
150
+                    $types .= 'd';
151 151
 
152
-            break;
153
-            default:
154
-            case 'string':
155
-                $types .= 's';
152
+                break;
153
+                default:
154
+                case 'string':
155
+                    $types .= 's';
156 156
             }
157 157
         }
158 158
 
Please login to merge, or discard this patch.
src/lib/Rest/Routes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
      */
21 21
     public static function collect()
22 22
     {
23
-        return FastRoute\simpleDispatcher(function (FastRoute\RouteCollector $r) {
23
+        return FastRoute\simpleDispatcher(function(FastRoute\RouteCollector $r) {
24 24
             $r->addRoute('GET', '/healthz', [v1\Api::class, 'get']);
25 25
             $r->addRoute('GET', '/api', [v1\Api::class, 'get']);
26 26
             $r->addRoute('GET', '/api/v1', [v1\Api::class, 'get']);
Please login to merge, or discard this patch.
src/lib/Endpoint/Rest/Factory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,8 +56,8 @@  discard block
 block discarded – undo
56 56
     {
57 57
         $token = '';
58 58
 
59
-        return function (callable $handler) use ($resource, &$token, $logger) {
60
-            return function (
59
+        return function(callable $handler) use ($resource, &$token, $logger) {
60
+            return function(
61 61
                 RequestInterface $request,
62 62
                 array $options
63 63
             ) use ($handler, $resource, &$token, $logger) {
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
                 $promise = $handler($request, $options);
67 67
 
68 68
                 return $promise->then(
69
-                    function (ResponseInterface $response) use ($resource, &$token, $logger, $handler, $request, $options) {
69
+                    function(ResponseInterface $response) use ($resource, &$token, $logger, $handler, $request, $options) {
70 70
                         if ($response->getStatusCode() !== 401) {
71 71
                             return $response;
72 72
                         }
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 
83 83
                         $promise = $handler($request, $options);
84 84
 
85
-                        return $promise->then(function (ResponseInterface $response) {
85
+                        return $promise->then(function(ResponseInterface $response) {
86 86
                             return $response;
87 87
                         });
88 88
                     }
Please login to merge, or discard this patch.
src/lib/Rest/Helper.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
         $options = isset($query['pretty']) ? JSON_PRETTY_PRINT : 0;
75 75
         $error = null;
76 76
 
77
-        $stream = new StreamIterator($cursor, function ($resource) use ($request, $options) {
77
+        $stream = new StreamIterator($cursor, function($resource) use ($request, $options) {
78 78
             if ($this->tell() === 0) {
79 79
                 echo '[';
80 80
             } else {
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
             }
89 89
 
90 90
             flush();
91
-        }, function (\Throwable $e) {
91
+        }, function(\Throwable $e) {
92 92
             if ($this->tell() === 0) {
93 93
                 echo '[';
94 94
             } else {
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
         $query = $request->getQueryParams();
122 122
         $options = isset($query['pretty']) ? JSON_PRETTY_PRINT : 0;
123 123
 
124
-        $stream = new StreamIterator($cursor, function ($event) use ($request, $options) {
124
+        $stream = new StreamIterator($cursor, function($event) use ($request, $options) {
125 125
             if ($this->tell() === 0) {
126 126
                 echo '[';
127 127
             } else {
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
             }
139 139
 
140 140
             flush();
141
-        }, function (\Throwable $e) {
141
+        }, function(\Throwable $e) {
142 142
             if ($this->tell() === 0) {
143 143
                 echo '[';
144 144
             } else {
Please login to merge, or discard this patch.