Skip to content

Commit

Permalink
Merge pull request #685 from owen-it/analysis-KZb6ee
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
anteriovieira authored Feb 5, 2022
2 parents 554d99b + ccdc159 commit d332fee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Audit.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,10 @@ protected function getFormattedValue(Model $model, string $key, $value)
return $model->mutateAttribute($key, $value);
}

if (array_key_exists($key,
$model->getCasts()) && $model->getCasts()[$key] == 'Illuminate\Database\Eloquent\Casts\AsArrayObject') {
if (array_key_exists(
$key,
$model->getCasts()
) && $model->getCasts()[$key] == 'Illuminate\Database\Eloquent\Casts\AsArrayObject') {
$arrayObject = new \Illuminate\Database\Eloquent\Casts\ArrayObject(json_decode($value, true));
return $arrayObject;
}
Expand Down

0 comments on commit d332fee

Please sign in to comment.