@@ -50,7 +50,7 @@ |
||
50 | 50 | * |
51 | 51 | * @param SingleCommand $command |
52 | 52 | * |
53 | - * @return VersionInterface |
|
53 | + * @return boolean |
|
54 | 54 | */ |
55 | 55 | public function handle(SingleCommand $command) |
56 | 56 | { |
@@ -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 |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | /** |
100 | 100 | * Gets all keys/indices of the collection. |
101 | 101 | * |
102 | - * @return array The keys/indices of the collection, in the order of the corresponding |
|
102 | + * @return integer[] The keys/indices of the collection, in the order of the corresponding |
|
103 | 103 | * elements in the collection. |
104 | 104 | */ |
105 | 105 | public function getKeys(); |
@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | * |
189 | 189 | * @param Closure $func |
190 | 190 | * |
191 | - * @return array |
|
191 | + * @return \Baleen\Migrations\Version\VersionId[] |
|
192 | 192 | */ |
193 | 193 | public function map(Closure $func); |
194 | 194 |