@@ -14,7 +14,7 @@ |
||
| 14 | 14 | * @param Request $request |
| 15 | 15 | * @param Application $app |
| 16 | 16 | * |
| 17 | - * @return Response |
|
| 17 | + * @return \Symfony\Component\HttpFoundation\JsonResponse |
|
| 18 | 18 | */ |
| 19 | 19 | public function indexAction(Request $request, Application $app) |
| 20 | 20 | { |
@@ -161,6 +161,10 @@ discard block |
||
| 161 | 161 | } |
| 162 | 162 | |
| 163 | 163 | /*** Image upload dir ***/ |
| 164 | + |
|
| 165 | + /** |
|
| 166 | + * @return string |
|
| 167 | + */ |
|
| 164 | 168 | public function getImageUploadDir() |
| 165 | 169 | { |
| 166 | 170 | return $this->imageUploadDir; |
@@ -179,6 +183,9 @@ discard block |
||
| 179 | 183 | return $this->imageUrl; |
| 180 | 184 | } |
| 181 | 185 | |
| 186 | + /** |
|
| 187 | + * @param string $imageUrl |
|
| 188 | + */ |
|
| 182 | 189 | public function setImageUrl($imageUrl) |
| 183 | 190 | { |
| 184 | 191 | $this->imageUrl = $imageUrl; |
@@ -133,6 +133,10 @@ |
||
| 133 | 133 | { |
| 134 | 134 | return $this->post; |
| 135 | 135 | } |
| 136 | + |
|
| 137 | + /** |
|
| 138 | + * @param PostEntity|null $post |
|
| 139 | + */ |
|
| 136 | 140 | public function setPost($post) |
| 137 | 141 | { |
| 138 | 142 | $this->post = $post; |
@@ -243,6 +243,10 @@ discard block |
||
| 243 | 243 | } |
| 244 | 244 | |
| 245 | 245 | /*** Image upload dir ***/ |
| 246 | + |
|
| 247 | + /** |
|
| 248 | + * @return string |
|
| 249 | + */ |
|
| 246 | 250 | public function getImageUploadDir() |
| 247 | 251 | { |
| 248 | 252 | return $this->imageUploadDir; |
@@ -265,6 +269,9 @@ discard block |
||
| 265 | 269 | return $this->imageUrl; |
| 266 | 270 | } |
| 267 | 271 | |
| 272 | + /** |
|
| 273 | + * @param string $imageUrl |
|
| 274 | + */ |
|
| 268 | 275 | public function setImageUrl($imageUrl) |
| 269 | 276 | { |
| 270 | 277 | $this->imageUrl = $imageUrl; |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | /*************** Methods ***************/ |
| 176 | 176 | /***** Constructor *****/ |
| 177 | 177 | /** |
| 178 | - * @return void |
|
| 178 | + * @return ProfileEntity |
|
| 179 | 179 | */ |
| 180 | 180 | public function __construct() |
| 181 | 181 | { |
@@ -298,7 +298,7 @@ discard block |
||
| 298 | 298 | } |
| 299 | 299 | |
| 300 | 300 | /** |
| 301 | - * @param $password |
|
| 301 | + * @param string $password |
|
| 302 | 302 | * |
| 303 | 303 | * @return \Application\Entity\UserEntity |
| 304 | 304 | */ |
@@ -375,7 +375,7 @@ discard block |
||
| 375 | 375 | } |
| 376 | 376 | |
| 377 | 377 | /** |
| 378 | - * @param $salt |
|
| 378 | + * @param string $salt |
|
| 379 | 379 | * |
| 380 | 380 | * @return \Application\Entity\UserEntity |
| 381 | 381 | */ |
@@ -396,7 +396,7 @@ discard block |
||
| 396 | 396 | } |
| 397 | 397 | |
| 398 | 398 | /** |
| 399 | - * @param $token |
|
| 399 | + * @param string $token |
|
| 400 | 400 | * |
| 401 | 401 | * @return \Application\Entity\UserEntity |
| 402 | 402 | */ |
@@ -417,7 +417,7 @@ discard block |
||
| 417 | 417 | } |
| 418 | 418 | |
| 419 | 419 | /** |
| 420 | - * @param $accessToken |
|
| 420 | + * @param string $accessToken |
|
| 421 | 421 | * |
| 422 | 422 | * @return \Application\Entity\UserEntity |
| 423 | 423 | */ |
@@ -445,6 +445,9 @@ discard block |
||
| 445 | 445 | return $this->getEnabled(); |
| 446 | 446 | } |
| 447 | 447 | |
| 448 | + /** |
|
| 449 | + * @param boolean $enabled |
|
| 450 | + */ |
|
| 448 | 451 | public function setEnabled($enabled) |
| 449 | 452 | { |
| 450 | 453 | $this->enabled = $enabled; |
@@ -490,7 +493,7 @@ discard block |
||
| 490 | 493 | } |
| 491 | 494 | |
| 492 | 495 | /** |
| 493 | - * @param $locked |
|
| 496 | + * @param boolean $locked |
|
| 494 | 497 | * |
| 495 | 498 | * @return \Application\Entity\UserEntity |
| 496 | 499 | */ |
@@ -523,7 +526,7 @@ discard block |
||
| 523 | 526 | |
| 524 | 527 | /*** Reset password code ***/ |
| 525 | 528 | /** |
| 526 | - * @return boolean |
|
| 529 | + * @return string |
|
| 527 | 530 | */ |
| 528 | 531 | public function getResetPasswordCode() |
| 529 | 532 | { |
@@ -531,7 +534,7 @@ discard block |
||
| 531 | 534 | } |
| 532 | 535 | |
| 533 | 536 | /** |
| 534 | - * @param $resetPasswordCode |
|
| 537 | + * @param string $resetPasswordCode |
|
| 535 | 538 | * |
| 536 | 539 | * @return \Application\Entity\UserEntity |
| 537 | 540 | */ |
@@ -552,7 +555,7 @@ discard block |
||
| 552 | 555 | } |
| 553 | 556 | |
| 554 | 557 | /** |
| 555 | - * @param $activationCode |
|
| 558 | + * @param string $activationCode |
|
| 556 | 559 | * |
| 557 | 560 | * @return \Application\Entity\UserEntity |
| 558 | 561 | */ |
@@ -565,7 +568,7 @@ discard block |
||
| 565 | 568 | |
| 566 | 569 | /*** Time last active ***/ |
| 567 | 570 | /** |
| 568 | - * @return Datetime |
|
| 571 | + * @return \DateTime |
|
| 569 | 572 | */ |
| 570 | 573 | public function getTimeLastActive() |
| 571 | 574 | { |
@@ -586,7 +589,7 @@ discard block |
||
| 586 | 589 | |
| 587 | 590 | /*** Time created ***/ |
| 588 | 591 | /** |
| 589 | - * @return Datetime |
|
| 592 | + * @return \DateTime |
|
| 590 | 593 | */ |
| 591 | 594 | public function getTimeCreated() |
| 592 | 595 | { |
@@ -607,7 +610,7 @@ discard block |
||
| 607 | 610 | |
| 608 | 611 | /*** Time updated ***/ |
| 609 | 612 | /** |
| 610 | - * @return Datetime |
|
| 613 | + * @return \DateTime |
|
| 611 | 614 | */ |
| 612 | 615 | public function getTimeUpdated() |
| 613 | 616 | { |
@@ -678,7 +681,7 @@ discard block |
||
| 678 | 681 | |
| 679 | 682 | /*** Roles ***/ |
| 680 | 683 | /** |
| 681 | - * @return array |
|
| 684 | + * @return string[] |
|
| 682 | 685 | */ |
| 683 | 686 | public function getRoles() |
| 684 | 687 | { |
@@ -703,7 +706,7 @@ discard block |
||
| 703 | 706 | /** |
| 704 | 707 | * @param $role |
| 705 | 708 | * |
| 706 | - * @return \Application\Entity\UserEntity |
|
| 709 | + * @return boolean |
|
| 707 | 710 | */ |
| 708 | 711 | public function hasRole($role) |
| 709 | 712 | { |
@@ -715,7 +718,7 @@ discard block |
||
| 715 | 718 | |
| 716 | 719 | /*** Profile ***/ |
| 717 | 720 | /** |
| 718 | - * @return Application\Entity\ProfileEntity |
|
| 721 | + * @return ProfileEntity |
|
| 719 | 722 | */ |
| 720 | 723 | public function getProfile() |
| 721 | 724 | { |
@@ -791,7 +794,7 @@ discard block |
||
| 791 | 794 | } |
| 792 | 795 | |
| 793 | 796 | /** |
| 794 | - * @return array |
|
| 797 | + * @return string |
|
| 795 | 798 | */ |
| 796 | 799 | public function serialize() |
| 797 | 800 | { |
@@ -676,7 +676,7 @@ |
||
| 676 | 676 | return ! $this->getExpired(); |
| 677 | 677 | } |
| 678 | 678 | |
| 679 | - /*** Roles ***/ |
|
| 679 | + /*** Roles ***/ |
|
| 680 | 680 | /** |
| 681 | 681 | * @return array |
| 682 | 682 | */ |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | /** |
| 47 | - * @return string|boolean |
|
| 47 | + * @return string|false |
|
| 48 | 48 | */ |
| 49 | 49 | public function fileContents($path) |
| 50 | 50 | { |
@@ -74,7 +74,7 @@ |
||
| 74 | 74 | * when the validation kicks in, and one refresh later, |
| 75 | 75 | * you're logged in as that user. |
| 76 | 76 | */ |
| 77 | - $app['user']->setUsername($currentUserUsername); |
|
| 77 | + $app['user']->setUsername($currentUserUsername); |
|
| 78 | 78 | |
| 79 | 79 | if ($form->isValid()) { |
| 80 | 80 | $userEntity = $form->getData(); |