@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | * @param string $handle |
71 | 71 | * @return void |
72 | 72 | */ |
73 | - public function display_navlist(array $data, \phpbb\template\twig\twig &$template, $handle = 'tree') |
|
73 | + public function display_navlist(array $data, \phpbb\template\twig\twig & $template, $handle = 'tree') |
|
74 | 74 | { |
75 | 75 | $this->set_current_item($data); |
76 | 76 | $this->prepare_items($data['items']); |
@@ -85,10 +85,10 @@ discard block |
||
85 | 85 | $row['num_kids'] = $this->count_descendants($row); |
86 | 86 | |
87 | 87 | $template->assign_block_vars($handle, array_change_key_case($row, CASE_UPPER)); |
88 | - $this->close_open_tags($template, $handle . '.close', abs($prev_depth - $this_depth)); |
|
88 | + $this->close_open_tags($template, $handle.'.close', abs($prev_depth - $this_depth)); |
|
89 | 89 | } |
90 | 90 | |
91 | - $this->close_open_tags($template, 'close_' . $handle, ($this_depth - $this->min_depth)); |
|
91 | + $this->close_open_tags($template, 'close_'.$handle, ($this_depth - $this->min_depth)); |
|
92 | 92 | } |
93 | 93 | } |
94 | 94 | |
@@ -156,12 +156,12 @@ discard block |
||
156 | 156 | */ |
157 | 157 | protected function get_current_path() |
158 | 158 | { |
159 | - $curr_page = '/' . ltrim($this->user->page['page_dir'] . '/' . $this->user->page['page_name'], './'); |
|
159 | + $curr_page = '/'.ltrim($this->user->page['page_dir'].'/'.$this->user->page['page_name'], './'); |
|
160 | 160 | $curr_parts = explode('&', $this->user->page['query_string']); |
161 | 161 | |
162 | 162 | sort($curr_parts); |
163 | 163 | |
164 | - return $curr_page . '?' . join('&', $curr_parts); |
|
164 | + return $curr_page.'?'.join('&', $curr_parts); |
|
165 | 165 | } |
166 | 166 | |
167 | 167 | /** |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | |
204 | 204 | $is_current_item = $this->is_current_item($row); |
205 | 205 | $is_parent = $this->is_parent_of_current_item($row); |
206 | - $this_depth = $this->parental_depth[$row['parent_id']] + 1; |
|
206 | + $this_depth = $this->parental_depth[$row['parent_id']] + 1; |
|
207 | 207 | $leaf = $this->get_leaf_node($row, $is_current_item, $is_parent); |
208 | 208 | |
209 | 209 | $this->parental_depth[$row[$this->pk]] = $this_depth; |
@@ -284,7 +284,7 @@ discard block |
||
284 | 284 | * @param int $repeat |
285 | 285 | * @return void |
286 | 286 | */ |
287 | - protected function close_open_tags(\phpbb\template\twig\twig &$template, $handle, $repeat) |
|
287 | + protected function close_open_tags(\phpbb\template\twig\twig & $template, $handle, $repeat) |
|
288 | 288 | { |
289 | 289 | for ($i = 0; $i < $repeat; $i++) |
290 | 290 | { |