Skip to content

Commit

Permalink
Merge pull request #389 from hydephp/analysis-OMWeBl
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI

[ci skip] [skip ci]
  • Loading branch information
HydePHP authored May 17, 2022
2 parents d29005d + e1a14c9 commit d2ae7ca
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Concerns/HasMetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ protected function makeMetaProperties(): void
$this->metadata->addProperty('og:type', 'article');

if (Hyde::uriPath()) {
$this->metadata->addProperty('og:url', Hyde::uriPath(Hyde::pageLink('posts/'.$this->slug . '.html')));
$this->metadata->addProperty('og:url', Hyde::uriPath(Hyde::pageLink('posts/'.$this->slug.'.html')));
}

if (isset($this->matter['title'])) {
Expand Down
8 changes: 4 additions & 4 deletions src/Contracts/AbstractPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* all Page Models must extend this class.
*
* Markdown-based Pages should extend MarkdownDocument.
*
*
* @todo Extract metadata helpers to concern
*/
abstract class AbstractPage
Expand All @@ -29,7 +29,7 @@ public function renderPageMetadata(): string
$dynamicMetadata = $this->getDynamicMetadata();

return Meta::render(
$dynamicMetadata
$dynamicMetadata
);
}

Expand All @@ -38,7 +38,7 @@ protected function getDynamicMetadata(): array
$array = [];

if ($this->canUseCanonicalUrl()) {
$array[] = '<link rel="canonical" href="'. $this->getCanonicalUrl().'" />';
$array[] = '<link rel="canonical" href="'.$this->getCanonicalUrl().'" />';
}

return $array;
Expand All @@ -51,6 +51,6 @@ protected function canUseCanonicalUrl(): bool

protected function getCanonicalUrl(): string
{
return Hyde::uriPath(Hyde::pageLink($this->getCurrentPagePath() . '.html'));
return Hyde::uriPath(Hyde::pageLink($this->getCurrentPagePath().'.html'));
}
}
2 changes: 1 addition & 1 deletion src/Models/DocumentationPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function __construct(array $matter, string $body, string $title = '', str

$this->constructTableOfContents();
}

public function getCurrentPagePath(): string
{
return Hyde::docsDirectory().'/'.$this->slug;
Expand Down
2 changes: 1 addition & 1 deletion src/Models/MarkdownPost.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function __construct(array $matter, string $body, string $title = '', str

$this->category = $this->matter['category'] ?? null;
}

public function getCurrentPagePath(): string
{
return 'posts/'.$this->slug;
Expand Down

0 comments on commit d2ae7ca

Please sign in to comment.