| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public function scope(string $filePath, string $prefix, array $patchers): string |
||
| 32 | { |
||
| 33 | $content = $this->decoratedScoper->scope($filePath, $prefix, $patchers); |
||
| 34 | |||
| 35 | return array_reduce( |
||
| 36 | $patchers, |
||
| 37 | function (string $content, callable $patcher) use ($filePath, $prefix): string { |
||
| 38 | return $patcher($filePath, $prefix, $content); |
||
| 39 | }, |
||
| 40 | $content |
||
| 41 | ); |
||
| 42 | } |
||
| 43 | } |
||
| 44 |