| Conditions | 4 |
| Paths | 4 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | 8 | public function run(array $args) |
|
| 16 | { |
||
| 17 | 8 | if (empty($args)) { |
|
| 18 | 1 | return $this->newReturnType('True'); |
|
| 19 | } |
||
| 20 | 7 | $last = $args[0]; |
|
| 21 | 7 | array_shift($args); |
|
| 22 | 7 | foreach ($args as $arg) { |
|
| 23 | 6 | if ($arg->value() != $last->value()) { |
|
| 24 | 5 | return $this->newReturnType('False'); |
|
| 25 | } |
||
| 26 | 5 | $last = $arg; |
|
| 27 | } |
||
| 28 | 6 | return $this->newReturnType('True'); |
|
| 29 | } |
||
| 30 | } |
||
| 31 |