| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | public static function build(): array |
||
| 14 | { |
||
| 15 | return |
||
| 16 | [ |
||
| 17 | 'name' => 'nextAccountCode', |
||
| 18 | 'type' => Type::nonNull(Type::int()), |
||
| 19 | 'description' => 'Next available account code for creation', |
||
| 20 | 'args' => [], |
||
| 21 | 'resolve' => function ($root, array $args): int { |
||
|
2 ignored issues
–
show
|
|||
| 22 | /** @var AccountRepository $repository */ |
||
| 23 | $repository = _em()->getRepository(Account::class); |
||
| 24 | |||
| 25 | return $repository->getNextCodeAvailable(); |
||
| 26 | }, |
||
| 30 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.