Skip to content

Commit

Permalink
Move up helper method declaration to match call order
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Jun 28, 2024
1 parent 8b45cd9 commit 04aebd1
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ protected function addRoute(Route $route): void
$this->addChild($urlItem, 'priority', $this->generatePriority(...$this->getRouteInformation($route)));
}

protected function resolveRouteLink(Route $route): string
{
return Hyde::url($route->getOutputPath());
}

protected function getLastModDate(string $file): string
{
return date('c', @Filesystem::lastModified($file) ?: Carbon::now()->timestamp);
Expand Down Expand Up @@ -97,11 +102,6 @@ protected function generateChangeFrequency(string $pageClass, string $identifier
return $frequency;
}

protected function resolveRouteLink(Route $route): string
{
return Hyde::url($route->getOutputPath());
}

/** @return array{class-string<\Hyde\Pages\Concerns\HydePage>, string} */
protected function getRouteInformation(Route $route): array
{
Expand Down

0 comments on commit 04aebd1

Please sign in to comment.