Conditions | 4 |
Paths | 4 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 4 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | 3 | public function apply(array $parameters) |
|
20 | { |
||
21 | 3 | foreach ($parameters as $parameter) { |
|
22 | 3 | list($actual, $transformed) = explode(static::DELIMITER, $parameter); |
|
23 | // die(var_dump($this->value, $actual, $transformed)); |
||
24 | 3 | if ($this->value == $actual) { |
|
25 | 3 | return is_numeric($transformed) ? (int)$transformed : $transformed; |
|
26 | } |
||
30 |