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