Code refactoring after commit 510c38adcc

This commit is contained in:
EnesSacid-Buker
2023-02-15 16:15:26 +03:00
committed by GitHub
parent 510c38adcc
commit fb00b31b6c
4 changed files with 7 additions and 9 deletions

View File

@ -611,7 +611,7 @@ class Document extends Model
'type' => 'divider',
];
if ($this->status != 'cancelled' && $this->status != 'draft') {
if (! in_array($this->status, ['cancelled', 'draft'])) {
try {
$actions[] = [
'title' => trans('general.cancel'),