Conditions | 4 |
Paths | 4 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
26 | public function mapData($data, $schema) |
||
|
|||
27 | { |
||
28 | if (empty($data)) { |
||
29 | return $data; |
||
30 | } |
||
31 | if (array_key_exists('_id', $data)) { |
||
32 | return $this->fieldMapper($data); |
||
33 | } else { |
||
34 | foreach ($data as &$item) { |
||
35 | $item = $this->fieldMapper($item); |
||
36 | } |
||
37 | } |
||
38 | return $data; |
||
39 | } |
||
40 | private function fieldMapper($data) |
||
54 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.