@@ -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; |
@@ -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 | { |