@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | $this->mapper_factory = $phpbb_container->get('blitze.sitemaker.mapper.factory'); |
84 | 84 | $this->trigger_errors = $trigger_errors; |
85 | 85 | |
86 | - $this->filemanager_config_file = $this->phpbb_root_path . 'ext/blitze/sitemaker/styles/all/theme/vendor/ResponsiveFilemanager/filemanager/config/config.' . $this->php_ext; |
|
86 | + $this->filemanager_config_file = $this->phpbb_root_path.'ext/blitze/sitemaker/styles/all/theme/vendor/ResponsiveFilemanager/filemanager/config/config.'.$this->php_ext; |
|
87 | 87 | } |
88 | 88 | |
89 | 89 | /** |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | $this->save_filemanager_settings(); |
103 | 103 | $this->save_config_settings(); |
104 | 104 | |
105 | - $this->trigger_error($this->translator->lang('SETTINGS_SAVED') . adm_back_link($this->u_action)); |
|
105 | + $this->trigger_error($this->translator->lang('SETTINGS_SAVED').adm_back_link($this->u_action)); |
|
106 | 106 | } |
107 | 107 | |
108 | 108 | add_form_key($form_key); |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | { |
140 | 140 | $style_prefs = (array) json_decode($this->config_text->get('sm_layout_prefs'), true); |
141 | 141 | |
142 | - $result = $this->db->sql_query('SELECT style_id, style_name FROM ' . STYLES_TABLE); |
|
142 | + $result = $this->db->sql_query('SELECT style_id, style_name FROM '.STYLES_TABLE); |
|
143 | 143 | |
144 | 144 | $styles = array(); |
145 | 145 | while ($row = $this->db->sql_fetchrow($result)) |
@@ -217,7 +217,7 @@ discard block |
||
217 | 217 | $path = dirname($path); |
218 | 218 | $name = basename($path); |
219 | 219 | |
220 | - $layouts[$name] = $this->phpbb_root_path . $path . '/'; |
|
220 | + $layouts[$name] = $this->phpbb_root_path.$path.'/'; |
|
221 | 221 | } |
222 | 222 | ksort($layouts); |
223 | 223 | |
@@ -280,7 +280,7 @@ discard block |
||
280 | 280 | protected function type_cast_filemanager_config_value($curr_val, &$value) |
281 | 281 | { |
282 | 282 | $type = gettype($curr_val); |
283 | - switch($type) |
|
283 | + switch ($type) |
|
284 | 284 | { |
285 | 285 | case 'string': |
286 | 286 | $value = "'$value'"; |
@@ -307,7 +307,7 @@ discard block |
||
307 | 307 | $id = $entity->get_menu_id(); |
308 | 308 | $name = $entity->get_menu_name(); |
309 | 309 | $selected = ($id == $this->config['sm_navbar_menu']) ? ' selected="selected"' : ''; |
310 | - $options .= '<option value="' . $id . '"' . $selected . '>' . $name . '</option>'; |
|
310 | + $options .= '<option value="'.$id.'"'.$selected.'>'.$name.'</option>'; |
|
311 | 311 | } |
312 | 312 | |
313 | 313 | return $options; |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | } |
70 | 70 | else |
71 | 71 | { |
72 | - $this->set_file_permissions($upload_dir . $file->get('realname')); |
|
72 | + $this->set_file_permissions($upload_dir.$file->get('realname')); |
|
73 | 73 | $json_data['location'] = $file->get('realname'); |
74 | 74 | } |
75 | 75 | |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | * @param \phpbb\files\filespec $file |
90 | 90 | * @return void |
91 | 91 | */ |
92 | - protected function set_filename(\phpbb\files\filespec &$file) |
|
92 | + protected function set_filename(\phpbb\files\filespec & $file) |
|
93 | 93 | { |
94 | 94 | $mode = 'real'; |
95 | 95 | $prefix = ''; |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | */ |
109 | 109 | protected function get_file() |
110 | 110 | { |
111 | - $upload_dir = $this->phpbb_root_path . 'images/sitemaker_uploads/source/'; |
|
111 | + $upload_dir = $this->phpbb_root_path.'images/sitemaker_uploads/source/'; |
|
112 | 112 | |
113 | 113 | $file = $this->files_factory->get('files.upload') |
114 | 114 | ->set_disallowed_content(array()) |