@@ -37,7 +37,7 @@ |
||
37 | 37 | throw new InvalidArgumentException('Invalid or malformed JSON'); |
38 | 38 | } |
39 | 39 | |
40 | - if (! isset($array['sites']) || ! is_array($array['sites'])) { |
|
40 | + if (!isset($array['sites']) || !is_array($array['sites'])) { |
|
41 | 41 | throw new RuntimeException('Service can not be created'); |
42 | 42 | } |
43 | 43 |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | */ |
28 | 28 | public function addItem($key, $item): bool |
29 | 29 | { |
30 | - if (! array_key_exists($key, $this->items)) { |
|
30 | + if (!array_key_exists($key, $this->items)) { |
|
31 | 31 | $this->items[$key] = $item; |
32 | 32 | |
33 | 33 | return true; |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | */ |
68 | 68 | public function findItemById($id): int |
69 | 69 | { |
70 | - if (! empty($this->items)) { |
|
70 | + if (!empty($this->items)) { |
|
71 | 71 | $value = 0; |
72 | 72 | foreach ($this->items as $item) { |
73 | 73 | if ($item->getId() === $id) { |
@@ -96,6 +96,6 @@ discard block |
||
96 | 96 | |
97 | 97 | public function isEmpty(): bool |
98 | 98 | { |
99 | - return ! ($this->count() > 0); |
|
99 | + return !($this->count() > 0); |
|
100 | 100 | } |
101 | 101 | } |
@@ -30,7 +30,7 @@ |
||
30 | 30 | new Serializer\Naming\IdenticalPropertyNamingStrategy() |
31 | 31 | ) |
32 | 32 | ) |
33 | - ->setSerializationContextFactory(function () { |
|
33 | + ->setSerializationContextFactory(function() { |
|
34 | 34 | return SerializationContext::create() |
35 | 35 | ->setSerializeNull(true); |
36 | 36 | }) |