Passed
Push — release-2.1 ( 686a12...055cc0 )
by Mathias
09:41 queued 24s
created
Sources/ShowAttachments.php 2 patches
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -165,8 +165,7 @@
 block discarded – undo
165 165
 	}
166 166
 
167 167
 	// No access if you don't have permission to see this attachment.
168
-	if
169
-	(
168
+	if (
170 169
 		// This was from SMF or a hook didn't claim it.
171 170
 		(
172 171
 			empty($file['source'])
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -191,8 +191,7 @@
 block discarded – undo
191 191
 		)
192 192
 		// We are not previewing an attachment.
193 193
 		&& !isset($_SESSION['attachments_can_preview'][$attachId])
194
-	)
195
-	{
194
+	) {
196 195
 		send_http_status(404, 'File Not Found');
197 196
 		die('404 File Not Found');
198 197
 	}
Please login to merge, or discard this patch.
Sources/Cache/APIs/MemcachedImplementation.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -169,16 +169,16 @@  discard block
 block discarded – undo
169 169
 	{
170 170
 		global $context, $txt;
171 171
 
172
-		if (!in_array($txt[self::CLASS_KEY .'_settings'], $config_vars))
172
+		if (!in_array($txt[self::CLASS_KEY . '_settings'], $config_vars))
173 173
 		{
174
-			$config_vars[] = $txt[self::CLASS_KEY .'_settings'];
174
+			$config_vars[] = $txt[self::CLASS_KEY . '_settings'];
175 175
 			$config_vars[] = array(
176 176
 				self::CLASS_KEY,
177
-				$txt[self::CLASS_KEY .'_servers'],
177
+				$txt[self::CLASS_KEY . '_servers'],
178 178
 				'file',
179 179
 				'text',
180 180
 				0,
181
-				'subtext' => $txt[self::CLASS_KEY .'_servers_subtext']);
181
+				'subtext' => $txt[self::CLASS_KEY . '_servers_subtext']);
182 182
 		}
183 183
 
184 184
 		if (!isset($context['settings_post_javascript']))
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
 			$context['settings_post_javascript'] .= '
189 189
 			$("#cache_accelerator").change(function (e) {
190 190
 				var cache_type = e.currentTarget.value;
191
-				$("#'. self::CLASS_KEY .'").prop("disabled", cache_type != "MemcacheImplementation" && cache_type != "MemcachedImplementation");
191
+				$("#'. self::CLASS_KEY . '").prop("disabled", cache_type != "MemcacheImplementation" && cache_type != "MemcachedImplementation");
192 192
 			});';
193 193
 	}
194 194
 
Please login to merge, or discard this patch.
Sources/Cache/APIs/MemcacheImplementation.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -149,16 +149,16 @@  discard block
 block discarded – undo
149 149
 	{
150 150
 		global $context, $txt;
151 151
 
152
-		if (!in_array($txt[self::CLASS_KEY .'_settings'], $config_vars))
152
+		if (!in_array($txt[self::CLASS_KEY . '_settings'], $config_vars))
153 153
 		{
154
-			$config_vars[] = $txt[self::CLASS_KEY .'_settings'];
154
+			$config_vars[] = $txt[self::CLASS_KEY . '_settings'];
155 155
 			$config_vars[] = array(
156 156
 				self::CLASS_KEY,
157
-				$txt[self::CLASS_KEY .'_servers'],
157
+				$txt[self::CLASS_KEY . '_servers'],
158 158
 				'file',
159 159
 				'text',
160 160
 				0,
161
-				'subtext' => $txt[self::CLASS_KEY .'_servers_subtext']);
161
+				'subtext' => $txt[self::CLASS_KEY . '_servers_subtext']);
162 162
 		}
163 163
 
164 164
 		if (!isset($context['settings_post_javascript']))
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
 			$context['settings_post_javascript'] .= '
169 169
 			$("#cache_accelerator").change(function (e) {
170 170
 				var cache_type = e.currentTarget.value;
171
-				$("#'. self::CLASS_KEY .'").prop("disabled", cache_type != "MemcacheImplementation" && cache_type != "MemcachedImplementation");
171
+				$("#'. self::CLASS_KEY . '").prop("disabled", cache_type != "MemcacheImplementation" && cache_type != "MemcachedImplementation");
172 172
 			});';
173 173
 	}
174 174
 
Please login to merge, or discard this patch.
Sources/Cache/APIs/Sqlite.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -133,14 +133,14 @@  discard block
 block discarded – undo
133 133
 		$class_name = $this->getImplementationClassKeyName();
134 134
 		$class_name_txt_key = strtolower($class_name);
135 135
 
136
-		$config_vars[] = $txt['cache_'. $class_name_txt_key .'_settings'];
136
+		$config_vars[] = $txt['cache_' . $class_name_txt_key . '_settings'];
137 137
 		$config_vars[] = array(
138
-			'cachedir_'. $class_name_txt_key,
139
-			$txt['cachedir_'. $class_name_txt_key],
138
+			'cachedir_' . $class_name_txt_key,
139
+			$txt['cachedir_' . $class_name_txt_key],
140 140
 			'file',
141 141
 			'text',
142 142
 			36,
143
-			'cache_'. $class_name_txt_key .'_cachedir',
143
+			'cache_' . $class_name_txt_key . '_cachedir',
144 144
 		);
145 145
 
146 146
 		if (!isset($context['settings_post_javascript']))
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
 			$context['settings_post_javascript'] .= '
151 151
 			$("#cache_accelerator").change(function (e) {
152 152
 				var cache_type = e.currentTarget.value;
153
-				$("#cachedir_'. $class_name_txt_key .'").prop("disabled", cache_type != "'. $class_name .'");
153
+				$("#cachedir_'. $class_name_txt_key . '").prop("disabled", cache_type != "' . $class_name . '");
154 154
 			});';
155 155
 	}
156 156
 
Please login to merge, or discard this patch.
Sources/Cache/APIs/FileBased.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
 		$class_name = $this->getImplementationClassKeyName();
219 219
 		$class_name_txt_key = strtolower($class_name);
220 220
 
221
-		$config_vars[] = $txt['cache_'. $class_name_txt_key .'_settings'];
221
+		$config_vars[] = $txt['cache_' . $class_name_txt_key . '_settings'];
222 222
 		$config_vars[] = array('cachedir', $txt['cachedir'], 'file', 'text', 36, 'cache_cachedir');
223 223
 
224 224
 		if (!isset($context['settings_post_javascript']))
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
 			$context['settings_post_javascript'] .= '
229 229
 			$("#cache_accelerator").change(function (e) {
230 230
 				var cache_type = e.currentTarget.value;
231
-				$("#cachedir").prop("disabled", cache_type != "'. $class_name .'");
231
+				$("#cachedir").prop("disabled", cache_type != "'. $class_name . '");
232 232
 			});';
233 233
 	}
234 234
 
Please login to merge, or discard this patch.