@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | public function remove($key) |
128 | 128 | { |
129 | 129 | $key = (string) $key; |
130 | - if ( ! isset($this->elements[$key]) && ! array_key_exists($key, $this->elements)) { |
|
130 | + if (!isset($this->elements[$key]) && !array_key_exists($key, $this->elements)) { |
|
131 | 131 | return null; |
132 | 132 | } |
133 | 133 | |
@@ -270,7 +270,7 @@ discard block |
||
270 | 270 | final public function forAll(Closure $p) |
271 | 271 | { |
272 | 272 | foreach ($this->elements as $key => $element) { |
273 | - if ( ! $p($key, $element)) { |
|
273 | + if (!$p($key, $element)) { |
|
274 | 274 | return false; |
275 | 275 | } |
276 | 276 | } |
@@ -82,12 +82,12 @@ |
||
82 | 82 | return true; // nothing to do - exit early |
83 | 83 | } |
84 | 84 | |
85 | - $mapToIds = function(VersionInterface $v) { |
|
85 | + $mapToIds = function (VersionInterface $v) { |
|
86 | 86 | return $v->getId(); |
87 | 87 | }; |
88 | 88 | /** @var CollectionInterface $migrated */ |
89 | 89 | /** @var CollectionInterface $notMigrated */ |
90 | - list($migrated, $notMigrated) = $versions->partition(function($i, VersionInterface $v) { |
|
90 | + list($migrated, $notMigrated) = $versions->partition(function ($i, VersionInterface $v) { |
|
91 | 91 | return $v->isMigrated(); |
92 | 92 | }); |
93 | 93 | $migratedIds = $migrated->map($mapToIds); |