| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | private static function recursiveChildren($childrens){ |
||
| 29 | $childs = []; |
||
| 30 | foreach ($childrens as $children){ |
||
| 31 | $childs[] = [ |
||
| 32 | 'id' => $children->id, |
||
| 33 | 'text' => $children->name, |
||
| 34 | 'state' => ['opened'=>true], |
||
| 35 | 'children' => self::recursiveChildren($children->children) |
||
| 36 | ]; |
||
| 37 | } |
||
| 38 | return $childs; |
||
| 39 | } |
||
| 61 |