Skip to content

Commit

Permalink
[rector] Rector fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lee-to authored and github-actions[bot] committed Dec 29, 2023
1 parent cac6081 commit 6941fad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Commands/MakePageCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ private function makePage(
?string $extends = null
): void {
$dir = is_null($dir) ? 'Pages' : $dir;
$extends = empty($extends) ? 'Page' : $extends;
$extends = $extends === null || $extends === '' || $extends === '0' ? 'Page' : $extends;

$page = $this->getDirectory() . "/$dir/$className.php";

Expand Down

0 comments on commit 6941fad

Please sign in to comment.