Skip to content

Commit

Permalink
adjusting indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
SignpostMarv committed Jul 3, 2018
1 parent c821327 commit fee3b19
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions src/StaticMethodCollector.php
Expand Up @@ -128,25 +128,25 @@ private function CollectInterfacesFromImplementationTypes(
string $method,
array $types
) : Generator {
/**
* @var iterable<string> $methodResult
*/
$methodResult = $implementation::$method();

foreach ($methodResult as $result) {
if (in_array($result, $this->alreadyYielded, true)) {
continue;
}
/**
* @var string $type
*/
foreach ($this->FilterIsA($result, $types) as $type) {
yield $result;
$this->alreadyYielded[] = $result;
}

yield from $this->CollectInterfaces($result);
}
/**
* @var iterable<string> $methodResult
*/
$methodResult = $implementation::$method();

foreach ($methodResult as $result) {
if (in_array($result, $this->alreadyYielded, true)) {
continue;
}
/**
* @var string $type
*/
foreach ($this->FilterIsA($result, $types) as $type) {
yield $result;
$this->alreadyYielded[] = $result;
}

yield from $this->CollectInterfaces($result);
}
}

private function FilterIsA(string $implementation, array $interfaces) : array
Expand Down

0 comments on commit fee3b19

Please sign in to comment.