Skip to content

Commit

Permalink
Merge pull request #1 from riipandi/analysis-m4rJWb
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
riipandi committed Mar 3, 2020
2 parents b69b0c2 + b91b8c2 commit 6fd5eb6
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 6fd5eb6

Please sign in to comment.