| Conditions | 3 |
| Paths | 3 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 3.0123 |
| Changes | 0 | ||
| 1 | <?php |
||
| 52 | 1 | protected function resolveArgument( |
|
| 53 | string $argument |
||
| 54 | ) { |
||
| 55 | 1 | if (substr($argument, 0, 1) !== "@") { |
|
| 56 | 1 | return $argument; |
|
| 57 | } |
||
| 58 | |||
| 59 | 1 | $serviceManager = $this->application->getServiceManager(); |
|
| 60 | 1 | if($serviceManager->has(substr($argument, 1))) { |
|
| 61 | 1 | return $this->application |
|
| 62 | 1 | ->getServiceManager() |
|
| 63 | 1 | ->get(substr($argument, 1)); |
|
| 64 | } |
||
| 65 | |||
| 66 | return $argument; |
||
| 67 | } |
||
| 68 | } |
||
| 69 |