@@ -286,7 +286,7 @@ discard block |
||
286 | 286 | 'body' => [ |
287 | 287 | '@odata.id' => self::API_ENDPOINT.'/directoryObjects/'.$member, |
288 | 288 | ], |
289 | - 'headers' => [ |
|
289 | + 'headers' => [ |
|
290 | 290 | 'Content-Type' => 'application/json', |
291 | 291 | ], |
292 | 292 | ]; |
@@ -297,7 +297,7 @@ discard block |
||
297 | 297 | 'id' => 'remove-'.$type.'-'.$member, |
298 | 298 | 'method' => 'DELETE', |
299 | 299 | 'url' => '/groups/'.$id.'/'.$type.'/'.$member.'/$ref', |
300 | - 'headers' => [ |
|
300 | + 'headers' => [ |
|
301 | 301 | 'Content-Type' => 'application/json', |
302 | 302 | ], |
303 | 303 | ]; |
@@ -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; |