| Conditions | 4 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 4.0218 |
| Changes | 0 | ||
| 1 | <?php |
||
| 44 | 1 | protected function convertItem($item) |
|
| 45 | { |
||
| 46 | 1 | foreach ($item as $key => $value) { |
|
| 47 | 1 | if (!isset($this->converters[$key])) { |
|
| 48 | continue; |
||
| 49 | } |
||
| 50 | |||
| 51 | 1 | foreach ($this->converters[$key] as $converter) { |
|
| 52 | 1 | $item[$key] = call_user_func($converter, $item[$key]); |
|
| 53 | 1 | } |
|
| 54 | 1 | } |
|
| 55 | |||
| 56 | 1 | return $item; |
|
| 57 | } |
||
| 58 | } |
||
| 59 |