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 Mar 9, 2025
1 parent f132b22 commit 3500d0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Core/src/Pages/Pages.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function findByUri(
?PageContract $default = null
): ?PageContract {
return $this->first(
static fn (PageContract $page) => $page->getUriKey() === $uri,
static fn (PageContract $page): bool => $page->getUriKey() === $uri,
$default
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Laravel/src/MoonShineEndpoints.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public function toPage(
if(!$targetPage instanceof PageContract) {
$pageType = PageType::getTypeFromUri($pageUri);

$targetPage = $pageType !== null
$targetPage = $pageType instanceof PageType
? $targetResource?->getPages()->findByType($pageType)
: null;
}
Expand Down

0 comments on commit 3500d0d

Please sign in to comment.