@@ -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 | ( |
@@ -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'] |
@@ -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 | { |
@@ -678,7 +678,7 @@ discard block |
||
678 | 678 | */ |
679 | 679 | public function isCredentialsNonExpired() |
680 | 680 | { |
681 | - return ! $this->getExpired(); |
|
681 | + return !$this->getExpired(); |
|
682 | 682 | } |
683 | 683 | |
684 | 684 | /*** Roles ***/ |
@@ -772,7 +772,7 @@ discard block |
||
772 | 772 | */ |
773 | 773 | public function isEqualTo(AdvancedUserInterface $user) |
774 | 774 | { |
775 | - if (! $user instanceof AdvancedUserInterface) { |
|
775 | + if (!$user instanceof AdvancedUserInterface) { |
|
776 | 776 | return false; |
777 | 777 | } |
778 | 778 |
@@ -2,8 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Application\Entity; |
4 | 4 | |
5 | -use Doctrine\ORM\Mapping as ORM; |
|
6 | - |
|
7 | 5 | /** |
8 | 6 | * Abstract Meta |
9 | 7 | * |
@@ -251,7 +251,7 @@ |
||
251 | 251 | |
252 | 252 | /*** Birthdate ***/ |
253 | 253 | /** |
254 | - * @return string |
|
254 | + * @return \DateTime |
|
255 | 255 | */ |
256 | 256 | public function getBirthdate() |
257 | 257 | { |