| Total Complexity | 2 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | trait Staged |
||
| 31 | { |
||
| 32 | /** |
||
| 33 | * Return the hook restriction information |
||
| 34 | * |
||
| 35 | * @return \CaptainHook\App\Hook\Restriction |
||
| 36 | */ |
||
| 37 | 5 | public static function getRestriction(): Restriction |
|
| 38 | { |
||
| 39 | 5 | return Restriction::fromArray([Hooks::PRE_COMMIT]); |
|
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @param \CaptainHook\App\Console\IO $io |
||
| 44 | * @param \SebastianFeldmann\Git\Repository $repository |
||
| 45 | * @param array<string> $filter |
||
| 46 | * @return array<string> |
||
| 47 | */ |
||
| 48 | 23 | protected function getFiles(IO $io, Repository $repository, array $filter): array |
|
| 51 | } |
||
| 52 | } |
||
| 53 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.