Skip to content

Commit

Permalink
Apply fixes from StyleCI (#1841)
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeelio authored Jul 15, 2024
1 parent d70ce92 commit 16c5099
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/Models/Acars.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,15 @@ class Acars extends Model
public function altitude(): Attribute
{
return Attribute::make(
get: fn(mixed $_, array $attrs) => (float)$attrs['altitude_msl'],
get: fn (mixed $_, array $attrs) => (float) $attrs['altitude_msl'],
set: function (mixed $value) {
$ret = [];
if (!array_key_exists('altitude_agl', $this->attributes)) {
$ret['altitude_agl'] = (float)$value;
$ret['altitude_agl'] = (float) $value;
}

if (!array_key_exists('altitude_msl', $this->attributes)) {
$ret['altitude_msl'] = (float)$value;
$ret['altitude_msl'] = (float) $value;
}

return $ret;
Expand Down

0 comments on commit 16c5099

Please sign in to comment.