Skip to content

Commit 7973428

Browse files
committed
Simplify code.
1 parent 2ee9931 commit 7973428

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Generators/DataTablesMakeCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ protected function replaceAction(&$stub)
122122
*/
123123
protected function getAction()
124124
{
125-
return $this->option('action') ? $this->option('action') : Str::lower($this->getNameInput()) . '.action';
125+
return $this->option('action') ?: Str::lower($this->getNameInput()) . '.action';
126126
}
127127

128128
/**

0 commit comments

Comments
 (0)