Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply fixes from StyleCI #383

Merged
merged 1 commit into from
May 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/Concerns/HasMetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*
* @see \Hyde\Framework\Models\Metadata
* @see \Tests\Feature\Concerns\HasMetadataTest
*
*
* @todo Unify the $page property and handle metadata through it
*/
trait HasMetadata
Expand Down Expand Up @@ -48,6 +48,7 @@ public function getMetaProperties(): array

/**
* Generate metadata from the front matter that can be used in standard <meta> tags.
*
* @deprecated Will be refactored to parseFrontMatterMetadata
*/
protected function makeMetadata(): void
Expand All @@ -68,6 +69,7 @@ protected function makeMetadata(): void
/**
* Generate metadata from the front matter that can be used for og:type <meta> tags.
* Note that this currently assumes that the object using it is a Blog Post.
*
* @deprecated Will be refactored to parseFrontMatterMetadata
*/
protected function makeMetaProperties(): void
Expand Down Expand Up @@ -103,6 +105,7 @@ protected function makeMetaProperties(): void

/**
* Parse the author string from the front matter with support for both flat and array notation.
*
* @deprecated Will be moved to the Author model
*
* @param string|array $author
Expand Down
2 changes: 1 addition & 1 deletion src/Models/Metadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* Metadata class for storing metadata about a model.
* Is used in Blade views to create <meta> tags.
*
*
* @deprecated Will be merged with Meta class
*/
class Metadata
Expand Down