Completed
Push — master ( 7252c9...ecb243 )
by Pablo
03:45
created
src/PhpValueObjects/Tests/Identity/UuidValueObjectTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@
 block discarded – undo
25 25
     public function invalidUuidProvider(): array
26 26
     {
27 27
         return [
28
-            [$this->faker()->numberBetween()],
29
-            [$this->faker()->address],
28
+            [ $this->faker()->numberBetween() ],
29
+            [ $this->faker()->address ],
30 30
         ];
31 31
     }
32 32
 
Please login to merge, or discard this patch.
src/PhpValueObjects/Tests/Identity/Md5ValueObjectTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,9 +25,9 @@
 block discarded – undo
25 25
     public function invalidMd5HashProvider(): array
26 26
     {
27 27
         return [
28
-            [$this->faker()->sha1],
29
-            [$this->faker()->sha256],
30
-            [$this->faker()->text],
28
+            [ $this->faker()->sha1 ],
29
+            [ $this->faker()->sha256 ],
30
+            [ $this->faker()->text ],
31 31
         ];
32 32
     }
33 33
 
Please login to merge, or discard this patch.
src/PhpValueObjects/Tests/Money/CurrencyValueObjectTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,10 +12,10 @@
 block discarded – undo
12 12
     public function currencyCodeProvider(): array
13 13
     {
14 14
         return [
15
-            ['EUR'],
16
-            ['USD'],
17
-            ['KYD'],
18
-            ['HKD'],
15
+            [ 'EUR' ],
16
+            [ 'USD' ],
17
+            [ 'KYD' ],
18
+            [ 'HKD' ],
19 19
         ];
20 20
     }
21 21
     /**
Please login to merge, or discard this patch.
src/PhpValueObjects/Collection/ObjectCollection.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 
23 23
     public static function init(): self
24 24
     {
25
-        return new static([]);
25
+        return new static([ ]);
26 26
     }
27 27
 
28 28
     abstract protected function setClassName(): string;
@@ -59,12 +59,12 @@  discard block
 block discarded – undo
59 59
 
60 60
     public function remove($key)
61 61
     {
62
-        if (!isset($this->objects[$key]) && !array_key_exists($key, $this->objects)) {
62
+        if (!isset($this->objects[ $key ]) && !array_key_exists($key, $this->objects)) {
63 63
             return null;
64 64
         }
65 65
 
66
-        $removed = $this->objects[$key];
67
-        unset($this->objects[$key]);
66
+        $removed = $this->objects[ $key ];
67
+        unset($this->objects[ $key ]);
68 68
 
69 69
         return $removed;
70 70
     }
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
             return false;
78 78
         }
79 79
 
80
-        unset($this->objects[$key]);
80
+        unset($this->objects[ $key ]);
81 81
 
82 82
         return true;
83 83
     }
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 
90 90
     public function get($key)
91 91
     {
92
-        return $this->objects[$key] ?? null;
92
+        return $this->objects[ $key ] ?? null;
93 93
     }
94 94
 
95 95
     public function getKeys()
@@ -109,12 +109,12 @@  discard block
 block discarded – undo
109 109
 
110 110
     public function set($key, $value): void
111 111
     {
112
-        $this->objects[$key] = $value;
112
+        $this->objects[ $key ] = $value;
113 113
     }
114 114
 
115 115
     public function add($element): void
116 116
     {
117
-        $this->objects[] = $element;
117
+        $this->objects[ ] = $element;
118 118
     }
119 119
 
120 120
     public function isEmpty(): bool
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
 
125 125
     public function clear(): void
126 126
     {
127
-        $this->objects = [];
127
+        $this->objects = [ ];
128 128
     }
129 129
 
130 130
 }
Please login to merge, or discard this patch.