@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | $result->get('login') |
| 64 | 64 | ))); |
| 65 | 65 | |
| 66 | - return $this->App->redirect(['apply' => ['action' => 'edit', $result->id]]); |
|
| 66 | + return $this->App->redirect([ 'apply' => [ 'action' => 'edit', $result->id ] ]); |
|
| 67 | 67 | } else { |
| 68 | 68 | $this->Flash->error(__d('community', 'User could not be updated. Please, try again.')); |
| 69 | 69 | } |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | $user = $this->Users->get($id); |
| 93 | 93 | $groups = $this->Users->Groups->getTreeList(); |
| 94 | 94 | |
| 95 | - if ($this->request->is(['patch', 'post', 'put'])) { |
|
| 95 | + if ($this->request->is([ 'patch', 'post', 'put' ])) { |
|
| 96 | 96 | $group = $this->Users->patchEntity($user, $this->request->getData()); |
| 97 | 97 | if ($result = $this->Users->save($group)) { |
| 98 | 98 | $this->Flash->success(__d('community', 'The user {0} has been saved.', sprintf( |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | $result->get('login') |
| 101 | 101 | ))); |
| 102 | 102 | return $this->App->redirect([ |
| 103 | - 'apply' => ['action' => 'edit', $result->id] |
|
| 103 | + 'apply' => [ 'action' => 'edit', $result->id ] |
|
| 104 | 104 | ]); |
| 105 | 105 | } else { |
| 106 | 106 | $this->Flash->error(__d('community', 'User could not be updated. Please, try again.')); |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | public function initialize() |
| 144 | 144 | { |
| 145 | 145 | parent::initialize(); |
| 146 | - $this->Security->setConfig('unlockedFields', ['password', 'password_confirm']); |
|
| 146 | + $this->Security->setConfig('unlockedFields', [ 'password', 'password_confirm' ]); |
|
| 147 | 147 | } |
| 148 | 148 | |
| 149 | 149 | /** |