Passed
Push — master ( a0e47e...a48f85 )
by Jakub
03:35
created
controller/admin_controller.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -179,8 +179,7 @@
 block discarded – undo
179 179
 		{
180 180
 			$result = $this->akismet->verifyKey($key);
181 181
 			return $result->isValid();
182
-		}
183
-		catch (\Gothick\AkismetClient\AkismetException $e)
182
+		} catch (\Gothick\AkismetClient\AkismetException $e)
184 183
 		{
185 184
 			return false;
186 185
 		}
Please login to merge, or discard this patch.
event/main_listener.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -326,8 +326,7 @@  discard block
 block discarded – undo
326 326
 		if ($mode === 'post' || ($mode === 'edit' && $data['topic_first_post_id'] == $data['post_id']))
327 327
 		{
328 328
 			$log_message = 'AKISMET_LOG_TOPIC_DISAPPROVED';
329
-		}
330
-		else
329
+		} else
331 330
 		{
332 331
 			$log_message = 'AKISMET_LOG_POST_DISAPPROVED';
333 332
 		}
@@ -356,8 +355,7 @@  discard block
 block discarded – undo
356 355
 		{
357 356
 			$server = $with_server ? $this->get_server_vars() : array();
358 357
 			return $this->akismet->$method($params, $server);
359
-		}
360
-		catch (\Exception $e)
358
+		} catch (\Exception $e)
361 359
 		{
362 360
 			$this->log->add('critical', $this->user->data['username'], $this->user->ip, 'AKISMET_LOG_CALL_FAILED', false, array($e->getMessage()));
363 361
 		}
Please login to merge, or discard this patch.