Completed
Push — master ( 2fb112...4dd992 )
by Cheren
18:49
created
src/Controller/Admin/GroupsController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
             if ($result = $this->Groups->save($group)) {
45 45
                 $this->Flash->success(__d('community', 'The group has been saved.'));
46 46
                 return $this->App->redirect([
47
-                    'apply' => ['action' => 'edit', $result->id],
47
+                    'apply' => [ 'action' => 'edit', $result->id ],
48 48
                 ]);
49 49
             } else {
50 50
                 $this->Flash->error(__d('community', 'The group could not be saved. Please, try again.'));
@@ -76,13 +76,13 @@  discard block
 block discarded – undo
76 76
     public function edit($id)
77 77
     {
78 78
         /** @var Group $group */
79
-        $group = $this->Groups->get($id, ['contain' => []]);
80
-        if ($this->request->is(['patch', 'post', 'put'])) {
79
+        $group = $this->Groups->get($id, [ 'contain' => [ ] ]);
80
+        if ($this->request->is([ 'patch', 'post', 'put' ])) {
81 81
             $group = $this->Groups->patchEntity($group, $this->request->data);
82 82
             if ($result = $this->Groups->save($group)) {
83 83
                 $this->Flash->success(__d('community', 'The group has been updated.'));
84 84
                 return $this->App->redirect([
85
-                    'apply' => ['action' => 'edit', $result->id]
85
+                    'apply' => [ 'action' => 'edit', $result->id ]
86 86
                 ]);
87 87
             } else {
88 88
                 $this->Flash->error(__d('community', 'The group could not be updated. Please, try again.'));
Please login to merge, or discard this patch.