Completed
Pull Request — 5.6 (#2802)
by Oskar
11:22
created
src/Kunstmaan/GeneratorBundle/Command/KunstmaanGenerateCommand.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -397,7 +397,7 @@  discard block
 block discarded – undo
397 397
      * Get an array of fields that need to be added to the entity.
398 398
      *
399 399
      * @param BundleInterface $bundle
400
-     * @param array           $reservedFields
400
+     * @param string[]           $reservedFields
401 401
      *
402 402
      * @return array
403 403
      */
@@ -575,7 +575,7 @@  discard block
 block discarded – undo
575 575
      *
576 576
      * @param bool $niceNames
577 577
      *
578
-     * @return array
578
+     * @return string[]
579 579
      */
580 580
     private function getTypes($niceNames = false)
581 581
     {
@@ -603,7 +603,7 @@  discard block
 block discarded – undo
603 603
     /**
604 604
      * Get all available media types.
605 605
      *
606
-     * @return array
606
+     * @return string[]
607 607
      */
608 608
     private function getMediaTypes()
609 609
     {
@@ -624,7 +624,7 @@  discard block
 block discarded – undo
624 624
      *
625 625
      * @param BundleInterface $bundle
626 626
      * @param                 $objectName
627
-     * @param                 $prefix
627
+     * @param                 string $prefix
628 628
      * @param                 $name
629 629
      * @param                 $type
630 630
      * @param null            $extra
Please login to merge, or discard this patch.
src/Kunstmaan/GeneratorBundle/Helper/InputAssistant.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
      *
149 149
      * @param Kernel $kernel
150 150
      *
151
-     * @return array
151
+     * @return \Symfony\Component\Console\Question\iterable|null
152 152
      */
153 153
     private function getNamespaceAutoComplete(Kernel $kernel)
154 154
     {
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
      *
166 166
      * @param $namespace
167 167
      *
168
-     * @return mixed
168
+     * @return string
169 169
      */
170 170
     private function fixNamespace($namespace)
171 171
     {
Please login to merge, or discard this patch.
Tests/unit/Model/TestLockableEntityInterfaceImplementation.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -11,6 +11,9 @@
 block discarded – undo
11 11
 {
12 12
     protected $id;
13 13
 
14
+    /**
15
+     * @param string $id
16
+     */
14 17
     public function __construct($id)
15 18
     {
16 19
         $this->setId($id);
Please login to merge, or discard this patch.
src/Kunstmaan/RedirectBundle/Tests/unit/Router/RedirectRouterTest.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -56,6 +56,7 @@
 block discarded – undo
56 56
      * @param string $origin
57 57
      * @param string $target
58 58
      * @param bool   $permanent
59
+     * @param null|string $domain
59 60
      *
60 61
      * @return Redirect
61 62
      */
Please login to merge, or discard this patch.
src/Kunstmaan/TaggingBundle/Entity/TagManager.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
     }
75 75
 
76 76
     /**
77
-     * @param $id
77
+     * @param integer|null $id
78 78
      *
79 79
      * @return mixed|null
80 80
      *
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
     /**
113 113
      * @param Taggable $item
114 114
      * @param $class
115
-     * @param $locale
115
+     * @param string $locale
116 116
      * @param int $nbOfItems
117 117
      *
118 118
      * @return array|null
Please login to merge, or discard this patch.
src/Kunstmaan/LeadGenerationBundle/Controller/PopupsAdminListController.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      *
57 57
      * @Route("/{id}/delete", requirements={"id" = "\d+"}, name="kunstmaanleadgenerationbundle_admin_popup_abstractpopup_delete", methods={"GET", "POST"})
58 58
      *
59
-     * @return array
59
+     * @return \Symfony\Component\HttpFoundation\Response
60 60
      */
61 61
     public function deleteAction(Request $request, $id)
62 62
     {
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      *
71 71
      * @Route("/{id}/edit", requirements={"id" = "\d+"}, name="kunstmaanleadgenerationbundle_admin_popup_abstractpopup_edit", methods={"GET", "POST"})
72 72
      *
73
-     * @return array
73
+     * @return \Symfony\Component\HttpFoundation\Response
74 74
      */
75 75
     public function editAction(Request $request, $id)
76 76
     {
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
      *
83 83
      * @Route("/add",  name="kunstmaanleadgenerationbundle_admin_popup_abstractpopup_add", methods={"GET", "POST"})
84 84
      *
85
-     * @return array
85
+     * @return \Symfony\Component\HttpFoundation\Response
86 86
      */
87 87
     public function addAction(Request $request)
88 88
     {
Please login to merge, or discard this patch.
src/Kunstmaan/LeadGenerationBundle/Controller/RulesAdminListController.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      *
43 43
      * @Route("/{popup}/add", requirements={"popup" = "\d+"}, name="kunstmaanleadgenerationbundle_admin_rule_abstractrule_add", methods={"GET", "POST"})
44 44
      *
45
-     * @return array
45
+     * @return \Symfony\Component\HttpFoundation\Response
46 46
      */
47 47
     public function addAction(Request $request, $popup)
48 48
     {
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      *
59 59
      * @Route("/{popup}/rules/{id}/edit", requirements={"popup" = "\d+", "rule" = "\d+"}, name="kunstmaanleadgenerationbundle_admin_rule_abstractrule_edit", methods={"GET", "POST"})
60 60
      *
61
-     * @return array
61
+     * @return \Symfony\Component\HttpFoundation\Response
62 62
      */
63 63
     public function editAction(Request $request, $id, $popup)
64 64
     {
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      *
73 73
      * @Route("/{popup}/rules/{id}/delete", requirements={"popup" = "\d+"}, name="kunstmaanleadgenerationbundle_admin_rule_abstractrule_delete", methods={"GET", "POST"})
74 74
      *
75
-     * @return array
75
+     * @return \Symfony\Component\HttpFoundation\Response
76 76
      */
77 77
     public function deleteAction(Request $request, $id, $popup)
78 78
     {
Please login to merge, or discard this patch.
src/Kunstmaan/MediaBundle/Controller/MediaController.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -274,6 +274,10 @@  discard block
 block discarded – undo
274 274
         return $response;
275 275
     }
276 276
 
277
+    /**
278
+     * @param string $code
279
+     * @param string $message
280
+     */
277 281
     private function returnJsonError($code, $message)
278 282
     {
279 283
         return new JsonResponse(
@@ -452,7 +456,7 @@  discard block
 block discarded – undo
452 456
      *
453 457
      * @Route("move/", name="KunstmaanMediaBundle_media_move", methods={"POST"})
454 458
      *
455
-     * @return string
459
+     * @return JsonResponse
456 460
      */
457 461
     public function moveMedia(Request $request)
458 462
     {
Please login to merge, or discard this patch.
src/Kunstmaan/MenuBundle/Controller/MenuItemAdminListController.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
      *
103 103
      * @Route("/{menuid}/items/add", name="kunstmaanmenubundle_admin_menuitem_add", methods={"GET", "POST"})
104 104
      *
105
-     * @return array
105
+     * @return Response
106 106
      */
107 107
     public function addAction(Request $request, $menuid)
108 108
     {
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
      *
117 117
      * @Route("{menuid}/items/{id}/edit", requirements={"id" = "\d+"}, name="kunstmaanmenubundle_admin_menuitem_edit", methods={"GET", "POST"})
118 118
      *
119
-     * @return array
119
+     * @return Response
120 120
      */
121 121
     public function editAction(Request $request, $menuid, $id)
122 122
     {
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
      *
131 131
      * @Route("{menuid}/items/{id}/delete", requirements={"id" = "\d+"}, name="kunstmaanmenubundle_admin_menuitem_delete", methods={"GET", "POST"})
132 132
      *
133
-     * @return array
133
+     * @return Response
134 134
      */
135 135
     public function deleteAction(Request $request, $menuid, $id)
136 136
     {
Please login to merge, or discard this patch.