Completed
Push — master ( 8fd89c...76aee5 )
by Cheren
01:58
created
src/Controller/UsersController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
config/routes.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,9 +16,9 @@
 block discarded – undo
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/*', [
Please login to merge, or discard this patch.