From 6b58219c21e3f2ef15cd7520025d5f5db55ae9a7 Mon Sep 17 00:00:00 2001 From: Ruben Robles Date: Wed, 28 Jul 2021 14:56:11 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Traits/HasStatuses.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Traits/HasStatuses.php b/src/Traits/HasStatuses.php index 1febabc..a34dc49 100644 --- a/src/Traits/HasStatuses.php +++ b/src/Traits/HasStatuses.php @@ -4,8 +4,8 @@ use Illuminate\Database\Eloquent\Builder; use Illuminate\Support\Arr; -use Illuminate\Support\Str; use Illuminate\Support\Collection; +use Illuminate\Support\Str; use SkoreLabs\LaravelStatus\Events\StatusCreating; use SkoreLabs\LaravelStatus\Status; use Spatie\Enum\Enum; @@ -217,8 +217,10 @@ protected function toStatusEnum($value) /** @var \SkoreLabs\LaravelStatus\Status $statusModel */ $statusModel = $this->status()->getModel(); - return $statusModel::toEnum(static::statusesClass(), - is_string($value) ? Str::camel($value) : $value); + return $statusModel::toEnum( + static::statusesClass(), + is_string($value) ? Str::camel($value) : $value + ); } /**