Completed
Push — master ( e7dfbe...b82585 )
by Sebastian
02:12
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/Elements/Select.php 2 patches
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,10 +2,10 @@
 block discarded – undo
2 2
 
3 3
 namespace Spatie\Html\Elements;
4 4
 
5
+use Illuminate\Support\Collection;
5 6
 use Illuminate\Support\Str;
6
-use Spatie\Html\Selectable;
7 7
 use Spatie\Html\BaseElement;
8
-use Illuminate\Support\Collection;
8
+use Spatie\Html\Selectable;
9 9
 
10 10
 class Select extends BaseElement
11 11
 {
Please login to merge, or discard this patch.
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -137,6 +137,9 @@
 block discarded – undo
137 137
         $this->children = $this->applyValueToElements($value, $this->children);
138 138
     }
139 139
 
140
+    /**
141
+     * @param Collection $value
142
+     */
140 143
     protected function applyValueToElements($value, Collection $children)
141 144
     {
142 145
         return $children->map(function ($child) use ($value) {
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.
src/BaseElement.php 2 patches
Doc Comments   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
     /**
193 193
      * Alias for `addChildren`.
194 194
      *
195
-     * @param \Spatie\Html\HtmlElement|string|iterable|null $children
195
+     * @param Elements\Input $child
196 196
      * @param callable|null $mapper
197 197
      *
198 198
      * @return static
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
     /**
206 206
      * Alias for `addChildren`.
207 207
      *
208
-     * @param \Spatie\Html\HtmlElement|string|iterable|null $children
208
+     * @param \Spatie\Html\HtmlElement|string|iterable|null $child
209 209
      * @param callable|null $mapper
210 210
      *
211 211
      * @return static
@@ -382,8 +382,6 @@  discard block
 block discarded – undo
382 382
      * Dynamically handle calls to the class.
383 383
      * Check for methods finishing by If or fallback to Macroable.
384 384
      *
385
-     * @param  string  $method
386
-     * @param  array   $parameters
387 385
      * @return mixed
388 386
      *
389 387
      * @throws BadMethodCallException
@@ -422,6 +420,9 @@  discard block
 block discarded – undo
422 420
         return $this->render();
423 421
     }
424 422
 
423
+    /**
424
+     * @param callable $mapper
425
+     */
425 426
     protected function parseChildren($children, $mapper = null): Collection
426 427
     {
427 428
         if ($children instanceof HtmlElement) {
Please login to merge, or discard this patch.
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -3,13 +3,13 @@
 block discarded – undo
3 3
 namespace Spatie\Html;
4 4
 
5 5
 use BadMethodCallException;
6
+use Illuminate\Contracts\Support\Htmlable;
6 7
 use Illuminate\Support\Collection;
7 8
 use Illuminate\Support\HtmlString;
8
-use Spatie\Html\Exceptions\MissingTag;
9
-use Spatie\Html\Exceptions\InvalidHtml;
10 9
 use Illuminate\Support\Traits\Macroable;
11 10
 use Spatie\Html\Exceptions\InvalidChild;
12
-use Illuminate\Contracts\Support\Htmlable;
11
+use Spatie\Html\Exceptions\InvalidHtml;
12
+use Spatie\Html\Exceptions\MissingTag;
13 13
 
14 14
 abstract class BaseElement implements Htmlable, HtmlElement
15 15
 {
Please login to merge, or discard this patch.
src/Html.php 2 patches
Unused Use Statements   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -2,26 +2,26 @@
 block discarded – undo
2 2
 
3 3
 namespace Spatie\Html;
4 4
 
5
-use Spatie\Html\Elements\A;
5
+use Illuminate\Contracts\Support\Htmlable;
6 6
 use Illuminate\Http\Request;
7
+use Illuminate\Support\Collection;
8
+use Illuminate\Support\HtmlString;
9
+use Illuminate\Support\Traits\Macroable;
10
+use Spatie\Html\Elements\A;
11
+use Spatie\Html\Elements\Button;
7 12
 use Spatie\Html\Elements\Div;
13
+use Spatie\Html\Elements\Element;
14
+use Spatie\Html\Elements\Fieldset;
8 15
 use Spatie\Html\Elements\File;
9 16
 use Spatie\Html\Elements\Form;
10
-use Spatie\Html\Elements\Span;
17
+use Spatie\Html\Elements\Img;
11 18
 use Spatie\Html\Elements\Input;
12 19
 use Spatie\Html\Elements\Label;
13
-use Spatie\Html\Elements\Button;
14 20
 use Spatie\Html\Elements\Legend;
15 21
 use Spatie\Html\Elements\Option;
16 22
 use Spatie\Html\Elements\Select;
17
-use Spatie\Html\Elements\Element;
18
-use Illuminate\Support\Collection;
19
-use Illuminate\Support\HtmlString;
20
-use Spatie\Html\Elements\Fieldset;
23
+use Spatie\Html\Elements\Span;
21 24
 use Spatie\Html\Elements\Textarea;
22
-use Illuminate\Support\Traits\Macroable;
23
-use Illuminate\Contracts\Support\Htmlable;
24
-use Spatie\Html\Elements\Img;
25 25
 
26 26
 class Html
27 27
 {
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 
41 41
     /**
42 42
      * @param string|null $href
43
-     * @param string|null $text
43
+     * @param string $contents
44 44
      *
45 45
      * @return \Spatie\Html\Elements\A
46 46
      */
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 
54 54
     /**
55 55
      * @param string|null $type
56
-     * @param string|null $text
56
+     * @param string $contents
57 57
      *
58 58
      * @return \Spatie\Html\Elements\Button
59 59
      */
@@ -301,7 +301,6 @@  discard block
 block discarded – undo
301 301
     }
302 302
 
303 303
     /**
304
-     * @param string|null $value
305 304
      *
306 305
      * @return \Spatie\Html\Elements\Input
307 306
      */
@@ -503,7 +502,6 @@  discard block
 block discarded – undo
503 502
      * a public alias for `old`.
504 503
      *
505 504
      * @param string $name
506
-     * @param mixed $value
507 505
      *
508 506
      * @return mixed
509 507
      */
Please login to merge, or discard this patch.