Completed
Pull Request — master (#15)
by Gabriel
03:36
created
src/Migration/Options/Direction.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/Service/Command/Migrate/Collection/CollectionHandler.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Shared/Collection/AbstractCollection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Version/Repository/VersionRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,12 +82,12 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.