Skip to content

Commit

Permalink
Apply Rector changes (CI)
Browse files Browse the repository at this point in the history
  • Loading branch information
xepozz authored and github-actions[bot] committed May 29, 2024
1 parent b3e3359 commit 346cee6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/Gii.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,9 @@ public function addGenerator(GeneratorInterface $generator): void

public function getGenerator(string $id): GeneratorInterface
{
if (isset($this->instances[$id])) {
return $this->instances[$id];
}
return isset($this->proxies[$id])
return $this->instances[$id] ?? (isset($this->proxies[$id])
? $this->proxies[$id]->loadGenerator()
: throw new GeneratorNotFoundException('Generator "' . $id . '" not found');
: throw new GeneratorNotFoundException('Generator "' . $id . '" not found'));
}

public function getGenerators(): array
Expand Down

0 comments on commit 346cee6

Please sign in to comment.