| Conditions | 2 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 52 | public function getArgumentValue($name) |
||
| 53 | { |
||
| 54 | 9 | return array_reduce($this->arguments, function($carry, $item) use ($name) { |
|
| 55 | 9 | if (substr(strtolower($item), 0, strlen($name) + 2) == '--' . $name) { |
|
| 56 | 8 | $val = explode('=', $item); |
|
| 57 | 8 | return trim($val[1]); |
|
| 58 | } else { |
||
| 59 | 1 | return $carry; |
|
| 60 | } |
||
| 61 | 9 | }, false); |
|
| 62 | |||
| 63 | } |
||
| 64 | |||
| 72 |