diff --git a/config/markdown.php b/config/markdown.php index 5dcace49..e69ef680 100644 --- a/config/markdown.php +++ b/config/markdown.php @@ -9,4 +9,3 @@ | Markdown related services, as well as change the extensions used. | */ - diff --git a/src/Actions/ServiceActions/HasConfigurableMarkdownFeatures.php b/src/Actions/ServiceActions/HasConfigurableMarkdownFeatures.php index 8261396e..682b452f 100644 --- a/src/Actions/ServiceActions/HasConfigurableMarkdownFeatures.php +++ b/src/Actions/ServiceActions/HasConfigurableMarkdownFeatures.php @@ -8,6 +8,7 @@ /** * Allow the Markdown service to have configurable features. + * * @see HasMarkdownFeatures for global feature management. */ trait HasConfigurableMarkdownFeatures @@ -16,7 +17,7 @@ trait HasConfigurableMarkdownFeatures public function addFeature(string $feature): self { - if (!in_array($feature, $this->features)) { + if (! in_array($feature, $this->features)) { $this->features[] = $feature; } @@ -52,6 +53,5 @@ public function canEnableTorchlight(): bool { return $this->hasFeature('torchlight') || Features::hasTorchlight(); -; } -} \ No newline at end of file +} diff --git a/src/Actions/ServiceActions/HasMarkdownFeatures.php b/src/Actions/ServiceActions/HasMarkdownFeatures.php index 53e10c39..ed73552c 100644 --- a/src/Actions/ServiceActions/HasMarkdownFeatures.php +++ b/src/Actions/ServiceActions/HasMarkdownFeatures.php @@ -3,7 +3,8 @@ namespace Hyde\Framework\Actions\ServiceActions; /** - * Global Markdown Feature Handler + * Global Markdown Feature Handler. + * * @see HasConfigurableMarkdownFeatures for per-object configuration */ trait HasMarkdownFeatures @@ -12,4 +13,4 @@ public static function hasTableOfContents(): bool { return config('hyde.documentationPageTableOfContents.enabled', true); } -} \ No newline at end of file +} diff --git a/src/Actions/ServiceActions/HasTorchlightIntegration.php b/src/Actions/ServiceActions/HasTorchlightIntegration.php index 1127ad04..4f205bc8 100644 --- a/src/Actions/ServiceActions/HasTorchlightIntegration.php +++ b/src/Actions/ServiceActions/HasTorchlightIntegration.php @@ -2,8 +2,6 @@ namespace Hyde\Framework\Actions\ServiceActions; -use Hyde\Framework\Features; - trait HasTorchlightIntegration { protected bool $useTorchlight; @@ -22,4 +20,4 @@ protected function injectTorchlightAttribution(): string 'Syntax highlighted by torchlight.dev' )); } -} \ No newline at end of file +} diff --git a/src/Markdown.php b/src/Markdown.php index d066230d..93826c50 100644 --- a/src/Markdown.php +++ b/src/Markdown.php @@ -8,9 +8,10 @@ * General interface for Markdown services. * * @see \Hyde\Framework\Services\MarkdownConverterService + * * @method static hasTableOfContents() */ class Markdown { use HasMarkdownFeatures; -} \ No newline at end of file +} diff --git a/src/Services/MarkdownConverterService.php b/src/Services/MarkdownConverterService.php index 38bed060..c7dff97b 100644 --- a/src/Services/MarkdownConverterService.php +++ b/src/Services/MarkdownConverterService.php @@ -53,7 +53,7 @@ public function parse(): string public function addExtension(string $extensionClassName): void { - if (!in_array($extensionClassName, $this->extensions)) { + if (! in_array($extensionClassName, $this->extensions)) { $this->extensions[] = $extensionClassName; } }