@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | $this->set_current_item($data); |
65 | 65 | $this->prepare_items($data['items']); |
66 | 66 | |
67 | - $data['items'] = array_map(function($row) { |
|
67 | + $data['items'] = array_map(function ($row) { |
|
68 | 68 | $row['num_kids'] = $this->count_descendants($row); |
69 | 69 | return array_change_key_case($row, CASE_UPPER); |
70 | 70 | }, $data['items']); |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | } |
154 | 154 | |
155 | 155 | [$is_current_item, $is_parent] = $this->get_current_item($row); |
156 | - $depth = $this->get_parental_depth($row) + 1; |
|
156 | + $depth = $this->get_parental_depth($row) + 1; |
|
157 | 157 | $leaf = $this->get_leaf_node($row, $is_current_item, $is_parent); |
158 | 158 | |
159 | 159 | $this->parental_depth[$row[$this->pk]] = $depth; |