@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | { |
79 | 79 | $sql = "SELECT * |
80 | 80 | FROM $this->items_table |
81 | - WHERE $this->pk = " . (int) $node_id ; |
|
81 | + WHERE $this->pk = ".(int) $node_id; |
|
82 | 82 | $result = $this->db->sql_query($sql); |
83 | 83 | $row = $this->db->sql_fetchrow($result); |
84 | 84 | $this->db->sql_freeresult($result); |
@@ -107,8 +107,8 @@ discard block |
||
107 | 107 | $this->items_table => ' t' |
108 | 108 | ), |
109 | 109 | 'WHERE' => array( |
110 | - 't.depth ' . (($level) ? " BETWEEN $start AND " . ($start + $level) : ' >= ' . $start), |
|
111 | - (($this->sql_where) ? 't.' . $this->sql_where : ''), |
|
110 | + 't.depth '.(($level) ? " BETWEEN $start AND ".($start + $level) : ' >= '.$start), |
|
111 | + (($this->sql_where) ? 't.'.$this->sql_where : ''), |
|
112 | 112 | ), |
113 | 113 | 'ORDER_BY' => 't.left_id ASC', |
114 | 114 | ), |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | * @param \phpbb\template\twig\twig $template |
148 | 148 | * @param string $handle |
149 | 149 | */ |
150 | - public function display_list(array $data, \phpbb\template\twig\twig &$template, $handle = 'tree') |
|
150 | + public function display_list(array $data, \phpbb\template\twig\twig & $template, $handle = 'tree') |
|
151 | 151 | { |
152 | 152 | $prev_depth = 0; |
153 | 153 | $parental_depth = array(0 => -1); |
@@ -156,10 +156,10 @@ discard block |
||
156 | 156 | for ($i = 0, $size = sizeof($data); $i < $size; $i++) |
157 | 157 | { |
158 | 158 | $row = $data[$i]; |
159 | - $this_depth = $parental_depth[$row['parent_id']] + 1; |
|
160 | - $repeat = abs($prev_depth - $this_depth); |
|
159 | + $this_depth = $parental_depth[$row['parent_id']] + 1; |
|
160 | + $repeat = abs($prev_depth - $this_depth); |
|
161 | 161 | |
162 | - $tpl_data = array( |
|
162 | + $tpl_data = array( |
|
163 | 163 | 'PREV_DEPTH' => $prev_depth, |
164 | 164 | 'THIS_DEPTH' => $this_depth, |
165 | 165 | 'NUM_KIDS' => $this->count_descendants($row), |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | |
170 | 170 | for ($j = 0; $j < $repeat; $j++) |
171 | 171 | { |
172 | - $template->assign_block_vars($handle . '.close', array()); |
|
172 | + $template->assign_block_vars($handle.'.close', array()); |
|
173 | 173 | } |
174 | 174 | |
175 | 175 | $prev_depth = $this_depth; |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | |
179 | 179 | for ($i = 0; $i < $prev_depth; $i++) |
180 | 180 | { |
181 | - $template->assign_block_vars('close_' . $handle, array()); |
|
181 | + $template->assign_block_vars('close_'.$handle, array()); |
|
182 | 182 | } |
183 | 183 | } |
184 | 184 | |
@@ -217,10 +217,10 @@ discard block |
||
217 | 217 | } |
218 | 218 | |
219 | 219 | $right = $row['right_id']; |
220 | - $title = $padding . '├─ ' . $row[$title_column]; |
|
220 | + $title = $padding.'├─ '.$row[$title_column]; |
|
221 | 221 | $selected = (in_array($row[$this->pk], $selected_ids)) ? ' selected="selected' : ''; |
222 | 222 | |
223 | - $return_options .= '<option value="' . $row[$this->pk] . '"' . $selected . '>' . $title . '</option>'; |
|
223 | + $return_options .= '<option value="'.$row[$this->pk].'"'.$selected.'>'.$title.'</option>'; |
|
224 | 224 | $return_data[$row[$this->pk]] = $title; |
225 | 225 | } |
226 | 226 |
@@ -38,7 +38,7 @@ |
||
38 | 38 | $time = $this->user->create_datetime($this->time); |
39 | 39 | $now = phpbb_gmgetdate($time->getTimestamp() + $time->getOffset()); |
40 | 40 | |
41 | - $method = 'get_' . $range; |
|
41 | + $method = 'get_'.$range; |
|
42 | 42 | $data = array( |
43 | 43 | 'start' => 0, |
44 | 44 | 'stop' => 0, |
@@ -64,8 +64,8 @@ discard block |
||
64 | 64 | $default_lang_files = $finder |
65 | 65 | ->prefix($lang_file) |
66 | 66 | ->suffix(".$this->php_ext") |
67 | - ->extension_directory('/language/' . basename($this->config['default_lang'])) |
|
68 | - ->core_path('language/' . basename($this->config['default_lang']) . '/') |
|
67 | + ->extension_directory('/language/'.basename($this->config['default_lang'])) |
|
68 | + ->core_path('language/'.basename($this->config['default_lang']).'/') |
|
69 | 69 | ->find(); |
70 | 70 | } |
71 | 71 | |
@@ -84,8 +84,8 @@ discard block |
||
84 | 84 | $user_lang_files = $finder |
85 | 85 | ->prefix($lang_file) |
86 | 86 | ->suffix(".$this->php_ext") |
87 | - ->extension_directory('/language/' . $this->user->lang_name) |
|
88 | - ->core_path('language/' . $this->user->lang_name . '/') |
|
87 | + ->extension_directory('/language/'.$this->user->lang_name) |
|
88 | + ->core_path('language/'.$this->user->lang_name.'/') |
|
89 | 89 | ->find(); |
90 | 90 | |
91 | 91 | $lang_files = array_unique(array_merge($user_lang_files, $english_lang_files, $default_lang_files)); |
@@ -20,7 +20,7 @@ |
||
20 | 20 | |
21 | 21 | /** @type \blitze\sitemaker\model\menus\entity\menu $entity */ |
22 | 22 | $entity = $menu_mapper->create_entity(array( |
23 | - 'menu_name' => $this->translator->lang('MENU') . '-' . mt_rand(1000, 9999), |
|
23 | + 'menu_name' => $this->translator->lang('MENU').'-'.mt_rand(1000, 9999), |
|
24 | 24 | )); |
25 | 25 | |
26 | 26 | $entity = $menu_mapper->save($entity); |
@@ -34,7 +34,7 @@ |
||
34 | 34 | |
35 | 35 | if (isset($allowed_fields[$field])) |
36 | 36 | { |
37 | - $mutator = 'set_' . $field; |
|
37 | + $mutator = 'set_'.$field; |
|
38 | 38 | $entity->$mutator($allowed_fields[$field]); |
39 | 39 | $item_mapper->save($entity); |
40 | 40 | } |
@@ -46,7 +46,7 @@ |
||
46 | 46 | */ |
47 | 47 | public function create($action) |
48 | 48 | { |
49 | - $action_class = 'blitze\\sitemaker\\services\\menus\\action\\' . $action; |
|
49 | + $action_class = 'blitze\\sitemaker\\services\\menus\\action\\'.$action; |
|
50 | 50 | |
51 | 51 | if (!class_exists($action_class)) |
52 | 52 | { |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | * @param string $handle |
66 | 66 | * @return void |
67 | 67 | */ |
68 | - public function display_navlist(array $data, \phpbb\template\twig\twig &$template, $handle = 'tree') |
|
68 | + public function display_navlist(array $data, \phpbb\template\twig\twig & $template, $handle = 'tree') |
|
69 | 69 | { |
70 | 70 | $this->prepare_items($data); |
71 | 71 | |
@@ -79,10 +79,10 @@ discard block |
||
79 | 79 | $row['num_kids'] = $this->count_descendants($row); |
80 | 80 | |
81 | 81 | $template->assign_block_vars($handle, array_change_key_case($row, CASE_UPPER)); |
82 | - $this->close_open_tags($template, $handle . '.close', abs($prev_depth - $this_depth)); |
|
82 | + $this->close_open_tags($template, $handle.'.close', abs($prev_depth - $this_depth)); |
|
83 | 83 | } |
84 | 84 | |
85 | - $this->close_open_tags($template, 'close_' . $handle, ($this_depth - $this->min_depth)); |
|
85 | + $this->close_open_tags($template, 'close_'.$handle, ($this_depth - $this->min_depth)); |
|
86 | 86 | } |
87 | 87 | } |
88 | 88 | |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | } |
122 | 122 | |
123 | 123 | $is_current_item = $this->is_current_item($row); |
124 | - $this_depth = $this->parental_depth[$row['parent_id']] + 1; |
|
124 | + $this_depth = $this->parental_depth[$row['parent_id']] + 1; |
|
125 | 125 | |
126 | 126 | $this->set_parental_depth($row, $this_depth, $leaf, $is_current_item); |
127 | 127 | |
@@ -234,7 +234,7 @@ discard block |
||
234 | 234 | * @param int $repeat |
235 | 235 | * @return void |
236 | 236 | */ |
237 | - protected function close_open_tags(\phpbb\template\twig\twig &$template, $handle, $repeat) |
|
237 | + protected function close_open_tags(\phpbb\template\twig\twig & $template, $handle, $repeat) |
|
238 | 238 | { |
239 | 239 | for ($i = 0; $i < $repeat; $i++) |
240 | 240 | { |
@@ -77,10 +77,10 @@ |
||
77 | 77 | protected function get_attachment_sql(array $attach_ids, array $allowed_extensions, $exclude_in_message, $order_by) |
78 | 78 | { |
79 | 79 | return 'SELECT * |
80 | - FROM ' . ATTACHMENTS_TABLE . ' |
|
81 | - WHERE ' . $this->db->sql_in_set('post_msg_id', $attach_ids) . |
|
82 | - (($exclude_in_message) ? ' AND in_message = 0' : '') . |
|
83 | - (sizeof($allowed_extensions) ? ' AND ' . $this->db->sql_in_set('extension', $allowed_extensions) : '') . ' |
|
80 | + FROM ' . ATTACHMENTS_TABLE.' |
|
81 | + WHERE ' . $this->db->sql_in_set('post_msg_id', $attach_ids). |
|
82 | + (($exclude_in_message) ? ' AND in_message = 0' : ''). |
|
83 | + (sizeof($allowed_extensions) ? ' AND '.$this->db->sql_in_set('extension', $allowed_extensions) : '').' |
|
84 | 84 | ORDER BY ' . $order_by; |
85 | 85 | } |
86 | 86 | } |
@@ -54,7 +54,7 @@ |
||
54 | 54 | |
55 | 55 | if (!class_exists('acp_forums')) |
56 | 56 | { |
57 | - include($this->phpbb_root_path . 'includes/acp/acp_forums.' . $this->php_ext); |
|
57 | + include($this->phpbb_root_path.'includes/acp/acp_forums.'.$this->php_ext); |
|
58 | 58 | } |
59 | 59 | |
60 | 60 | $translator->add_lang('acp/forums'); |