Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit 1fdfe32

Browse files
committed
Make it into single statement.
1 parent 6710c6f commit 1fdfe32

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/Validation/Rules/DenyTrashed.php

+3-4
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@ public function isValid()
3030
*/
3131
protected function isTrashed()
3232
{
33-
if ($this->model) {
34-
return method_exists($this->model, 'trashed') && $this->model->trashed();
35-
}
36-
return false;
33+
return $this->model
34+
? method_exists($this->model, 'trashed') && $this->model->trashed()
35+
: false;
3736
}
3837
}

0 commit comments

Comments
 (0)