@@ -91,7 +91,7 @@ |
||
91 | 91 | */ |
92 | 92 | public function retainAllArray(array $collection): bool |
93 | 93 | { |
94 | - $collectionKeys = array_map(function ($element) { return $this->getKey($element); }, $collection); |
|
94 | + $collectionKeys = array_map(function($element) { return $this->getKey($element); }, $collection); |
|
95 | 95 | |
96 | 96 | $size = $this->count(); |
97 | 97 | foreach ($this as $element) { |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | */ |
64 | 64 | public function containsValue($value): bool |
65 | 65 | { |
66 | - return $this->exists(function (MapEntry $mapEntry) use ($value) { |
|
66 | + return $this->exists(function(MapEntry $mapEntry) use ($value) { |
|
67 | 67 | return $mapEntry->value === $value; |
68 | 68 | }); |
69 | 69 | } |
@@ -233,7 +233,7 @@ discard block |
||
233 | 233 | case 'array': |
234 | 234 | return md5(serialize($value)); |
235 | 235 | default: |
236 | - return $type . md5($value); |
|
236 | + return $type.md5($value); |
|
237 | 237 | } |
238 | 238 | } |
239 | 239 | |
@@ -244,7 +244,7 @@ discard block |
||
244 | 244 | */ |
245 | 245 | private function getKeys(): array |
246 | 246 | { |
247 | - return array_map(function (MapEntry $mapEntry) { |
|
247 | + return array_map(function(MapEntry $mapEntry) { |
|
248 | 248 | return $mapEntry->key; |
249 | 249 | }, $this->elements); |
250 | 250 | } |
@@ -256,7 +256,7 @@ discard block |
||
256 | 256 | */ |
257 | 257 | private function getValues(): array |
258 | 258 | { |
259 | - return array_map(function (MapEntry $mapEntry) { |
|
259 | + return array_map(function(MapEntry $mapEntry) { |
|
260 | 260 | return $mapEntry->value; |
261 | 261 | }, $this->elements); |
262 | 262 | } |