Passed
Push — main ( 5b7f1c...98c11d )
by Vasil
03:17
created
src/Service/Location/Site/FindSiteResponseFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Service/Location/Site/Collection.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
96 96
 
97 97
     public function isEmpty(): bool
98 98
     {
99
-        return ! ($this->count() > 0);
99
+        return !($this->count() > 0);
100 100
     }
101 101
 }
Please login to merge, or discard this patch.
src/Serializer/SerializerFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
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
                 })
Please login to merge, or discard this patch.