diff --git a/src/Database/Eloquent/Concerns/HasTimestamps.php b/src/Database/Eloquent/Concerns/HasTimestamps.php index de8b2232c1a890c3204499ce267753164d6c1f95..cac16ca191e5c3d6b7ec979a7ae38ad5751cc449 100644 --- a/src/Database/Eloquent/Concerns/HasTimestamps.php +++ b/src/Database/Eloquent/Concerns/HasTimestamps.php @@ -20,7 +20,7 @@ trait HasTimestamps public function setCreatedAt($value): static { $this->{$this->getCreatedAtColumn()} = $value; - if (config('koffinate.core.model.use_perform_by') && !request()->has($this->getCreatedByColumn())) { + if (config('koffinate.core.model.use_perform_by') && ! request()->has($this->getCreatedByColumn())) { $this->setPerformedBy(); $this->{$this->getCreatedByColumn()} = $this->performBy; } @@ -38,7 +38,7 @@ trait HasTimestamps public function setUpdatedAt($value): static { $this->{$this->getUpdatedAtColumn()} = $value; - if (config('koffinate.core.model.use_perform_by') && !request()->has($this->getUpdatedByColumn())) { + if (config('koffinate.core.model.use_perform_by') && ! request()->has($this->getUpdatedByColumn())) { $this->setPerformedBy(); $this->{$this->getUpdatedByColumn()} = $this->performBy; } diff --git a/src/Database/Eloquent/SoftDeletes.php b/src/Database/Eloquent/SoftDeletes.php index 5cf5cf0c9e22631abbca97b60b95d26861ce936c..26c9fb81e09f9d9a1e2722af1fd8641f2b6eb854 100644 --- a/src/Database/Eloquent/SoftDeletes.php +++ b/src/Database/Eloquent/SoftDeletes.php @@ -23,7 +23,7 @@ trait SoftDeletes $this->{$this->getDeletedAtColumn()} = $time; - if (config('koffinate.core.model.use_perform_by') && !request()->has($this->getDeletedByColumn())) { + if (config('koffinate.core.model.use_perform_by') && ! request()->has($this->getDeletedByColumn())) { $this->setPerformedBy(); $columns[$this->getDeletedByColumn()] = $this->performBy; $this->{$this->getDeletedByColumn()} = $this->performBy; @@ -64,7 +64,7 @@ trait SoftDeletes $this->{$this->getDeletedAtColumn()} = null; $this->{$this->getRestoreAtColumn()} = $this->freshTimestamp(); - if (config('koffinate.core.model.use_perform_by') && !request()->has($this->getRestoreByColumn())) { + if (config('koffinate.core.model.use_perform_by') && ! request()->has($this->getRestoreByColumn())) { $this->setPerformedBy(); $this->{$this->getDeletedByColumn()} = null; $this->{$this->getRestoreByColumn()} = $this->performBy;