Completed
Pull Request — master (#26)
by Daniel
09:54
created
services/filemanager/settings.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,8 +42,8 @@  discard block
 block discarded – undo
42 42
 		$this->phpbb_root_path = $phpbb_root_path;
43 43
 		$this->php_ext = $php_ext;
44 44
 
45
-		$this->config_path = $this->phpbb_root_path . 'ext/blitze/sitemaker/vendor/ResponsiveFilemanager/filemanager/config/';
46
-		$this->config_template = __DIR__ . '/default.config';
45
+		$this->config_path = $this->phpbb_root_path.'ext/blitze/sitemaker/vendor/ResponsiveFilemanager/filemanager/config/';
46
+		$this->config_template = __DIR__.'/default.config';
47 47
 	}
48 48
 
49 49
 	/**
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 		$config_file = $this->get_config_file();
56 56
 
57 57
 		// credit: http://jafty.com/blog/quick-way-to-check-if-string-exists-in-a-file-with-php/
58
-		if (!$this->file_system->exists($config_file) || !exec('grep ' . escapeshellarg($searcString) . ' ' . $config_file))
58
+		if (!$this->file_system->exists($config_file) || !exec('grep '.escapeshellarg($searcString).' '.$config_file))
59 59
 		{
60 60
 			$this->file_system->copy($this->config_template, $config_file, true);
61 61
 		}
@@ -133,6 +133,6 @@  discard block
 block discarded – undo
133 133
 	 */
134 134
 	protected function get_config_file()
135 135
 	{
136
-		return $this->config_path . 'config.' . $this->php_ext;
136
+		return $this->config_path.'config.'.$this->php_ext;
137 137
 	}
138 138
 }
Please login to merge, or discard this patch.
controller/upload.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 	 * @param \phpbb\files\filespec $file
89 89
 	 * @return void
90 90
 	 */
91
-	protected function set_filename(\phpbb\files\filespec &$file)
91
+	protected function set_filename(\phpbb\files\filespec & $file)
92 92
 	{
93 93
 		$mode = 'real';
94 94
 		$prefix = '';
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 	 */
108 108
 	protected function get_file()
109 109
 	{
110
-		$upload_dir = $this->phpbb_root_path . 'images/sitemaker_uploads/source/';
110
+		$upload_dir = $this->phpbb_root_path.'images/sitemaker_uploads/source/';
111 111
 
112 112
 		$file = $this->files_factory->get('files.upload')
113 113
 			->set_disallowed_content(array())
Please login to merge, or discard this patch.
acp/settings_module.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
 			$this->save_filemanager_settings();
127 127
 			$this->save_config_settings();
128 128
 
129
-			$this->trigger_error($this->translator->lang('SETTINGS_SAVED') . adm_back_link($this->u_action));
129
+			$this->trigger_error($this->translator->lang('SETTINGS_SAVED').adm_back_link($this->u_action));
130 130
 		}
131 131
 	}
132 132
 
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
 	{
150 150
 		$style_prefs = (array) json_decode($this->config_text->get('sm_layout_prefs'), true);
151 151
 
152
-		$result = $this->db->sql_query('SELECT style_id, style_name FROM ' . STYLES_TABLE);
152
+		$result = $this->db->sql_query('SELECT style_id, style_name FROM '.STYLES_TABLE);
153 153
 
154 154
 		$styles = array();
155 155
 		while ($row = $this->db->sql_fetchrow($result))
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
 			$path = dirname($path);
217 217
 			$name = basename($path);
218 218
 
219
-			$layouts[$name] = $this->phpbb_root_path . $path . '/';
219
+			$layouts[$name] = $this->phpbb_root_path.$path.'/';
220 220
 		}
221 221
 		ksort($layouts);
222 222
 
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
 			$id = $entity->get_menu_id();
270 270
 			$name = $entity->get_menu_name();
271 271
 			$selected = ($id == $this->config['sm_navbar_menu']) ? ' selected="selected"' : '';
272
-			$options .= '<option value="' . $id . '"' . $selected . '>' . $name . '</option>';
272
+			$options .= '<option value="'.$id.'"'.$selected.'>'.$name.'</option>';
273 273
 		}
274 274
 
275 275
 		return $options;
Please login to merge, or discard this patch.