Completed
Pull Request — master (#135)
by Sebastian
01:15
created
src/BaseElement.php 1 patch
Doc Comments   +10 added lines, -3 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
      * @param string $attribute
89 89
      * @param mixed $fallback
90 90
      *
91
-     * @return mixed
91
+     * @return string
92 92
      */
93 93
     public function getAttribute($attribute, $fallback = null)
94 94
     {
@@ -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
@@ -425,6 +425,10 @@  discard block
 block discarded – undo
425 425
         return $this->__macro_call($name, $arguments);
426 426
     }
427 427
 
428
+    /**
429
+     * @param string $type
430
+     * @param string $method
431
+     */
428 432
     protected function callConditionalMethod($type, $method, array $arguments)
429 433
     {
430 434
         $value = array_shift($arguments);
@@ -460,6 +464,9 @@  discard block
 block discarded – undo
460 464
         return $this->render();
461 465
     }
462 466
 
467
+    /**
468
+     * @param callable $mapper
469
+     */
463 470
     protected function parseChildren($children, $mapper = null): Collection
464 471
     {
465 472
         if ($children instanceof HtmlElement) {
Please login to merge, or discard this patch.