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