Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
d8vjork authored and StyleCIBot committed Jul 28, 2021
1 parent 0e31f05 commit 6b58219
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Traits/HasStatuses.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
);
}

/**
Expand Down

0 comments on commit 6b58219

Please sign in to comment.