@@ -9,7 +9,7 @@ |
||
9 | 9 | */ |
10 | 10 | abstract class Model |
11 | 11 | { |
12 | - public function toJson($skipNullValues = null): bool|string |
|
12 | + public function toJson($skipNullValues = null): bool | string |
|
13 | 13 | { |
14 | 14 | $json = array(); |
15 | 15 | foreach ($this as $key => $value) { |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | $trace = $exception->getTrace(); |
52 | 52 | $first = $trace[0] ?? null; |
53 | 53 | |
54 | - $called = $first |
|
54 | + $called = $first |
|
55 | 55 | ? sprintf('file: %s line: %s', $first['file'] ?? 'n/a', $first['line'] ?? 'n/a') |
56 | 56 | : 'n/a'; |
57 | 57 | |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | $this->em->persist($log); |
66 | 66 | $this->em->flush(); |
67 | 67 | } catch (\Throwable $e) { |
68 | - $this->logger->error('Erreur lors de la persistance du log Geodis : ' . $e->getMessage(), [ |
|
68 | + $this->logger->error('Erreur lors de la persistance du log Geodis : '.$e->getMessage(), [ |
|
69 | 69 | 'exception' => $e |
70 | 70 | ]); |
71 | 71 | } |
@@ -18,7 +18,7 @@ |
||
18 | 18 | parent::setConfig($config); |
19 | 19 | } |
20 | 20 | |
21 | - private function request(string $method, string $service, array|string|null $body = null): mixed |
|
21 | + private function request(string $method, string $service, array | string | null $body = null): mixed |
|
22 | 22 | { |
23 | 23 | Connection::setContentType('json'); |
24 | 24 |