@@ -77,7 +77,7 @@ |
||
| 77 | 77 | * @return string |
| 78 | 78 | */ |
| 79 | 79 | public function getDirection() { |
| 80 | - return $this->direction; |
|
| 80 | + return $this->direction; |
|
| 81 | 81 | } |
| 82 | 82 | |
| 83 | 83 | /** |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | $filter = function (VersionInterface $v) use ($target, $comparator, $direction) { |
| 48 | 48 | return ($direction->isUp() ^ $v->isMigrated()) // direction must be opposite to migration status |
| 49 | 49 | && $comparator->compare($v, $target) <= 0; // version must be before or be equal to target (not |
| 50 | - // affected by direction because comparator is reversed) |
|
| 50 | + // affected by direction because comparator is reversed) |
|
| 51 | 51 | }; |
| 52 | 52 | $collection = $collection->filter($filter)->sort($comparator); |
| 53 | 53 | |
@@ -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); |