coding standards

Coding Standards.
pull/63/head
Noud de Brouwer 2013-01-28 11:05:23 +00:00
parent 504599fbcc
commit 9d9dd7b4af
6 changed files with 135 additions and 132 deletions

View File

@ -10,6 +10,7 @@ App::uses('AppController', 'Controller');
class BlacklistsController extends AppController {
public $XXXcomponents = array('Security', 'RequestHandler');
public $components = array(
'Auth' => array(
'authorize' => array(

View File

@ -86,7 +86,6 @@ class RegexpController extends AppController {
$this->set('list', Sanitize::clean($this->paginate()));
}
/**
*
*/

View File

@ -40,6 +40,8 @@ class RolesController extends AppController {
*
* @param string $id
* @return void
*
* @throws NotFoundException
*/
public function view($id = null) {
$this->Role->id = $id;

View File

@ -84,12 +84,13 @@ class WhitelistsController extends AppController {
if($this->Auth->User['User']['org'] != 'ADMIN') $this->redirect(array('controller' => 'blaclists', 'action' => 'index', 'admin' => false));
$this->AdminCrud->adminDelete($id);
}
/**
* index method
*
* @return void
*/
public function index() {
public function index() {
$this->recursive = 0;
$this->set('list', Sanitize::clean($this->paginate()));
}