diff --git a/src/BladeCompiler.php b/src/BladeCompiler.php index 7ffdfe7..74c9a66 100644 --- a/src/BladeCompiler.php +++ b/src/BladeCompiler.php @@ -13,8 +13,8 @@ trait BladeCompiler /** * Creates attributes tags. * - * @param array $attributes - * + * @param array $attributes + * * @return string */ protected function createAttributes(array $attributes) @@ -25,9 +25,9 @@ protected function createAttributes(array $attributes) /** * Created a view based on a string. * - * @param \Illuminate\Contracts\View\Factory $factory - * @param string $contents - * + * @param \Illuminate\Contracts\View\Factory $factory + * @param string $contents + * * @return string */ protected function createViewFromString(Factory $factory, string $contents) diff --git a/src/ServiceProvider.php b/src/ServiceProvider.php index 85b0999..7a2d6ce 100644 --- a/src/ServiceProvider.php +++ b/src/ServiceProvider.php @@ -7,7 +7,7 @@ class ServiceProvider extends AddonServiceProvider { - /** @var array */ + /** @var array */ protected $tags = [ BladeComponent::class, ]; diff --git a/src/Tags/BladeComponent.php b/src/Tags/BladeComponent.php index df39433..4536ed4 100644 --- a/src/Tags/BladeComponent.php +++ b/src/Tags/BladeComponent.php @@ -6,9 +6,9 @@ use Illuminate\Container\Container; use Illuminate\Support\Facades\Blade; +use Illuminate\Support\Facades\View; use Octoper\BladeComponents\BladeCompiler; use Statamic\Tags\Tags; -use Illuminate\Support\Facades\View; class BladeComponent extends Tags { @@ -19,14 +19,14 @@ class BladeComponent extends Tags /** @var array */ protected static $aliases = [ - 'x' - ]; + 'x', + ]; /** - * Renders given component to Laravel Blade components + * Renders given component to Laravel Blade components. * * @param string $component - * + * * @return string */ public function wildcard(string $component): string @@ -42,17 +42,17 @@ public function wildcard(string $component): string return View::make($this->createViewFromString($factory, $compiledBladeView))->render(); } - /** - * Creates a slot Laravel Blade component. - * - * @return string - */ - public function slot(): string - { - if (!isset($this->params['name']) || empty($this->params['name'])) { - return ''; - } - - return "createAttributes($this->params->toArray())}>{$this->parse()}"; - } + /** + * Creates a slot Laravel Blade component. + * + * @return string + */ + public function slot(): string + { + if (! isset($this->params['name']) || empty($this->params['name'])) { + return ''; + } + + return "createAttributes($this->params->toArray())}>{$this->parse()}"; + } }