From bedd341473ecc0caeb867de863a0738a2ebb842d Mon Sep 17 00:00:00 2001 From: Abdelrahman Omran Date: Sat, 8 May 2021 03:06:39 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Traits/Attributable.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Traits/Attributable.php b/src/Traits/Attributable.php index af68791..691f5da 100644 --- a/src/Traits/Attributable.php +++ b/src/Traits/Attributable.php @@ -4,9 +4,9 @@ namespace Rinvex\Attributes\Traits; +use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Collection; -use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\Relation; trait Attributable @@ -70,7 +70,7 @@ public static function bootAttributable() //}); // Attach dynamic relations to this model - $entityAttributes->each(fn($attribute) => static::resolveRelationUsing($attribute->getAttribute('slug'), function (Model $model) use ($attribute) { + $entityAttributes->each(fn ($attribute) => static::resolveRelationUsing($attribute->getAttribute('slug'), function (Model $model) use ($attribute) { // Determine the relationship type, single value or collection $method = $attribute->is_collection ? 'hasMany' : 'hasOne';