Completed
Pull Request — master (#1672)
by Derek Stephen
15:58
created
src/Kunstmaan/FormBundle/Helper/FormMailerInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -15,6 +15,7 @@
 block discarded – undo
15 15
      * @param string         $from       The from address
16 16
      * @param string         $to         The to address(es) seperated by \n
17 17
      * @param string         $subject    The subject
18
+     * @return void
18 19
      */
19 20
     public function sendContactMail(FormSubmission $submission, $from, $to, $subject);
20 21
 
Please login to merge, or discard this patch.
src/Kunstmaan/FormBundle/Helper/Menu/FormSubmissionsMenuAdaptor.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 use Kunstmaan\AdminBundle\Helper\Menu\MenuBuilder;
7 7
 use Kunstmaan\AdminBundle\Helper\Menu\MenuItem;
8 8
 use Kunstmaan\AdminBundle\Helper\Menu\TopMenuItem;
9
-
10 9
 use Symfony\Component\HttpFoundation\Request;
11 10
 
12 11
 /**
Please login to merge, or discard this patch.
src/Kunstmaan/GeneratorBundle/Command/GenerateBundleCommand.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
      * @param OutputInterface $output An OutputInterface instance
62 62
      *
63 63
      * @throws \RuntimeException
64
-     * @return void
64
+     * @return integer|null
65 65
      */
66 66
     protected function execute(InputInterface $input, OutputInterface $output)
67 67
     {
Please login to merge, or discard this patch.
src/Kunstmaan/GeneratorBundle/Command/KunstmaanGenerateCommand.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -395,7 +395,7 @@  discard block
 block discarded – undo
395 395
      * Get an array of fields that need to be added to the entity.
396 396
      *
397 397
      * @param BundleInterface $bundle
398
-     * @param array           $reservedFields
398
+     * @param string[]           $reservedFields
399 399
      *
400 400
      * @return array
401 401
      */
@@ -573,7 +573,7 @@  discard block
 block discarded – undo
573 573
      *
574 574
      * @param bool $niceNames
575 575
      *
576
-     * @return array
576
+     * @return string[]
577 577
      */
578 578
     private function getTypes($niceNames = false)
579 579
     {
@@ -601,7 +601,7 @@  discard block
 block discarded – undo
601 601
     /**
602 602
      * Get all available media types.
603 603
      *
604
-     * @return array
604
+     * @return string[]
605 605
      */
606 606
     private function getMediaTypes()
607 607
     {
Please login to merge, or discard this patch.
src/Kunstmaan/GeneratorBundle/Generator/KunstmaanGenerator.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      * @param string|null     $extendClass
92 92
      * @param bool            $withRepository
93 93
      *
94
-     * @return array
94
+     * @return string[]
95 95
      * @throws \RuntimeException
96 96
      */
97 97
     protected function generateEntity(
@@ -175,9 +175,9 @@  discard block
 block discarded – undo
175 175
     /**
176 176
      * Generate the entity admin type.
177 177
      *
178
-     * @param        $bundle
179
-     * @param        $entityName
180
-     * @param        $entityPrefix
178
+     * @param        BundleInterface $bundle
179
+     * @param        string $entityName
180
+     * @param        string $entityPrefix
181 181
      * @param array  $fields
182 182
      * @param string $extendClass
183 183
      */
Please login to merge, or discard this patch.
src/Kunstmaan/GeneratorBundle/Generator/SearchPageGenerator.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace Kunstmaan\GeneratorBundle\Generator;
4 4
 
5 5
 use Kunstmaan\GeneratorBundle\Helper\GeneratorUtils;
6
-
7 6
 use Symfony\Component\Console\Output\OutputInterface;
8 7
 use Symfony\Component\Filesystem\Filesystem;
9 8
 use Symfony\Component\HttpKernel\Bundle\Bundle;
Please login to merge, or discard this patch.
src/Kunstmaan/GeneratorBundle/Helper/CommandAssistant.php 1 patch
Doc Comments   +26 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     }
87 87
 
88 88
     /**
89
-     * @return Questionhelper
89
+     * @return QuestionHelper
90 90
      */
91 91
     private function getQuestionHelper()
92 92
     {
@@ -119,6 +119,9 @@  discard block
 block discarded – undo
119 119
         }
120 120
     }
121 121
 
122
+    /**
123
+     * @param \Closure $validator
124
+     */
122 125
     public function askAndValidate(
123 126
         $question,
124 127
         $validator,
@@ -139,6 +142,10 @@  discard block
 block discarded – undo
139 142
         );
140 143
     }
141 144
 
145
+    /**
146
+     * @param string $question
147
+     * @param string $defaultString
148
+     */
142 149
     public function askConfirmation(
143 150
         $question,
144 151
         $defaultString,
@@ -160,6 +167,10 @@  discard block
 block discarded – undo
160 167
         );
161 168
     }
162 169
 
170
+    /**
171
+     * @param string $question
172
+     * @param string $default
173
+     */
163 174
     public function ask($question, $default = null, array $autoComplete = null)
164 175
     {
165 176
         $askQuestion = new Question(
@@ -174,6 +185,9 @@  discard block
 block discarded – undo
174 185
         );
175 186
     }
176 187
 
188
+    /**
189
+     * @param string $question
190
+     */
177 191
     public function askSelect(
178 192
         $question,
179 193
         $choices,
@@ -212,6 +226,10 @@  discard block
 block discarded – undo
212 226
         }
213 227
     }
214 228
 
229
+    /**
230
+     * @param string $name
231
+     * @param null|string $value
232
+     */
215 233
     public function setOption($name, $value)
216 234
     {
217 235
         $this->input->setOption($name, $value);
@@ -222,6 +240,9 @@  discard block
 block discarded – undo
222 240
         return $this->input->hasOption($name);
223 241
     }
224 242
 
243
+    /**
244
+     * @param string $name
245
+     */
225 246
     public function getOption($name)
226 247
     {
227 248
         return $this->input->getOption($name);
@@ -232,6 +253,10 @@  discard block
 block discarded – undo
232 253
         return $this->input->isInteractive();
233 254
     }
234 255
 
256
+    /**
257
+     * @param string $option
258
+     * @param false $default
259
+     */
235 260
     public function getOptionOrDefault($option, $default = null)
236 261
     {
237 262
         return $this->input->hasOption($option) ? $this->input->getOption(
Please login to merge, or discard this patch.
src/Kunstmaan/GeneratorBundle/Helper/GeneratorUtils.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -117,6 +117,9 @@
 block discarded – undo
117 117
     }
118 118
 
119 119
 
120
+    /**
121
+     * @param string $pathInSkeleton
122
+     */
120 123
     public static function getFullSkeletonPath($pathInSkeleton)
121 124
     {
122 125
         $pathInSkeleton = trim($pathInSkeleton);
Please login to merge, or discard this patch.
Kunstmaan/LeadGenerationBundle/Controller/AbstractNewsletterController.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -71,6 +71,9 @@
 block discarded – undo
71 71
         return $form;
72 72
     }
73 73
 
74
+    /**
75
+     * @return string
76
+     */
74 77
     protected function getSubscriptionFormType()
75 78
     {
76 79
         return NewsletterSubscriptionType::class;
Please login to merge, or discard this patch.