Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
riipandi authored and StyleCIBot committed Mar 3, 2020
1 parent b69b0c2 commit b91b8c2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Traits/HasUlidKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,12 @@ trait HasUlidKey
public static function bootHasUlidKey()
{
static::creating(function ($model) {

$ulidFieldName = $model->getUlidFieldName();
$ulidLowerCase = $model->getUlidLowerCase();

if (empty($model->{$ulidFieldName})) {
$model->{$ulidFieldName} = self::generateUlid($ulidLowerCase);
}

});
}

Expand Down

0 comments on commit b91b8c2

Please sign in to comment.