Permalink
Browse files

code format

  • Loading branch information...
dogmatic69 committed Jul 22, 2013
1 parent 32631e8 commit eeb8174772c5ab0bc5173e50fe0915feff2a7a26
@@ -10,6 +10,7 @@ class CommentShell extends AppShell {
public function stats() {
}
/**
* Reclasify spam status
*
@@ -1,9 +1,8 @@
<?php
App::uses('InfinitasComponent', 'Libs.Controller/Component');
/**
* Comments component
*
*
*/
class CommentsComponent extends InfinitasComponent {
@@ -28,12 +27,9 @@ public function actionComment() {
$this->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');
}
}

0 comments on commit eeb8174

Please sign in to comment.