Completed
Pull Request — master (#20)
by Paul
02:58 queued 54s
created
src/BaseElement.php 2 patches
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,12 +2,12 @@
 block discarded – undo
2 2
 
3 3
 namespace Spatie\Html;
4 4
 
5
+use Illuminate\Contracts\Support\Htmlable;
5 6
 use Illuminate\Support\Collection;
6 7
 use Illuminate\Support\HtmlString;
7
-use Spatie\Html\Exceptions\MissingTag;
8
-use Spatie\Html\Exceptions\InvalidHtml;
9 8
 use Spatie\Html\Exceptions\InvalidChild;
10
-use Illuminate\Contracts\Support\Htmlable;
9
+use Spatie\Html\Exceptions\InvalidHtml;
10
+use Spatie\Html\Exceptions\MissingTag;
11 11
 
12 12
 abstract class BaseElement implements Htmlable, HtmlElement
13 13
 {
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -80,7 +80,6 @@  discard block
 block discarded – undo
80 80
 
81 81
     /**
82 82
      * @param string $attribute
83
-     * @param string $value
84 83
      *
85 84
      * @return static
86 85
      */
@@ -174,7 +173,7 @@  discard block
 block discarded – undo
174 173
     /**
175 174
      * Alias for `addChildren`.
176 175
      *
177
-     * @param \Spatie\Html\HtmlElement|string|iterable|null $children
176
+     * @param Elements\Input $child
178 177
      * @param ?callable $mapper
179 178
      *
180 179
      * @return static
@@ -187,7 +186,7 @@  discard block
 block discarded – undo
187 186
     /**
188 187
      * Alias for `addChildren`.
189 188
      *
190
-     * @param \Spatie\Html\HtmlElement|string|iterable|null $children
189
+     * @param \Spatie\Html\HtmlElement|string|iterable|null $child
191 190
      * @param ?callable $mapper
192 191
      *
193 192
      * @return static
Please login to merge, or discard this patch.
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/Input.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,6 @@
 block discarded – undo
37 37
     }
38 38
 
39 39
     /**
40
-     * @param string $type
41 40
      *
42 41
      * @return static
43 42
      */
Please login to merge, or discard this patch.
src/Html.php 2 patches
Unused Use Statements   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -2,23 +2,23 @@
 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 Spatie\Html\Elements\A;
10
+use Spatie\Html\Elements\Button;
7 11
 use Spatie\Html\Elements\Div;
12
+use Spatie\Html\Elements\Element;
13
+use Spatie\Html\Elements\Fieldset;
8 14
 use Spatie\Html\Elements\Form;
9
-use Spatie\Html\Elements\Span;
10 15
 use Spatie\Html\Elements\Input;
11 16
 use Spatie\Html\Elements\Label;
12
-use Spatie\Html\Elements\Button;
13 17
 use Spatie\Html\Elements\Legend;
14 18
 use Spatie\Html\Elements\Option;
15 19
 use Spatie\Html\Elements\Select;
16
-use Spatie\Html\Elements\Element;
17
-use Illuminate\Support\Collection;
18
-use Illuminate\Support\HtmlString;
19
-use Spatie\Html\Elements\Fieldset;
20
+use Spatie\Html\Elements\Span;
20 21
 use Spatie\Html\Elements\Textarea;
21
-use Illuminate\Contracts\Support\Htmlable;
22 22
 
23 23
 class Html
24 24
 {
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -6 removed lines patch added patch discarded remove patch
@@ -35,7 +35,6 @@  discard block
 block discarded – undo
35 35
 
36 36
     /**
37 37
      * @param string $href
38
-     * @param string $text
39 38
      *
40 39
      * @return \Spatie\Html\Elements\A
41 40
      */
@@ -48,7 +47,6 @@  discard block
 block discarded – undo
48 47
 
49 48
     /**
50 49
      * @param string $type
51
-     * @param string $text
52 50
      *
53 51
      * @return \Spatie\Html\Elements\Button
54 52
      */
@@ -150,7 +148,6 @@  discard block
 block discarded – undo
150 148
     /**
151 149
      * @param string $method
152 150
      * @param string $action
153
-     * @param array $parameters
154 151
      *
155 152
      * @return \Spatie\Html\Elements\Form
156 153
      */
@@ -236,7 +233,6 @@  discard block
 block discarded – undo
236 233
     }
237 234
 
238 235
     /**
239
-     * @param string $value
240 236
      *
241 237
      * @return \Spatie\Html\Elements\Input
242 238
      */
@@ -305,7 +301,6 @@  discard block
 block discarded – undo
305 301
     }
306 302
 
307 303
     /**
308
-     * @param string $value
309 304
      *
310 305
      * @return \Spatie\Html\Elements\Button
311 306
      */
@@ -407,7 +402,7 @@  discard block
 block discarded – undo
407 402
     /**
408 403
      * @param string $name
409 404
      *
410
-     * @return mixed
405
+     * @return string
411 406
      */
412 407
     protected function old(string $name, $value = '')
413 408
     {
Please login to merge, or discard this patch.