Passed
Push — main ( 3246e1...0b7762 )
by Vasil
03:42
created
src/Service/Location/State/FindStateResponseFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
             throw new InvalidArgumentException('Invalid or malformed JSON');
40 40
         }
41 41
 
42
-        if (! isset($array['states']) || ! is_array($array['states'])) {
42
+        if (!isset($array['states']) || !is_array($array['states'])) {
43 43
             throw new RuntimeException('Service can not be created');
44 44
         }
45 45
 
Please login to merge, or discard this patch.
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.