| Conditions | 4 |
| Paths | 2 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | private function recursive($data, $level) { |
||
| 38 | $list = []; |
||
| 39 | if(is_array($data)) { |
||
| 40 | foreach ($data as $key => $value) { |
||
| 41 | if(is_array($value)) { |
||
| 42 | $list[] = \ArrayData::create(['Key' => $key, 'Value' => '', 'Heading' => true, 'Level' => $level]); |
||
| 43 | $list = array_merge($list, $this->recursive($value, $level+1)); |
||
| 44 | } else { |
||
| 45 | $list[] = \ArrayData::create(['Key' => $key, 'Value' => $value, 'Level' => $level]); |
||
| 46 | } |
||
| 47 | } |
||
| 48 | } |
||
| 49 | return $list; |
||
| 50 | } |
||
| 51 | |||
| 62 |
This check compares the return type specified in the
@returnannotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.