Completed
Pull Request — master (#15)
by Gabriel
03:36
created
src/Version/Collection/Collection.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,6 @@
 block discarded – undo
28 28
 use Baleen\Migrations\Version\Comparator\ComparatorInterface;
29 29
 use Baleen\Migrations\Version\Comparator\MigrationComparator;
30 30
 use Baleen\Migrations\Version\VersionInterface;
31
-use Zend\Stdlib\ArrayUtils;
32 31
 
33 32
 /**
34 33
  * Class CollectionAbstract.
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/Service/Command/Migrate/Single/SingleHandler.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,6 @@
 block discarded – undo
19 19
 
20 20
 namespace Baleen\Migrations\Service\Command\Migrate\Single;
21 21
 
22
-use Baleen\Migrations\Service\Command\Migrate\AbstractRunnerHandler;
23 22
 use Baleen\Migrations\Service\Command\Migrate\Single;
24 23
 use Baleen\Migrations\Service\Runner\HasRunnerTrait;
25 24
 use Baleen\Migrations\Service\Runner\MigrationRunner;
Please login to merge, or discard this patch.
src/Service/Runner/CollectionRunner.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,6 @@
 block discarded – undo
25 25
 use Baleen\Migrations\Service\Runner\Event\Collection\CollectionBeforeEvent;
26 26
 use Baleen\Migrations\Shared\Collection\CollectionInterface;
27 27
 use Baleen\Migrations\Shared\Event\Context\CollectionContext;
28
-use Baleen\Migrations\Shared\Event\MutePublisher;
29 28
 use Baleen\Migrations\Shared\Event\Publisher\HasInternalPublisherTrait;
30 29
 use Baleen\Migrations\Shared\Event\PublisherInterface;
31 30
 use Baleen\Migrations\Version\Collection\Collection;
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.