Completed
Pull Request — 5.6 (#2827)
by Oskar
05:47
created
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/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.
src/Kunstmaan/ArticleBundle/Entity/AbstractAuthor.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
     }
52 52
 
53 53
     /**
54
-     * @param $link
54
+     * @param string $link
55 55
      */
56 56
     public function setLink($link)
57 57
     {
Please login to merge, or discard this patch.
src/Kunstmaan/GeneratorBundle/Helper/CommandAssistant.php 1 patch
Doc Comments   +27 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,10 @@  discard block
 block discarded – undo
119 119
         }
120 120
     }
121 121
 
122
+    /**
123
+     * @param string $question
124
+     * @param \Closure $validator
125
+     */
122 126
     public function askAndValidate(
123 127
         $question,
124 128
         $validator,
@@ -139,6 +143,10 @@  discard block
 block discarded – undo
139 143
         );
140 144
     }
141 145
 
146
+    /**
147
+     * @param string $question
148
+     * @param string $defaultString
149
+     */
142 150
     public function askConfirmation(
143 151
         $question,
144 152
         $defaultString,
@@ -160,6 +168,10 @@  discard block
 block discarded – undo
160 168
         );
161 169
     }
162 170
 
171
+    /**
172
+     * @param string $question
173
+     * @param string $default
174
+     */
163 175
     public function ask($question, $default = null, array $autoComplete = null)
164 176
     {
165 177
         $askQuestion = new Question(
@@ -174,6 +186,9 @@  discard block
 block discarded – undo
174 186
         );
175 187
     }
176 188
 
189
+    /**
190
+     * @param string $question
191
+     */
177 192
     public function askSelect(
178 193
         $question,
179 194
         $choices,
@@ -212,6 +227,10 @@  discard block
 block discarded – undo
212 227
         }
213 228
     }
214 229
 
230
+    /**
231
+     * @param string $name
232
+     * @param null|string $value
233
+     */
215 234
     public function setOption($name, $value)
216 235
     {
217 236
         $this->input->setOption($name, $value);
@@ -222,6 +241,9 @@  discard block
 block discarded – undo
222 241
         return $this->input->hasOption($name);
223 242
     }
224 243
 
244
+    /**
245
+     * @param string $name
246
+     */
225 247
     public function getOption($name)
226 248
     {
227 249
         return $this->input->getOption($name);
@@ -232,6 +254,10 @@  discard block
 block discarded – undo
232 254
         return $this->input->isInteractive();
233 255
     }
234 256
 
257
+    /**
258
+     * @param string $option
259
+     * @param false $default
260
+     */
235 261
     public function getOptionOrDefault($option, $default = null)
236 262
     {
237 263
         return $this->input->hasOption($option) ? $this->input->getOption(
Please login to merge, or discard this patch.
Kunstmaan/GeneratorBundle/Generator/Symfony4EntityRepositoryGenerator.php 1 patch
Doc Comments   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,8 +26,8 @@  discard block
 block discarded – undo
26 26
 ';
27 27
 
28 28
     /**
29
-     * @param string $entityClassName
30
-     * @param string $repositoryClassName
29
+     * @param string $entityClass
30
+     * @param string $repositoryClass
31 31
      *
32 32
      * @return string
33 33
      */
@@ -44,8 +44,9 @@  discard block
 block discarded – undo
44 44
     }
45 45
 
46 46
     /**
47
-     * @param string $fullClassName
48 47
      * @param string $outputDirectory
48
+     * @param string $entityClass
49
+     * @param string $repositoryClass
49 50
      */
50 51
     public function writeEntityRepositoryClass($entityClass, $repositoryClass, $outputDirectory)
51 52
     {
Please login to merge, or discard this patch.
src/Kunstmaan/GeneratorBundle/DataFixtures/ORM/UserFixtures.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
      * @param string        $password The plain password
79 79
      * @param string        $email    The email of the user
80 80
      * @param string        $locale   The locale (language) of the user
81
-     * @param array         $roles    The roles the user has
81
+     * @param string[]         $roles    The roles the user has
82 82
      * @param array         $groups   The groups the user belongs to
83 83
      * @param bool          $enabled  Enable login for the user
84 84
      * @param bool          $changed  Disable password changed for the user
Please login to merge, or discard this patch.
src/Kunstmaan/AdminListBundle/AdminList/AdminList.php 1 patch
Doc Comments   +15 added lines, -9 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
     }
115 115
 
116 116
     /**
117
-     * @param mixed $item
117
+     * @param \stdClass $item
118 118
      *
119 119
      * @return bool
120 120
      */
@@ -131,6 +131,9 @@  discard block
 block discarded – undo
131 131
         return $this->configurator->canAdd();
132 132
     }
