@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | |
| 58 | 58 | $result = $this->Users->save($user); |
| 59 | 59 | if ($result) { |
| 60 | - EventManager::trigger('Controller.Users.successActivate', $this, ['user' => $result]); |
|
| 60 | + EventManager::trigger('Controller.Users.successActivate', $this, [ 'user' => $result ]); |
|
| 61 | 61 | $this->Flash->success(__d( |
| 62 | 62 | 'community', |
| 63 | 63 | '«{0}», you profile has been activate successfully.', |
@@ -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 | } |
| 77 | 77 | |
| 78 | 78 | /** |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | throw new BadRequestException(__d('community', 'User was not found')); |
| 100 | 100 | } |
| 101 | 101 | |
| 102 | - if ($this->request->is(['patch', 'post', 'put'])) { |
|
| 102 | + if ($this->request->is([ 'patch', 'post', 'put' ])) { |
|
| 103 | 103 | $entity = $this->Users->patchEntity($user, $this->request->getData()); |
| 104 | 104 | if ($user->status) { |
| 105 | 105 | $entity->set('token', null); |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | ]); |
| 123 | 123 | } |
| 124 | 124 | |
| 125 | - return $this->redirect(['action' => 'login']); |
|
| 125 | + return $this->redirect([ 'action' => 'login' ]); |
|
| 126 | 126 | } else { |
| 127 | 127 | $this->Flash->error(__d('community', 'An error has occurred. Please, try again.')); |
| 128 | 128 | } |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | * See https://book.cakephp.org/3.0/ru/orm/behaviors/tree.html |
| 35 | 35 | * @return \Cake\ORM\Query |
| 36 | 36 | */ |
| 37 | - public function getTreeList(array $options = []) |
|
| 37 | + public function getTreeList(array $options = [ ]) |
|
| 38 | 38 | { |
| 39 | 39 | $options = Hash::merge([ |
| 40 | 40 | 'lft' => 'ASC', |