@@ -32,7 +32,7 @@ |
||
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | - * @param object $entity |
|
| 35 | + * @param \AppBundle\Entity\Event $entity |
|
| 36 | 36 | */ |
| 37 | 37 | public function remove($entity) |
| 38 | 38 | { |
@@ -2,9 +2,7 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace AppBundle\Entity\Infrasctucture; |
| 4 | 4 | |
| 5 | -use AppBundle\Form\AbstractFormType; |
|
| 6 | 5 | use Doctrine\ORM\EntityRepository; |
| 7 | -use Symfony\Component\Intl\Exception\MethodNotImplementedException; |
|
| 8 | 6 | |
| 9 | 7 | /** |
| 10 | 8 | * @author Vehsamrak |
@@ -99,7 +99,7 @@ |
||
| 99 | 99 | } |
| 100 | 100 | |
| 101 | 101 | /** |
| 102 | - * @param string|int $id |
|
| 102 | + * @param string $id |
|
| 103 | 103 | */ |
| 104 | 104 | protected function viewEntity(AbstractRepository $repository, $id): Response |
| 105 | 105 | { |
@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use AppBundle\Entity\Infrasctucture\AbstractRepository; |
| 6 | 6 | use AppBundle\Enum\ApiOperation; |
| 7 | 7 | use AppBundle\Exception\EntityNotFoundException; |
| 8 | -use AppBundle\Form\FormOptions; |
|
| 9 | 8 | use AppBundle\Response\ApiError; |
| 10 | 9 | use AppBundle\Response\ApiResponse; |
| 11 | 10 | use AppBundle\Response\CollectionApiResponse; |
@@ -108,6 +108,9 @@ |
||
| 108 | 108 | return new CreatedApiResponse($location); |
| 109 | 109 | } |
| 110 | 110 | |
| 111 | + /** |
|
| 112 | + * @param \AppBundle\Entity\Infrasctucture\Ambassador $entity |
|
| 113 | + */ |
|
| 111 | 114 | private function createEntityHttpLocation($entity): string |
| 112 | 115 | { |
| 113 | 116 | $entityShortName = (new \ReflectionClass($entity))->getShortName(); |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace AppBundle\Response; |
| 4 | 4 | |
| 5 | 5 | use AppBundle\Entity\Image; |
| 6 | -use AppBundle\Entity\Infrasctucture\AbstractRepository; |
|
| 7 | 6 | use AppBundle\Entity\User; |
| 8 | 7 | use AppBundle\Enum\ApiOperation; |
| 9 | 8 | use AppBundle\Exception\UnsupportedTypeException; |
@@ -74,6 +74,11 @@ |
||
| 74 | 74 | return $ambassador; |
| 75 | 75 | } |
| 76 | 76 | |
| 77 | + /** |
|
| 78 | + * @param Band $ambassador |
|
| 79 | + * |
|
| 80 | + * @return BandMember |
|
| 81 | + */ |
|
| 77 | 82 | private function getMemberByAmbassadorAndLogin( |
| 78 | 83 | $ambassador, |
| 79 | 84 | $memberLogin, |
@@ -344,7 +344,6 @@ discard block |
||
| 344 | 344 | * } |
| 345 | 345 | * ) |
| 346 | 346 | * @param string $bandName band name |
| 347 | - * @param string $userLogin member login |
|
| 348 | 347 | */ |
| 349 | 348 | public function updateMemberAction(Request $request, string $bandName) |
| 350 | 349 | { |
@@ -382,7 +381,7 @@ discard block |
||
| 382 | 381 | } |
| 383 | 382 | |
| 384 | 383 | /** |
| 385 | - * @return ApiError|CreatedApiResponse|EmptyApiResponse |
|
| 384 | + * @return AbstractApiResponse |
|
| 386 | 385 | */ |
| 387 | 386 | private function createResponseFromUpdateForm(FormInterface $form): AbstractApiResponse |
| 388 | 387 | { |
@@ -6,8 +6,6 @@ discard block |
||
| 6 | 6 | use AppBundle\Entity\BandMember; |
| 7 | 7 | use AppBundle\Entity\Repository\BandRepository; |
| 8 | 8 | use AppBundle\Entity\User; |
| 9 | -use AppBundle\Form\Ambassador\AmbassadorFormType; |
|
| 10 | -use AppBundle\Form\Ambassador\AmbassadorMemberFormType; |
|
| 11 | 9 | use AppBundle\Form\Ambassador\BandFormType; |
| 12 | 10 | use AppBundle\Form\Ambassador\BandMemberFormType; |
| 13 | 11 | use AppBundle\Response\ApiValidationError; |
@@ -24,7 +22,6 @@ discard block |
||
| 24 | 22 | use Symfony\Component\Form\FormInterface; |
| 25 | 23 | use Symfony\Component\HttpFoundation\Request; |
| 26 | 24 | use Symfony\Component\HttpFoundation\Response; |
| 27 | -use Symfony\Component\Validator\Constraints as Assert; |
|
| 28 | 25 | |
| 29 | 26 | /** |
| 30 | 27 | * @author Vehsamrak |
@@ -4,10 +4,8 @@ |
||
| 4 | 4 | |
| 5 | 5 | use AppBundle\Controller\Infrastructure\RestController; |
| 6 | 6 | use AppBundle\Entity\Organizer; |
| 7 | -use AppBundle\Form\Ambassador\AmbassadorMemberFormType; |
|
| 8 | 7 | use AppBundle\Form\Ambassador\OrganizerFormType; |
| 9 | 8 | use AppBundle\Form\Ambassador\OrganizerMemberFormType; |
| 10 | -use AppBundle\Response\ApiValidationError; |
|
| 11 | 9 | use Nelmio\ApiDocBundle\Annotation\ApiDoc; |
| 12 | 10 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; |
| 13 | 11 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |