@@ -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 | /** |
@@ -20,8 +20,6 @@ |
||
20 | 20 | namespace Baleen\Migrations\Service\Runner; |
21 | 21 | |
22 | 22 | use Baleen\Migrations\Exception\Service\Runner\RunnerException; |
23 | -use Baleen\Migrations\Service\MigrationBus\MigrationBus; |
|
24 | -use Baleen\Migrations\Service\MigrationBus\MigrationBusInterface; |
|
25 | 23 | use Baleen\Migrations\Migration\OptionsInterface; |
26 | 24 | use Baleen\Migrations\Service\Runner\Event\Migration\MigrateAfterEvent; |
27 | 25 | use Baleen\Migrations\Service\Runner\Event\Migration\MigrateBeforeEvent; |
@@ -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 |
@@ -21,14 +21,12 @@ |
||
21 | 21 | |
22 | 22 | use Baleen\Migrations\Exception\InvalidArgumentException; |
23 | 23 | use Baleen\Migrations\Exception\Version\Collection\CollectionException; |
24 | -use Baleen\Migrations\Migration\Options\Direction; |
|
25 | 24 | use Baleen\Migrations\Shared\Collection\AbstractCollection; |
26 | 25 | use Baleen\Migrations\Version\Collection\Resolver\DefaultResolverStackFactory; |
27 | 26 | use Baleen\Migrations\Version\Collection\Resolver\ResolverInterface; |
28 | 27 | use Baleen\Migrations\Version\Comparator\ComparatorInterface; |
29 | 28 | use Baleen\Migrations\Version\Comparator\MigrationComparator; |
30 | 29 | use Baleen\Migrations\Version\VersionInterface; |
31 | -use Zend\Stdlib\ArrayUtils; |
|
32 | 30 | |
33 | 31 | /** |
34 | 32 | * Class CollectionAbstract. |
@@ -25,7 +25,6 @@ |
||
25 | 25 | use Baleen\Migrations\Service\Runner\Event\Collection\CollectionBeforeEvent; |
26 | 26 | use Baleen\Migrations\Common\Collection\CollectionInterface; |
27 | 27 | use Baleen\Migrations\Common\Event\Context\CollectionContext; |
28 | -use Baleen\Migrations\Common\Event\MutePublisher; |
|
29 | 28 | use Baleen\Migrations\Common\Event\Publisher\HasInternalPublisherTrait; |
30 | 29 | use Baleen\Migrations\Common\Event\PublisherInterface; |
31 | 30 | use Baleen\Migrations\Delta\Collection\Collection; |