diff --git a/Core/Comments/Console/Command/CommentShell.php b/Core/Comments/Console/Command/CommentShell.php index 9164adf1e..4b4607469 100644 --- a/Core/Comments/Console/Command/CommentShell.php +++ b/Core/Comments/Console/Command/CommentShell.php @@ -10,6 +10,7 @@ class CommentShell extends AppShell { public function stats() { } + /** * Reclasify spam status * diff --git a/Core/Comments/Controller/Component/CommentsComponent.php b/Core/Comments/Controller/Component/CommentsComponent.php index ae33eef3e..01a2378dc 100644 --- a/Core/Comments/Controller/Component/CommentsComponent.php +++ b/Core/Comments/Controller/Component/CommentsComponent.php @@ -1,9 +1,8 @@ Controller->Session->write('Spam.bot', true); $this->Controller->Session->write('Spam.detected', time()); - $this->Controller->notice( - __d('comments', 'Not so fast spam bot.'), - array( - 'redirect' => '/?bot=true' - ) - ); + $this->Controller->notice(__d('comments', 'Not so fast spam bot.'), array( + 'redirect' => '/?bot=true' + )); } $saved = $this->Controller->{$this->Controller->modelClass}->createComment($this->Controller->request->data); @@ -49,4 +45,5 @@ public function actionComment() { return $this->Controller->render(null, null, App::pluginPath('Comments') . 'View' . DS . 'InfinitasComments' . DS . 'add.ctp'); } + } \ No newline at end of file