@@ -42,7 +42,7 @@ |
||
| 42 | 42 | */ |
| 43 | 43 | protected function setErrorHandler(): self |
| 44 | 44 | { |
| 45 | - set_error_handler(function ($severity, $message, $file, $line) { |
|
| 45 | + set_error_handler(function($severity, $message, $file, $line) { |
|
| 46 | 46 | $log = $message.' in '.$file.':'.$line; |
| 47 | 47 | |
| 48 | 48 | switch ($severity) { |
@@ -184,7 +184,7 @@ |
||
| 184 | 184 | */ |
| 185 | 185 | protected function setExceptionHandler(): self |
| 186 | 186 | { |
| 187 | - set_exception_handler(function ($e) { |
|
| 187 | + set_exception_handler(function($e) { |
|
| 188 | 188 | $this->logger->emergency('uncaught exception: '.$e->getMessage(), [ |
| 189 | 189 | 'category' => get_class($this), |
| 190 | 190 | 'exception' => $e, |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | */ |
| 52 | 52 | protected static function setErrorHandler(LoggerInterface $logger): void |
| 53 | 53 | { |
| 54 | - set_error_handler(function ($severity, $message, $file, $line) use ($logger) { |
|
| 54 | + set_error_handler(function($severity, $message, $file, $line) use ($logger) { |
|
| 55 | 55 | $log = $message.' in '.$file.':'.$line; |
| 56 | 56 | |
| 57 | 57 | switch ($severity) { |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | */ |
| 55 | 55 | protected function setErrorHandler(LoggerInterface $logger): self |
| 56 | 56 | { |
| 57 | - set_error_handler(function ($severity, $message, $file, $line) use ($logger) { |
|
| 57 | + set_error_handler(function($severity, $message, $file, $line) use ($logger) { |
|
| 58 | 58 | $log = $message.' in '.$file.':'.$line; |
| 59 | 59 | |
| 60 | 60 | switch ($severity) { |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | $resource = [ |
| 43 | 43 | 'kind' => 'AccessRule', |
| 44 | 44 | 'data' => $this->getData(), |
| 45 | - ]; |
|
| 45 | + ]; |
|
| 46 | 46 | |
| 47 | 47 | return AttributeResolver::resolve($request, $this, $resource); |
| 48 | 48 | } |
@@ -122,7 +122,7 @@ |
||
| 122 | 122 | 'http' => [ |
| 123 | 123 | 'method' => $method, |
| 124 | 124 | 'header' => "Content-Type: application/json\r\n". |
| 125 | - 'Authorization: Basic '.base64_encode($this->username.':'.$this->password)."\r\n", |
|
| 125 | + 'Authorization: Basic '.base64_encode($this->username.':'.$this->password)."\r\n", |
|
| 126 | 126 | ], |
| 127 | 127 | ]; |
| 128 | 128 | |
@@ -398,9 +398,9 @@ |
||
| 398 | 398 | } |
| 399 | 399 | |
| 400 | 400 | $mail = (new Message()) |
| 401 | - ->setSubject($subject) |
|
| 402 | - ->setBody($body) |
|
| 403 | - ->setEncoding('UTF-8'); |
|
| 401 | + ->setSubject($subject) |
|
| 402 | + ->setBody($body) |
|
| 403 | + ->setEncoding('UTF-8'); |
|
| 404 | 404 | |
| 405 | 405 | foreach ($this->data['notification']['receiver'] as $receiver) { |
| 406 | 406 | $mail->setTo($receiver); |
@@ -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; |
@@ -185,7 +185,7 @@ |
||
| 185 | 185 | '_links' => [ |
| 186 | 186 | 'namespace' => ['href' => (string) $request->getUri()->withPath('/api/v1/namespaces/'.$namespace)], |
| 187 | 187 | 'collection' => ['href' => (string) $request->getUri()->withPath('/api/v1/namespaces/'.$namespace.'/collections/'.$collection)], |
| 188 | - ], |
|
| 188 | + ], |
|
| 189 | 189 | 'kind' => static::KIND, |
| 190 | 190 | 'namespace' => $namespace, |
| 191 | 191 | 'collection' => $collection, |
@@ -178,7 +178,7 @@ discard block |
||
| 178 | 178 | 'namespace' => $namespace, |
| 179 | 179 | 'collection' => $collection, |
| 180 | 180 | 'data' => $this->getData(), |
| 181 | - 'status' => function ($endpoint) { |
|
| 181 | + 'status' => function($endpoint) { |
|
| 182 | 182 | try { |
| 183 | 183 | $endpoint->setup(); |
| 184 | 184 | |
@@ -334,7 +334,7 @@ discard block |
||
| 334 | 334 | */ |
| 335 | 335 | private function parseAttribute(string $string, array $data): string |
| 336 | 336 | { |
| 337 | - return preg_replace_callback('/(\{(([^\}\{\"]*)+)\})/', function ($match) use ($string, $data) { |
|
| 337 | + return preg_replace_callback('/(\{(([^\}\{\"]*)+)\})/', function($match) use ($string, $data) { |
|
| 338 | 338 | if (substr($match[0], 0, 2) === '{{' && $match[4][0] === '}') { |
| 339 | 339 | return $match[2].$match[4]; |
| 340 | 340 | } |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | 'namespace' => $namespace, |
| 64 | 64 | 'collection' => $collection, |
| 65 | 65 | 'data' => $this->getData(), |
| 66 | - 'status' => function ($object) { |
|
| 66 | + 'status' => function($object) { |
|
| 67 | 67 | $endpoints = $object->getEndpoints(); |
| 68 | 68 | foreach ($endpoints as &$endpoint) { |
| 69 | 69 | $endpoint['last_sync'] = $endpoint['last_sync']->toDateTime()->format('c'); |