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 +}