@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | $filter = $this->prepareQuery($namespace, $query); |
94 | 94 | $that = $this; |
95 | 95 | |
96 | - return $this->resource_factory->getAllFrom($this->db->{self::COLLECTION_NAME}, $filter, $offset, $limit, $sort, function (array $resource) use ($namespace, $that) { |
|
96 | + return $this->resource_factory->getAllFrom($this->db->{self::COLLECTION_NAME}, $filter, $offset, $limit, $sort, function(array $resource) use ($namespace, $that) { |
|
97 | 97 | return $that->build($resource, $namespace); |
98 | 98 | }); |
99 | 99 | } |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | $filter = $this->prepareQuery($namespace, $query); |
231 | 231 | $that = $this; |
232 | 232 | |
233 | - return $this->resource_factory->watchFrom($this->db->{self::COLLECTION_NAME}, $after, $existing, $filter, function (array $resource) use ($namespace, $that) { |
|
233 | + return $this->resource_factory->watchFrom($this->db->{self::COLLECTION_NAME}, $after, $existing, $filter, function(array $resource) use ($namespace, $that) { |
|
234 | 234 | return $that->build($resource, $namespace); |
235 | 235 | }, $offset, $limit, $sort); |
236 | 236 | } |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | $filter = $this->prepareQuery($namespace, $query); |
94 | 94 | $that = $this; |
95 | 95 | |
96 | - return $this->resource_factory->getAllFrom($this->db->{self::COLLECTION_NAME}, $filter, $offset, $limit, $sort, function (array $resource) use ($namespace, $that) { |
|
96 | + return $this->resource_factory->getAllFrom($this->db->{self::COLLECTION_NAME}, $filter, $offset, $limit, $sort, function(array $resource) use ($namespace, $that) { |
|
97 | 97 | return $that->build($resource, $namespace); |
98 | 98 | }); |
99 | 99 | } |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | $filter = $this->prepareQuery($namespace, $query); |
231 | 231 | $that = $this; |
232 | 232 | |
233 | - return $this->resource_factory->watchFrom($this->db->{self::COLLECTION_NAME}, $after, $existing, $filter, function (array $resource) use ($namespace, $that) { |
|
233 | + return $this->resource_factory->watchFrom($this->db->{self::COLLECTION_NAME}, $after, $existing, $filter, function(array $resource) use ($namespace, $that) { |
|
234 | 234 | return $that->build($resource, $namespace); |
235 | 235 | }, $offset, $limit, $sort); |
236 | 236 | } |
@@ -141,7 +141,7 @@ discard block |
||
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 |
||
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 | } |
@@ -101,7 +101,7 @@ discard block |
||
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 |
||
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 | } |
@@ -89,7 +89,7 @@ |
||
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(), |
@@ -234,7 +234,7 @@ |
||
234 | 234 | $this->logger->popProcessor(); |
235 | 235 | } |
236 | 236 | |
237 | - $this->logger->pushProcessor(function ($record) use ($context) { |
|
237 | + $this->logger->pushProcessor(function($record) use ($context) { |
|
238 | 238 | $record['context'] = array_merge($record['context'], $context); |
239 | 239 | |
240 | 240 | return $record; |
@@ -74,7 +74,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 { |