@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | { |
| 26 | 26 | $path = static::path($filename); |
| 27 | 27 | |
| 28 | - if (! file_exists($path)) { |
|
| 28 | + if (!file_exists($path)) { |
|
| 29 | 29 | return $default; |
| 30 | 30 | } |
| 31 | 31 | |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | { |
| 38 | 38 | $path = static::path(basename($filename, '.md').'.md'); |
| 39 | 39 | |
| 40 | - if (! file_exists($path)) { |
|
| 40 | + if (!file_exists($path)) { |
|
| 41 | 41 | return $default === null ? null : Markdown::parse($default); |
| 42 | 42 | } |
| 43 | 43 | |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | { |
| 50 | 50 | $path = static::path(basename($filename, '.blade.php').'.blade.php'); |
| 51 | 51 | |
| 52 | - if (! file_exists($path)) { |
|
| 52 | + if (!file_exists($path)) { |
|
| 53 | 53 | return $default === null ? null : Blade::render($default); |
| 54 | 54 | } |
| 55 | 55 | |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | |
| 59 | 59 | protected static function needsDirectory(string $directory): void |
| 60 | 60 | { |
| 61 | - if (! file_exists($directory)) { |
|
| 61 | + if (!file_exists($directory)) { |
|
| 62 | 62 | mkdir($directory, recursive: true); |
| 63 | 63 | } |
| 64 | 64 | } |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | { |
| 9 | 9 | public function register(): void |
| 10 | 10 | { |
| 11 | - $this->app->singleton(MarkdownConverter::class, function () { |
|
| 11 | + $this->app->singleton(MarkdownConverter::class, function() { |
|
| 12 | 12 | return new MarkdownConverter(); |
| 13 | 13 | }); |
| 14 | 14 | } |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | |
| 50 | 50 | public function processInput(): static |
| 51 | 51 | { |
| 52 | - $this->output = implode("\n", array_map(function ($line) { |
|
| 52 | + $this->output = implode("\n", array_map(function($line) { |
|
| 53 | 53 | return $this->expandShortcode($line); |
| 54 | 54 | }, explode("\n", $this->input))); |
| 55 | 55 | |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | |
| 55 | 55 | public function addExtension(string $extensionClassName): void |
| 56 | 56 | { |
| 57 | - if (! in_array($extensionClassName, $this->extensions)) { |
|
| 57 | + if (!in_array($extensionClassName, $this->extensions)) { |
|
| 58 | 58 | $this->extensions[] = $extensionClassName; |
| 59 | 59 | } |
| 60 | 60 | } |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | |
| 157 | 157 | public function addFeature(string $feature): static |
| 158 | 158 | { |
| 159 | - if (! in_array($feature, $this->features)) { |
|
| 159 | + if (!in_array($feature, $this->features)) { |
|
| 160 | 160 | $this->features[] = $feature; |
| 161 | 161 | } |
| 162 | 162 | |
@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | |
| 209 | 209 | protected function determineIfTorchlightAttributionShouldBeInjected(): bool |
| 210 | 210 | { |
| 211 | - return ! $this->isDocumentationPage() |
|
| 211 | + return !$this->isDocumentationPage() |
|
| 212 | 212 | && config('torchlight.attribution.enabled', true) |
| 213 | 213 | && str_contains($this->html, 'Syntax highlighted by torchlight.dev'); |
| 214 | 214 | } |