133 133
 
134
+    /**
135
+     * @param \stdClass $item
136
+     */
134 137
     public function canView($item)
135 138
     {
136 139
         return $this->configurator->canView($item);
@@ -145,7 +148,7 @@  discard block
 block discarded – undo
145 148
     }
146 149
 
147 150
     /**
148
-     * @param mixed $item
151
+     * @param \stdClass $item
149 152
      *
150 153
      * @return array
151 154
      */
@@ -154,13 +157,16 @@  discard block
 block discarded – undo
154 157
         return $this->configurator->getEditUrlFor($item);
155 158
     }
156 159
 
160
+    /**
161
+     * @param \stdClass $item
162
+     */
157 163
     public function getViewUrlFor($item)
158 164
     {
159 165
         return $this->configurator->getViewUrlFor($item);
160 166
     }
161 167
 
162 168
     /**
163
-     * @param mixed $item
169
+     * @param \stdClass $item
164 170
      *
165 171
      * @return array
166 172
      */
@@ -180,7 +186,7 @@  discard block
 block discarded – undo
180 186
     }
181 187
 
182 188
     /**
183
-     * @param mixed $item
189
+     * @param \stdClass $item
184 190
      *
185 191
      * @return bool
186 192
      */
@@ -206,7 +212,7 @@  discard block
 block discarded – undo
206 212
     }
207 213
 
208 214
     /**
209
-     * @param object|array $object    The object
215
+     * @param \stdClass $object    The object
210 216
      * @param string       $attribute The attribute
211 217
      *
212 218
      * @return mixed
@@ -217,7 +223,7 @@  discard block
 block discarded – undo
217 223
     }
218 224
 
219 225
     /**
220
-     * @param object|array $object    The object
226
+     * @param \stdClass $object    The object
221 227
      * @param string       $attribute The attribute
222 228
      *
223 229
      * @return string
@@ -244,7 +250,7 @@  discard block
 block discarded – undo
244 250
     }
245 251
 
246 252
     /**
247
-     * @return array
253
+     * @return ItemAction\ItemActionInterface[]
248 254
      */
249 255
     public function getItemActions()
250 256
     {
@@ -268,7 +274,7 @@  discard block
 block discarded – undo
268 274
     }
269 275
 
270 276
     /**
271
-     * @return array
277
+     * @return ListAction\ListActionInterface[]
272 278
      */
273 279
     public function getListActions()
274 280
     {
@@ -276,7 +282,7 @@  discard block
 block discarded – undo
276 282
     }
277 283
 
278 284
     /**
279
-     * @return array
285
+     * @return BulkAction\BulkActionInterface[]
280 286
      */
281 287
     public function getBulkActions()
282 288
     {
Please login to merge, or discard this patch.
src/Kunstmaan/FormBundle/AdminList/FormSubmissionAdminListConfigurator.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
     /**
82 82
      * Return the url to edit the given $item
83 83
      *
84
-     * @param mixed $item
84
+     * @param \PHPUnit\Framework\MockObject\MockObject $item
85 85
      *
86 86
      * @return array
87 87
      */
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
     /**
132 132
      * Configure if it's possible to delete the given $item
133 133
      *
134
-     * @param mixed $item
134
+     * @param \PHPUnit\Framework\MockObject\MockObject $item
135 135
      *
136 136
      * @return bool
137 137
      */
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
     /**
154 154
      * Get the delete url for the given $item
155 155
      *
156
-     * @param mixed $item
156
+     * @param \PHPUnit\Framework\MockObject\MockObject $item
157 157
      *
158 158
      * @return array
159 159
      */
Please login to merge, or discard this patch.
TranslatorBundle/Service/Command/Exporter/ExportCommandHandler.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -165,7 +165,7 @@
 block discarded – undo
165 165
     }
166 166
 
167 167
     /**
168
-     * @param $translationRepository
168
+     * @param \PHPUnit\Framework\MockObject\MockObject $translationRepository
169 169
      */
170 170
     public function setTranslationRepository($translationRepository)
171 171
     {
Please login to merge, or discard this patch.