@@ -9,11 +9,11 @@ discard block |
||
9 | 9 | { |
10 | 10 | protected static function bootManageable() |
11 | 11 | { |
12 | - static::creating(function (Model $model) { |
|
12 | + static::creating(function(Model $model) { |
|
13 | 13 | $model->setManageable('created_by', 'creator'); |
14 | 14 | }); |
15 | 15 | |
16 | - static::updating(function (Model $model) { |
|
16 | + static::updating(function(Model $model) { |
|
17 | 17 | $model->setManageable('updated_by', 'editor'); |
18 | 18 | }); |
19 | 19 | } |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | |
41 | 41 | protected function setManageable(string $type, string $relation) |
42 | 42 | { |
43 | - if (! isset($this->{$type}) && Auth::check()) { |
|
43 | + if ( ! isset($this->{$type}) && Auth::check()) { |
|
44 | 44 | $this->{$type} = Auth::id(); |
45 | 45 | $this->setRelation($relation, Auth::user()); |
46 | 46 | } |
@@ -17,7 +17,7 @@ |
||
17 | 17 | */ |
18 | 18 | public function boot() |
19 | 19 | { |
20 | - Blueprint::macro('manageable', function ($bigIntegers = true, $foreignTable = 'users', $foreignKey = 'id') { |
|
20 | + Blueprint::macro('manageable', function($bigIntegers = true, $foreignTable = 'users', $foreignKey = 'id') { |
|
21 | 21 | $createdBy = $bigIntegers |
22 | 22 | ? $this->unsignedBigInteger($this->createdBy) |
23 | 23 | : $this->unsignedInteger($this->createdBy); |