Skip to content

Commit

Permalink
refactor: Minor cosmetic stuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Jan 30, 2021
1 parent bd8c40f commit 42197be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
14 changes: 4 additions & 10 deletions spec/loophp/collection/CollectionSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,9 @@ static function ($item) use (&$stack): bool {
];

if ($stack !== $expected) {
throw new Exception('Error');
throw new Exception('The expected value does not match.');
}

// ---

$stack = [];

$this::fromIterable($input)
Expand All @@ -104,11 +102,9 @@ static function ($item) use (&$stack): bool {
];

if ($stack !== $expected) {
throw new Exception('Error');
throw new Exception('The expected value does not match.');
}

// ---

$stack = [];

$this::fromIterable($input)
Expand Down Expand Up @@ -137,11 +133,9 @@ static function ($item) use (&$stack): bool {
];

if ($stack !== $expected) {
throw new Exception('Error');
throw new Exception('The expected value does not match.');
}

// ---

$stack = [];

$this::fromIterable($input)
Expand Down Expand Up @@ -176,7 +170,7 @@ static function ($item) use (&$stack): bool {
];

if ($stack !== $expected) {
throw new Exception('Error');
throw new Exception('The expected value does not match.');
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/Operation/Apply.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
final class Apply extends AbstractOperation
{
/**
* @psalm-return Closure(callable(T , TKey, Iterator<TKey, T>):bool ...): Closure(Iterator<TKey, T>): Generator<TKey, T>
* @psalm-return Closure(callable(T, TKey, Iterator<TKey, T>):bool ...): Closure(Iterator<TKey, T>): Generator<TKey, T>
*/
public function __invoke(): Closure
{
Expand Down

0 comments on commit 42197be

Please sign in to comment.