Skip to content

Commit

Permalink
code format
Browse files Browse the repository at this point in the history
  • Loading branch information
dogmatic69 committed Jul 22, 2013
1 parent 32631e8 commit eeb8174
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
1 change: 1 addition & 0 deletions Core/Comments/Console/Command/CommentShell.php
Expand Up @@ -10,6 +10,7 @@ class CommentShell extends AppShell {
public function stats() { public function stats() {


} }

/** /**
* Reclasify spam status * Reclasify spam status
* *
Expand Down
13 changes: 5 additions & 8 deletions Core/Comments/Controller/Component/CommentsComponent.php
@@ -1,9 +1,8 @@
<?php <?php
App::uses('InfinitasComponent', 'Libs.Controller/Component'); App::uses('InfinitasComponent', 'Libs.Controller/Component');

/** /**
* Comments component * Comments component
*
*
*/ */


class CommentsComponent extends InfinitasComponent { class CommentsComponent extends InfinitasComponent {
Expand All @@ -28,12 +27,9 @@ public function actionComment() {
$this->Controller->Session->write('Spam.bot', true); $this->Controller->Session->write('Spam.bot', true);
$this->Controller->Session->write('Spam.detected', time()); $this->Controller->Session->write('Spam.detected', time());


$this->Controller->notice( $this->Controller->notice(__d('comments', 'Not so fast spam bot.'), array(
__d('comments', 'Not so fast spam bot.'), 'redirect' => '/?bot=true'
array( ));
'redirect' => '/?bot=true'
)
);
} }


$saved = $this->Controller->{$this->Controller->modelClass}->createComment($this->Controller->request->data); $saved = $this->Controller->{$this->Controller->modelClass}->createComment($this->Controller->request->data);
Expand All @@ -49,4 +45,5 @@ public function actionComment() {


return $this->Controller->render(null, null, App::pluginPath('Comments') . 'View' . DS . 'InfinitasComments' . DS . 'add.ctp'); 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.