Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Dec 1, 2021
1 parent aff3151 commit 4c32bf8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function get($model, $key, $value, $attributes)

public function set($model, $key, $value, $attributes)
{
if ($value !== null) {
if (! is_null($value)) {
return [$key => Crypt::encryptString(json_encode($value))];
}

Expand All @@ -38,7 +38,7 @@ public function set($model, $key, $value, $attributes)

public function serialize($model, string $key, $value, array $attributes)
{
return $value !== null ? $value->getArrayCopy() : null;
return ! is_null($value) ? $value->getArrayCopy() : null;
}
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function get($model, $key, $value, $attributes)

public function set($model, $key, $value, $attributes)
{
if ($value !== null) {
if (! is_null($value)) {
return [$key => Crypt::encryptString(json_encode($value))];
}

Expand Down

0 comments on commit 4c32bf8

Please sign in to comment.