@@ -18,8 +18,8 @@ discard block |
||
| 18 | 18 | $data = array(); |
| 19 | 19 | |
| 20 | 20 | if ( |
| 21 | - ! $app['security']->isGranted('ROLE_USERS_EDITOR') && |
|
| 22 | - ! $app['security']->isGranted('ROLE_ADMIN') |
|
| 21 | + !$app['security']->isGranted('ROLE_USERS_EDITOR') && |
|
| 22 | + !$app['security']->isGranted('ROLE_ADMIN') |
|
| 23 | 23 | ) { |
| 24 | 24 | $app->abort(403); |
| 25 | 25 | } |
@@ -67,8 +67,8 @@ discard block |
||
| 67 | 67 | $data = array(); |
| 68 | 68 | |
| 69 | 69 | if ( |
| 70 | - ! $app['security']->isGranted('ROLE_USERS_EDITOR') && |
|
| 71 | - ! $app['security']->isGranted('ROLE_ADMIN') |
|
| 70 | + !$app['security']->isGranted('ROLE_USERS_EDITOR') && |
|
| 71 | + !$app['security']->isGranted('ROLE_ADMIN') |
|
| 72 | 72 | ) { |
| 73 | 73 | $app->abort(403); |
| 74 | 74 | } |
@@ -134,15 +134,15 @@ discard block |
||
| 134 | 134 | $data = array(); |
| 135 | 135 | |
| 136 | 136 | if ( |
| 137 | - ! $app['security']->isGranted('ROLE_USERS_EDITOR') && |
|
| 138 | - ! $app['security']->isGranted('ROLE_ADMIN') |
|
| 137 | + !$app['security']->isGranted('ROLE_USERS_EDITOR') && |
|
| 138 | + !$app['security']->isGranted('ROLE_ADMIN') |
|
| 139 | 139 | ) { |
| 140 | 140 | $app->abort(403); |
| 141 | 141 | } |
| 142 | 142 | |
| 143 | 143 | $user = $app['orm.em']->find('Application\Entity\UserEntity', $id); |
| 144 | 144 | |
| 145 | - if (! $user) { |
|
| 145 | + if (!$user) { |
|
| 146 | 146 | $app->abort(404); |
| 147 | 147 | } |
| 148 | 148 | |
@@ -161,8 +161,8 @@ discard block |
||
| 161 | 161 | $data = array(); |
| 162 | 162 | |
| 163 | 163 | if ( |
| 164 | - ! $app['security']->isGranted('ROLE_USERS_EDITOR') && |
|
| 165 | - ! $app['security']->isGranted('ROLE_ADMIN') |
|
| 164 | + !$app['security']->isGranted('ROLE_USERS_EDITOR') && |
|
| 165 | + !$app['security']->isGranted('ROLE_ADMIN') |
|
| 166 | 166 | ) { |
| 167 | 167 | $app->abort(403); |
| 168 | 168 | } |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | $id |
| 173 | 173 | ); |
| 174 | 174 | |
| 175 | - if (! $user) { |
|
| 175 | + if (!$user) { |
|
| 176 | 176 | $app->abort(404); |
| 177 | 177 | } |
| 178 | 178 | |
@@ -262,8 +262,8 @@ discard block |
||
| 262 | 262 | $data = array(); |
| 263 | 263 | |
| 264 | 264 | if ( |
| 265 | - ! $app['security']->isGranted('ROLE_USERS_EDITOR') && |
|
| 266 | - ! $app['security']->isGranted('ROLE_ADMIN') |
|
| 265 | + !$app['security']->isGranted('ROLE_USERS_EDITOR') && |
|
| 266 | + !$app['security']->isGranted('ROLE_ADMIN') |
|
| 267 | 267 | ) { |
| 268 | 268 | $app->abort(403); |
| 269 | 269 | } |
@@ -286,7 +286,7 @@ discard block |
||
| 286 | 286 | |
| 287 | 287 | if ( |
| 288 | 288 | ( |
| 289 | - ! $user && |
|
| 289 | + !$user && |
|
| 290 | 290 | $ids === false |
| 291 | 291 | ) || |
| 292 | 292 | ( |
@@ -518,7 +518,7 @@ discard block |
||
| 518 | 518 | */ |
| 519 | 519 | public function isAccountNonLocked() |
| 520 | 520 | { |
| 521 | - return ! $this->isLocked(); |
|
| 521 | + return !$this->isLocked(); |
|
| 522 | 522 | } |
| 523 | 523 | |
| 524 | 524 | /*** Reset password code ***/ |
@@ -648,7 +648,7 @@ discard block |
||
| 648 | 648 | */ |
| 649 | 649 | public function isAccountNonExpired() |
| 650 | 650 | { |
| 651 | - return ! $this->getExpired(); |
|
| 651 | + return !$this->getExpired(); |
|
| 652 | 652 | } |
| 653 | 653 | |
| 654 | 654 | /*** Credentials expired ***/ |
@@ -673,7 +673,7 @@ discard block |
||
| 673 | 673 | */ |
| 674 | 674 | public function isCredentialsNonExpired() |
| 675 | 675 | { |
| 676 | - return ! $this->getExpired(); |
|
| 676 | + return !$this->getExpired(); |
|
| 677 | 677 | } |
| 678 | 678 | |
| 679 | 679 | /*** Roles ***/ |
@@ -763,7 +763,7 @@ discard block |
||
| 763 | 763 | */ |
| 764 | 764 | public function isEqualTo(AdvancedUserInterface $user) |
| 765 | 765 | { |
| 766 | - if (! $user instanceof AdvancedUserInterface) { |
|
| 766 | + if (!$user instanceof AdvancedUserInterface) { |
|
| 767 | 767 | return false; |
| 768 | 768 | } |
| 769 | 769 | |
@@ -175,7 +175,7 @@ |
||
| 175 | 175 | /*************** Methods ***************/ |
| 176 | 176 | /***** Constructor *****/ |
| 177 | 177 | /** |
| 178 | - * @return void |
|
| 178 | + * @return ProfileEntity |
|
| 179 | 179 | */ |
| 180 | 180 | public function __construct() |
| 181 | 181 | { |
@@ -215,7 +215,7 @@ |
||
| 215 | 215 | $total = $paginationData['totalCount']; |
| 216 | 216 | |
| 217 | 217 | if ($total > 0 && $currentPage <= $pageCount) { |
| 218 | - $from = (($currentPage -1) * $paginationData['numItemsPerPage']) + 1; |
|
| 218 | + $from = (($currentPage - 1) * $paginationData['numItemsPerPage']) + 1; |
|
| 219 | 219 | $to = $currentPage * $paginationData['numItemsPerPage'] > $total |
| 220 | 220 | ? $total |
| 221 | 221 | : $currentPage * $paginationData['numItemsPerPage'] |