Skip to content

Commit

Permalink
Normalize normalizing helper method name
Browse files Browse the repository at this point in the history
In the United States, there is a preference for "normalize" over "normalise" (99 to 1) and we use normalize in the rest of the codebase
  • Loading branch information
caendesilva committed Dec 28, 2022
1 parent 4b331f3 commit 53c4164
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/framework/src/Pages/PublicationPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function __construct(string $identifier = '', FrontMatter|array $matter =
{
$this->type = $type;

parent::__construct(static::normaliseIdentifier($type->getDirectory(), $identifier), $matter, $markdown);
parent::__construct(static::normalizeIdentifier($type->getDirectory(), $identifier), $matter, $markdown);
}

public function compile(): string
Expand All @@ -47,7 +47,7 @@ protected function renderComponent(): string
return PublicationPageCompiler::call($this);
}

protected static function normaliseIdentifier(string $directory, string $identifier): string
protected static function normalizeIdentifier(string $directory, string $identifier): string
{
if (str_starts_with("$identifier/", $directory)) {
return $identifier;
Expand Down

0 comments on commit 53c4164

Please sign in to comment.