Completed
Push — master ( 181562...3cf559 )
by Pablo
02:49
created
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.