Completed
Pull Request — master (#54)
by Freek
02:38 queued 01:14
created
src/Elements/Fieldset.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,6 @@
 block discarded – undo
9 9
     protected $tag = 'fieldset';
10 10
 
11 11
     /**
12
-     * @param \Spatie\Html\HtmlElement|string $text
13 12
      *
14 13
      * @return static
15 14
      */
Please login to merge, or discard this patch.
src/BaseElement.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
     /**
174 174
      * Alias for `addChildren`.
175 175
      *
176
-     * @param \Spatie\Html\HtmlElement|string|iterable|null $children
176
+     * @param Elements\Input $child
177 177
      * @param callable|null $mapper
178 178
      *
179 179
      * @return static
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
     /**
187 187
      * Alias for `addChildren`.
188 188
      *
189
-     * @param \Spatie\Html\HtmlElement|string|iterable|null $children
189
+     * @param \Spatie\Html\HtmlElement|string|iterable|null $child
190 190
      * @param callable|null $mapper
191 191
      *
192 192
      * @return static
@@ -358,6 +358,9 @@  discard block
 block discarded – undo
358 358
         return $this->render();
359 359
     }
360 360
 
361
+    /**
362
+     * @param callable $mapper
363
+     */
361 364
     protected function parseChildren($children, $mapper = null): Collection
362 365
     {
363 366
         if ($children instanceof HtmlElement) {
Please login to merge, or discard this patch.
src/Html.php 1 patch
Doc Comments   +3 added lines, -5 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 
36 36
     /**
37 37
      * @param string|null $href
38
-     * @param string|null $text
38
+     * @param string $contents
39 39
      *
40 40
      * @return \Spatie\Html\Elements\A
41 41
      */
@@ -48,7 +48,6 @@  discard block
 block discarded – undo
48 48
 
49 49
     /**
50 50
      * @param string|null $type
51
-     * @param string|null $text
52 51
      *
53 52
      * @return \Spatie\Html\Elements\Button
54 53
      */
@@ -238,7 +237,6 @@  discard block
 block discarded – undo
238 237
     }
239 238
 
240 239
     /**
241
-     * @param string|null $value
242 240
      *
243 241
      * @return \Spatie\Html\Elements\Input
244 242
      */
@@ -287,7 +285,7 @@  discard block
 block discarded – undo
287 285
     }
288 286
 
289 287
     /**
290
-     * @param string|null $test
288
+     * @param string|null $text
291 289
      *
292 290
      * @return \Spatie\Html\Elements\Button
293 291
      */
@@ -390,7 +388,7 @@  discard block
 block discarded – undo
390 388
      * @param string $name
391 389
      * @param mixed $value
392 390
      *
393
-     * @return mixed
391
+     * @return string|null
394 392
      */
395 393
     protected function old($name, $value = null)
396 394
     {
Please login to merge, or discard this patch.
src/Elements/File.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,6 @@
 block discarded – undo
49 49
     }
50 50
 
51 51
     /**
52
-     * @param string|null $name
53 52
      *
54 53
      * @return static
55 54
      */
Please login to merge, or discard this patch.
src/Elements/Optgroup.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,8 +12,8 @@
 block discarded – undo
12 12
     protected $tag = 'optgroup';
13 13
 
14 14
     /**
15
-     * @param string|null $href
16 15
      *
16
+     * @param string $label
17 17
      * @return static
18 18
      */
19 19
     public function label($label)
Please login to merge, or discard this patch.