@@ -179,8 +179,7 @@ |
||
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 | } |
@@ -326,8 +326,7 @@ discard block |
||
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 |
||
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 | } |