Passed
Push — master ( b43503...eabfa3 )
by Petr
08:15
created
src/AppBundle/Entity/Infrasctucture/AbstractRepository.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/AppBundle/Controller/BandController.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -400,7 +400,7 @@
 block discarded – undo
400 400
     }
401 401
 
402 402
     /**
403
-     * @return ApiError|CreatedApiResponse|EmptyApiResponse
403
+     * @return AbstractApiResponse
404 404
      */
405 405
     private function createResponseFromUpdateForm(FormInterface $form): AbstractApiResponse
406 406
     {
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@  discard block
 block discarded – undo
10 10
 use AppBundle\Entity\Repository\BandRepository;
11 11
 use AppBundle\Entity\User;
12 12
 use AppBundle\Form\Ambassador\BandFormType;
13
-use AppBundle\Form\FormOptions;
14 13
 use AppBundle\Response\ApiValidationError;
15 14
 use AppBundle\Response\CreatedApiResponse;
16 15
 use AppBundle\Response\EmptyApiResponse;
@@ -28,7 +27,6 @@  discard block
 block discarded – undo
28 27
 use Symfony\Component\Form\FormInterface;
29 28
 use Symfony\Component\HttpFoundation\Request;
30 29
 use Symfony\Component\HttpFoundation\Response;
31
-use Symfony\Component\Validator\Constraints as Assert;
32 30
 
33 31
 /**
34 32
  * @author Vehsamrak
Please login to merge, or discard this patch.
src/AppBundle/Controller/Infrastructure/RestController.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/AppBundle/Response/ApiResponseFactory.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -108,6 +108,9 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/AppBundle/Service/Ambassador/AmbassadorService.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -74,6 +74,11 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.