Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
26 | 2 | private function makeHandlersList(string $handlers): array |
|
27 | { |
||
28 | 2 | if ($handlers === '') { |
|
29 | 2 | return []; |
|
30 | } |
||
31 | 2 | $injProcessor = new InjectedStringSuit($handlers); |
|
32 | 2 | $result = $injProcessor->addSlashes(',')->get(); |
|
33 | 2 | $result = preg_split('{(?<!\\\\),\s*}', $result); |
|
34 | 2 | foreach ($result as &$handler) { |
|
35 | 2 | $injProcessor = new InjectedStringSuit(stripcslashes($handler)); |
|
36 | 2 | $handler = $injProcessor->resolveClassNames($this->namespace)->processThis()->wrapWithClosure()->get(); |
|
37 | } |
||
38 | 2 | return $result; |
|
|
|||
39 | } |
||
60 | } |