@@ -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 | { |
@@ -1,11 +1,11 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * |
|
4 | - * @package sitemaker |
|
5 | - * @copyright (c) 2013 Daniel A. (blitze) |
|
6 | - * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 |
|
7 | - * |
|
8 | - */ |
|
3 | + * |
|
4 | + * @package sitemaker |
|
5 | + * @copyright (c) 2013 Daniel A. (blitze) |
|
6 | + * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 |
|
7 | + * |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | namespace blitze\sitemaker\services\tree; |
11 | 11 | |
@@ -33,13 +33,13 @@ discard block |
||
33 | 33 | protected $data = array(); |
34 | 34 | |
35 | 35 | /** |
36 | - * Construct |
|
37 | - * |
|
38 | - * @param \phpbb\db\driver\driver_interface $db Database connection |
|
39 | - * @param string $items_table Table name |
|
40 | - * @param string $pk Primary key |
|
41 | - * @param string $sql_where Column restriction |
|
42 | - */ |
|
36 | + * Construct |
|
37 | + * |
|
38 | + * @param \phpbb\db\driver\driver_interface $db Database connection |
|
39 | + * @param string $items_table Table name |
|
40 | + * @param string $pk Primary key |
|
41 | + * @param string $sql_where Column restriction |
|
42 | + */ |
|
43 | 43 | public function __construct(\phpbb\db\driver\driver_interface $db, $items_table, $pk, $sql_where = '') |
44 | 44 | { |
45 | 45 | $this->db = $db; |