@@ -114,7 +114,7 @@ |
||
114 | 114 | * @param array $blocks |
115 | 115 | * @param array $ex_positions |
116 | 116 | * @param array $users_groups |
117 | - * @param array $position_counter |
|
117 | + * @param integer $position_counter |
|
118 | 118 | * @param array $display_modes |
119 | 119 | * @param bool $edit_mode |
120 | 120 | */ |
@@ -176,6 +176,10 @@ discard block |
||
176 | 176 | return ($row['item_id'] === $this->current_item['item_id']) ? true : false; |
177 | 177 | } |
178 | 178 | |
179 | + /** |
|
180 | + * @param integer $depth |
|
181 | + * @param boolean $is_current_item |
|
182 | + */ |
|
179 | 183 | protected function set_parental_depth($row, $depth, $is_current_item) |
180 | 184 | { |
181 | 185 | if ($is_current_item || $this->expanded || !$row['item_url'] || ($row['left_id'] < $this->current_item['left_id'] && $row['right_id'] > $this->current_item['right_id'])) |
@@ -184,6 +188,9 @@ discard block |
||
184 | 188 | } |
185 | 189 | } |
186 | 190 | |
191 | + /** |
|
192 | + * @param string $handle |
|
193 | + */ |
|
187 | 194 | protected function close_open_tags(\phpbb\template\twig\twig &$template, $handle, $repeat) |
188 | 195 | { |
189 | 196 | for ($i = 0; $i < $repeat; $i++) |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | /** |
59 | 59 | * |
60 | 60 | */ |
61 | - public function display_list(array $data, \phpbb\template\twig\twig &$template, $handle = 'tree') |
|
61 | + public function display_list(array $data, \phpbb\template\twig\twig & $template, $handle = 'tree') |
|
62 | 62 | { |
63 | 63 | $this->prepare_items($data); |
64 | 64 | |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | } |
106 | 106 | |
107 | 107 | $is_current_item = $this->is_current_item($row); |
108 | - $this_depth = $this->parental_depth[$row['parent_id']] + 1; |
|
108 | + $this_depth = $this->parental_depth[$row['parent_id']] + 1; |
|
109 | 109 | |
110 | 110 | $this->set_parental_depth($row, $this_depth, $is_current_item); |
111 | 111 | |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | } |
185 | 185 | } |
186 | 186 | |
187 | - protected function close_open_tags(\phpbb\template\twig\twig &$template, $handle, $repeat) |
|
187 | + protected function close_open_tags(\phpbb\template\twig\twig & $template, $handle, $repeat) |
|
188 | 188 | { |
189 | 189 | for ($i = 0; $i < $repeat; $i++) |
190 | 190 | { |