@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | throw new BadRequestException(__d('community', 'Invalid user id or token')); |
50 | 50 | } |
51 | 51 | |
52 | - if ($this->request->is(['patch', 'post', 'put'])) { |
|
52 | + if ($this->request->is([ 'patch', 'post', 'put' ])) { |
|
53 | 53 | $entity = $this->Users->patchEntity($user, $this->request->getData()); |
54 | 54 | if ($user->status) { |
55 | 55 | $entity->set('token', null); |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | ]); |
73 | 73 | } |
74 | 74 | |
75 | - return $this->redirect(['action' => 'login']); |
|
75 | + return $this->redirect([ 'action' => 'login' ]); |
|
76 | 76 | } else { |
77 | 77 | $this->Flash->error(__d('community', 'An error has occurred. Please, try again.')); |
78 | 78 | } |
@@ -16,9 +16,9 @@ |
||
16 | 16 | use Cake\Routing\Router; |
17 | 17 | use Cake\Routing\RouteBuilder; |
18 | 18 | |
19 | -Router::plugin('Community', ['path' => '/'], function (RouteBuilder $routeBuilder) { |
|
20 | - $routeBuilder->prefix('admin', function (RouteBuilder $routeBuilder) { |
|
21 | - $routeBuilder->connect('/community/:controller/:action/*', []); |
|
19 | +Router::plugin('Community', [ 'path' => '/' ], function(RouteBuilder $routeBuilder) { |
|
20 | + $routeBuilder->prefix('admin', function(RouteBuilder $routeBuilder) { |
|
21 | + $routeBuilder->connect('/community/:controller/:action/*', [ ]); |
|
22 | 22 | }); |
23 | 23 | |
24 | 24 | $routeBuilder->connect('profile/:action/*', [ |