@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | if ($this->config['sitemaker_default_layout']) |
| 116 | 116 | { |
| 117 | 117 | $is_default_route = ($this->config['sitemaker_default_layout'] === $route) ? true : false; |
| 118 | - $u_default_route .= $board_url . '/' . $this->config['sitemaker_default_layout']; |
|
| 118 | + $u_default_route .= $board_url.'/'.$this->config['sitemaker_default_layout']; |
|
| 119 | 119 | $u_default_route = reapply_sid($u_default_route); |
| 120 | 120 | } |
| 121 | 121 | |
@@ -195,7 +195,7 @@ discard block |
||
| 195 | 195 | list($controller_service, $controller_method) = explode(':', $controller); |
| 196 | 196 | $controller_params = $symfony_request->attributes->get('_route_params'); |
| 197 | 197 | $controller_object = $this->phpbb_container->get($controller_service); |
| 198 | - $controller_class = get_class($controller_object); |
|
| 198 | + $controller_class = get_class($controller_object); |
|
| 199 | 199 | |
| 200 | 200 | $r = new \ReflectionMethod($controller_class, $controller_method); |
| 201 | 201 | $class_params = $r->getParameters(); |
@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | 'CONTROLLER_METHOD' => $controller_method, |
| 209 | 209 | 'CONTROLLER_PARAMS' => $controller_arguments, |
| 210 | 210 | 'S_IS_STARTPAGE' => $this->is_startpage($controller_service, $controller_arguments), |
| 211 | - 'UA_EXTENSION' => $namespace . '/' . $extension, |
|
| 211 | + 'UA_EXTENSION' => $namespace.'/'.$extension, |
|
| 212 | 212 | )); |
| 213 | 213 | } |
| 214 | 214 | } |
@@ -243,11 +243,11 @@ discard block |
||
| 243 | 243 | { |
| 244 | 244 | $routes_ary = $this->get_routes(); |
| 245 | 245 | |
| 246 | - $options = '<option value="">' . $this->translator->lang('SELECT') . '</option>'; |
|
| 246 | + $options = '<option value="">'.$this->translator->lang('SELECT').'</option>'; |
|
| 247 | 247 | foreach ($routes_ary as $route) |
| 248 | 248 | { |
| 249 | 249 | $selected = ($route == $current_route) ? ' selected="selected"' : ''; |
| 250 | - $options .= '<option value="' . $route . '"' . $selected . '>' . $route . '</option>'; |
|
| 250 | + $options .= '<option value="'.$route.'"'.$selected.'>'.$route.'</option>'; |
|
| 251 | 251 | } |
| 252 | 252 | |
| 253 | 253 | return $options; |
@@ -264,7 +264,7 @@ discard block |
||
| 264 | 264 | $options = ''; |
| 265 | 265 | foreach ($ex_positions as $position) |
| 266 | 266 | { |
| 267 | - $options .= '<option value="' . $position . '" selected="selected">' . $position . '</option>'; |
|
| 267 | + $options .= '<option value="'.$position.'" selected="selected">'.$position.'</option>'; |
|
| 268 | 268 | } |
| 269 | 269 | |
| 270 | 270 | return $options; |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | $this->config_path = $config_path; |
| 40 | 40 | $this->php_ext = $php_ext; |
| 41 | 41 | |
| 42 | - $this->config_template = __DIR__ . '/default.config'; |
|
| 42 | + $this->config_template = __DIR__.'/default.config'; |
|
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | /** |
@@ -109,6 +109,6 @@ discard block |
||
| 109 | 109 | */ |
| 110 | 110 | protected function get_config_file() |
| 111 | 111 | { |
| 112 | - return $this->config_path . 'config.' . $this->php_ext; |
|
| 112 | + return $this->config_path.'config.'.$this->php_ext; |
|
| 113 | 113 | } |
| 114 | 114 | } |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | |
| 154 | 154 | $this->save_filemanager_settings(); |
| 155 | 155 | $this->save_config_settings($settings); |
| 156 | - $this->trigger_error($this->translator->lang('SETTINGS_SAVED') . adm_back_link($this->u_action)); |
|
| 156 | + $this->trigger_error($this->translator->lang('SETTINGS_SAVED').adm_back_link($this->u_action)); |
|
| 157 | 157 | } |
| 158 | 158 | } |
| 159 | 159 | |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | { |
| 177 | 177 | $style_prefs = (array) json_decode($this->config_text->get('sm_layout_prefs'), true); |
| 178 | 178 | |
| 179 | - $result = $this->db->sql_query('SELECT style_id, style_name FROM ' . STYLES_TABLE); |
|
| 179 | + $result = $this->db->sql_query('SELECT style_id, style_name FROM '.STYLES_TABLE); |
|
| 180 | 180 | |
| 181 | 181 | $styles = array(); |
| 182 | 182 | while ($row = $this->db->sql_fetchrow($result)) |
@@ -245,7 +245,7 @@ discard block |
||
| 245 | 245 | $path = dirname($path); |
| 246 | 246 | $name = basename($path); |
| 247 | 247 | |
| 248 | - $layouts[$name] = $this->phpbb_root_path . $path . '/'; |
|
| 248 | + $layouts[$name] = $this->phpbb_root_path.$path.'/'; |
|
| 249 | 249 | } |
| 250 | 250 | ksort($layouts); |
| 251 | 251 | |
@@ -301,7 +301,7 @@ discard block |
||
| 301 | 301 | $id = $entity->get_menu_id(); |
| 302 | 302 | $name = $entity->get_menu_name(); |
| 303 | 303 | $selected = ($id == $this->config['sm_navbar_menu']) ? ' selected="selected"' : ''; |
| 304 | - $options .= '<option value="' . $id . '"' . $selected . '>' . $name . '</option>'; |
|
| 304 | + $options .= '<option value="'.$id.'"'.$selected.'>'.$name.'</option>'; |
|
| 305 | 305 | } |
| 306 | 306 | |
| 307 | 307 | return $options; |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | 'MENU_ID' => $menu_id, |
| 97 | 97 | 'ICON_PICKER' => $this->icon->picker(), |
| 98 | 98 | 'T_PATH' => $this->phpbb_root_path, |
| 99 | - 'UA_AJAX_URL' => $this->controller_helper->route('blitze_sitemaker_menus_admin', array(), true, '') . '/', |
|
| 99 | + 'UA_AJAX_URL' => $this->controller_helper->route('blitze_sitemaker_menus_admin', array(), true, '').'/', |
|
| 100 | 100 | )); |
| 101 | 101 | |
| 102 | 102 | $this->tpl_name = 'acp_menu'; |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | $vars = array('bulk_options', 'forumslist'); |
| 151 | 151 | extract($this->phpbb_dispatcher->trigger_event('blitze.sitemaker.acp_add_bulk_menu_options', compact($vars))); |
| 152 | 152 | |
| 153 | - $bulk_options['FORUMS'] = $this->get_forums_string($forumslist); |
|
| 153 | + $bulk_options['FORUMS'] = $this->get_forums_string($forumslist); |
|
| 154 | 154 | |
| 155 | 155 | $this->template->assign_var('bulk_options', $bulk_options); |
| 156 | 156 | } |
@@ -161,11 +161,11 @@ discard block |
||
| 161 | 161 | */ |
| 162 | 162 | protected function get_forums_string(array $forumslist) |
| 163 | 163 | { |
| 164 | - $text = $this->language->lang('FORUM') . "|app.{$this->php_ext}/forum\n"; |
|
| 164 | + $text = $this->language->lang('FORUM')."|app.{$this->php_ext}/forum\n"; |
|
| 165 | 165 | foreach ($forumslist as $forum_id => $row) |
| 166 | 166 | { |
| 167 | - $text .= "\t" . str_replace(' ', "\t", $row['padding']); |
|
| 168 | - $text .= $row['forum_name'] . '|'; |
|
| 167 | + $text .= "\t".str_replace(' ', "\t", $row['padding']); |
|
| 168 | + $text .= $row['forum_name'].'|'; |
|
| 169 | 169 | $text .= "viewforum.{$this->php_ext}?f=$forum_id\n"; |
| 170 | 170 | } |
| 171 | 171 | |