Skip to content

Commit

Permalink
Fixed code style
Browse files Browse the repository at this point in the history
  • Loading branch information
tabuna authored and github-actions[bot] committed Oct 22, 2023
1 parent 1b3a599 commit 3f1b3db
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/Platform/OrchidServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/*
Expand All @@ -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.
Expand Down Expand Up @@ -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;
}
Expand Down
6 changes: 4 additions & 2 deletions src/Screen/Screen.php
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -485,6 +486,7 @@ private function backWithCurrentState(): RedirectResponse

/**
* @deprecated
*
* @param array $data
*
* @throws \Laravel\SerializableClosure\Exceptions\PhpVersionNotSupportedException
Expand Down

0 comments on commit 3f1b3db

Please sign in to comment.