diff --git a/.php_cs b/.php_cs index 524b684..1000759 100644 --- a/.php_cs +++ b/.php_cs @@ -21,6 +21,7 @@ return PhpCsFixer\Config::create() 'phpdoc_order' => true, 'pre_increment' => false, 'self_accessor' => false, + 'single_trait_insert_per_statement' => false, 'yoda_style' => false, ]) ->setFinder($finder); diff --git a/src/Concerns/Input.php b/src/Concerns/Input.php index 6b92e85..b057048 100644 --- a/src/Concerns/Input.php +++ b/src/Concerns/Input.php @@ -41,9 +41,9 @@ public function input(string $type, ?string $name, ?string $value = null, array // attributes array so we can convert them into their HTML attribute format // when creating the HTML element. Then, we will return the entire input. - $options['type'] = $type; + $options['type'] = $type; $options['value'] = $value; - $options['id'] = $id; + $options['id'] = $id; return $this->toHtmlString('html->attributes($options).'>'); } diff --git a/src/Eloquent/FormAccessible.php b/src/Eloquent/FormAccessible.php index c60a3f6..ba3e4b2 100644 --- a/src/Eloquent/FormAccessible.php +++ b/src/Eloquent/FormAccessible.php @@ -2,7 +2,6 @@ namespace Collective\Html\Eloquent; -use ReflectionClass; use Illuminate\Support\Str; trait FormAccessible diff --git a/src/HtmlBuilder.php b/src/HtmlBuilder.php index 5523a3a..ff03dca 100755 --- a/src/HtmlBuilder.php +++ b/src/HtmlBuilder.php @@ -493,7 +493,7 @@ protected function attributeElement($key, $value) */ public function meta(?string $name, $content, array $attributes = []): Htmlable { - $attributes['name'] = $name; + $attributes['name'] = $name; $attributes['content'] = $content; return $this->toHtmlString('attributes($attributes).'>');