From 4b355326479b4641e1d68a0c994563206fbec6ca Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Tue, 17 May 2022 17:30:32 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Meta.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/Meta.php b/src/Meta.php index 49b124e2..1d51c263 100644 --- a/src/Meta.php +++ b/src/Meta.php @@ -7,8 +7,9 @@ class Meta public static function name(string $name, string $content, bool $ifConditionIsMet = true): ?string { if ($ifConditionIsMet) { - return ''; + return ''; } + return null; } @@ -16,8 +17,10 @@ public static function property(string $property, string $content, bool $ifCondi { if ($ifConditionIsMet) { $property = static::formatOpenGraphProperty($property); - return ''; + + return ''; } + return null; } @@ -38,6 +41,6 @@ public static function getGlobalMeta(): array protected static function formatOpenGraphProperty(string $property): string { - return str_starts_with('og:', $property) ? $property : 'og:' . $property; + return str_starts_with('og:', $property) ? $property : 'og:'.$property; } -} \ No newline at end of file +}