@@ -34,21 +34,21 @@ |
||
34 | 34 | 'Community.UserEventHandler', |
35 | 35 | ], |
36 | 36 | |
37 | - 'Controller.initialize' => function (Controller $controller) { |
|
37 | + 'Controller.initialize' => function(Controller $controller) { |
|
38 | 38 | $controller->loadComponent('Community.Auth'); |
39 | 39 | if ($controller->request->getParam('prefix') === 'admin') { |
40 | 40 | $controller->loadComponent('Community.User'); |
41 | 41 | } |
42 | 42 | }, |
43 | 43 | |
44 | - 'Controller.beforeFilter' => function (Controller $controller) { |
|
44 | + 'Controller.beforeFilter' => function(Controller $controller) { |
|
45 | 45 | $user = new User((array) $controller->Auth->user()); |
46 | 46 | $controller->set('authorized', $user); |
47 | 47 | }, |
48 | 48 | |
49 | - 'View.initialize' => function (AppView $view) { |
|
49 | + 'View.initialize' => function(AppView $view) { |
|
50 | 50 | if ($view->request->getData('plugin') === 'Community') { |
51 | - $view->Html->less(['Community.styles.less'], ['block' => true, 'fullBase' => true, 'force' => true]); |
|
51 | + $view->Html->less([ 'Community.styles.less' ], [ 'block' => true, 'fullBase' => true, 'force' => true ]); |
|
52 | 52 | } |
53 | 53 | }, |
54 | 54 |