From 3f1b3dbfce64589f529a32b105358e6142ac4f33 Mon Sep 17 00:00:00 2001 From: tabuna Date: Sun, 22 Oct 2023 01:25:09 +0000 Subject: [PATCH] Fixed code style --- src/Platform/OrchidServiceProvider.php | 8 ++++---- src/Screen/Screen.php | 6 ++++-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/Platform/OrchidServiceProvider.php b/src/Platform/OrchidServiceProvider.php index 754d64a63..412d8d8f8 100644 --- a/src/Platform/OrchidServiceProvider.php +++ b/src/Platform/OrchidServiceProvider.php @@ -5,10 +5,10 @@ namespace Orchid\Platform; use Illuminate\Contracts\Foundation\CachesRoutes; -use Illuminate\Support\Facades\View; -use Illuminate\Support\ServiceProvider; use Illuminate\Routing\Router; use Illuminate\Support\Facades\Route; +use Illuminate\Support\Facades\View; +use Illuminate\Support\ServiceProvider; use Orchid\Icons\IconFinder; /* @@ -22,7 +22,7 @@ abstract class OrchidServiceProvider extends ServiceProvider * * @var \Orchid\Platform\Dashboard|null */ - protected Dashboard|null $orchid; + protected ?Dashboard $orchid; /** * Boot the application events. @@ -132,7 +132,7 @@ private function defineIcons(): static { $iconFinder = $this->app->make(IconFinder::class); - collect($this->icons())->each(fn($path, $prefix) => $iconFinder->registerIconDirectory($prefix, $path)); + collect($this->icons())->each(fn ($path, $prefix) => $iconFinder->registerIconDirectory($prefix, $path)); return $this; } diff --git a/src/Screen/Screen.php b/src/Screen/Screen.php index e6d16b44c..e9088dbc9 100644 --- a/src/Screen/Screen.php +++ b/src/Screen/Screen.php @@ -463,14 +463,15 @@ public static function getAvailableMethods(): Collection /** * Return to the previous state with the current object properties. * - * @return \Illuminate\Http\RedirectResponse * @throws \Laravel\SerializableClosure\Exceptions\PhpVersionNotSupportedException + * + * @return \Illuminate\Http\RedirectResponse */ private function backWithCurrentState(): RedirectResponse { $properties = collect((new \ReflectionClass(static::class)) ->getProperties(\ReflectionProperty::IS_PUBLIC)) - ->map(fn(\ReflectionProperty $property) => $property->getName()) + ->map(fn (\ReflectionProperty $property) => $property->getName()) ->toArray(); $currentState = collect(get_object_vars($this)) @@ -485,6 +486,7 @@ private function backWithCurrentState(): RedirectResponse /** * @deprecated + * * @param array $data * * @throws \Laravel\SerializableClosure\Exceptions\PhpVersionNotSupportedException