Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
33 | private function normalizeString($declaration) |
||
34 | { |
||
35 | $service = $declaration; |
||
36 | $method = null; |
||
37 | |||
38 | if (strpos($declaration, ':') !== false) { |
||
39 | list($service, $method) = explode(':', $declaration); |
||
40 | } |
||
41 | |||
42 | return [ |
||
43 | 'service' => $service, |
||
44 | 'method' => $method, |
||
45 | 'arguments' => [], |
||
46 | 'required' => true, |
||
47 | ]; |
||
48 | } |
||
49 | } |
||
50 |
Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.