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