@@ -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 | } |
@@ -137,7 +137,7 @@ |
||
137 | 137 | $string = trim($string); |
138 | 138 | |
139 | 139 | // Check if string is an array |
140 | - if (! static::isValueArrayString($string)) { |
|
140 | + if (!static::isValueArrayString($string)) { |
|
141 | 141 | throw new \RuntimeException('Failed parsing BladeMatter array. Input string must follow array syntax.'); |
142 | 142 | } |
143 | 143 |
@@ -16,7 +16,7 @@ |
||
16 | 16 | return '<link rel="'.e($this->rel).'" href="'.e($this->href).'">'; |
17 | 17 | } |
18 | 18 | |
19 | - $attributes = collect($this->attr)->map(function ($value, $key) { |
|
19 | + $attributes = collect($this->attr)->map(function($value, $key) { |
|
20 | 20 | return e($key).'="'.e($value).'"'; |
21 | 21 | })->implode(' '); |
22 | 22 |
@@ -2,7 +2,7 @@ discard block |
||
2 | 2 | |
3 | 3 | use Illuminate\Support\Facades\File; |
4 | 4 | |
5 | -if (! function_exists('unlinkIfExists')) { |
|
5 | +if (!function_exists('unlinkIfExists')) { |
|
6 | 6 | function unlinkIfExists(string $filepath): void |
7 | 7 | { |
8 | 8 | if (file_exists($filepath)) { |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | } |
12 | 12 | } |
13 | 13 | |
14 | -if (! function_exists('backupDirectory')) { |
|
14 | +if (!function_exists('backupDirectory')) { |
|
15 | 15 | /** @deprecated v0.60.x - You should not run tests in a production environment. */ |
16 | 16 | function backupDirectory(string $directory): void |
17 | 17 | { |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | } |
22 | 22 | } |
23 | 23 | |
24 | -if (! function_exists('restoreDirectory')) { |
|
24 | +if (!function_exists('restoreDirectory')) { |
|
25 | 25 | /** @deprecated v0.60.x - You should not run tests in a production environment. */ |
26 | 26 | function restoreDirectory(string $directory): void |
27 | 27 | { |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | } |
33 | 33 | } |
34 | 34 | |
35 | -if (! function_exists('deleteDirectory')) { |
|
35 | +if (!function_exists('deleteDirectory')) { |
|
36 | 36 | function deleteDirectory(string $directory): void |
37 | 37 | { |
38 | 38 | if (file_exists($directory)) { |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | } |
42 | 42 | } |
43 | 43 | |
44 | -if (! function_exists('unlinkUnlessDefault')) { |
|
44 | +if (!function_exists('unlinkUnlessDefault')) { |
|
45 | 45 | function unlinkUnlessDefault(string $filepath): void |
46 | 46 | { |
47 | 47 | $protected = [ |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | '.gitkeep', |
52 | 52 | ]; |
53 | 53 | |
54 | - if (! in_array(basename($filepath), $protected)) { |
|
54 | + if (!in_array(basename($filepath), $protected)) { |
|
55 | 55 | unlink($filepath); |
56 | 56 | } |
57 | 57 | } |
@@ -149,7 +149,7 @@ |
||
149 | 149 | |
150 | 150 | protected function needsToBeBooted(): void |
151 | 151 | { |
152 | - if (! $this->booted) { |
|
152 | + if (!$this->booted) { |
|
153 | 153 | $this->boot(); |
154 | 154 | } |
155 | 155 | } |
@@ -14,7 +14,7 @@ |
||
14 | 14 | */ |
15 | 15 | public static function needsDirectory(string $directory): void |
16 | 16 | { |
17 | - if (! file_exists($directory)) { |
|
17 | + if (!file_exists($directory)) { |
|
18 | 18 | mkdir($directory, recursive: true); |
19 | 19 | } |
20 | 20 | } |
@@ -50,7 +50,7 @@ |
||
50 | 50 | { |
51 | 51 | /** @var DocumentationPage $page */ |
52 | 52 | foreach (DocumentationPage::all() as $page) { |
53 | - if (! in_array($page->identifier, config('docs.exclude_from_search', []))) { |
|
53 | + if (!in_array($page->identifier, config('docs.exclude_from_search', []))) { |
|
54 | 54 | $this->searchIndex->push( |
55 | 55 | $this->generatePageEntry($page) |
56 | 56 | ); |
@@ -2,7 +2,7 @@ discard block |
||
2 | 2 | |
3 | 3 | use Hyde\Framework\HydeKernel; |
4 | 4 | |
5 | -if (! function_exists('hyde')) { |
|
5 | +if (!function_exists('hyde')) { |
|
6 | 6 | /** |
7 | 7 | * Get the available HydeKernel instance. |
8 | 8 | * |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | } |
15 | 15 | } |
16 | 16 | |
17 | -if (! function_exists('unslash')) { |
|
17 | +if (!function_exists('unslash')) { |
|
18 | 18 | /** |
19 | 19 | * Remove trailing slashes from the start and end of a string. |
20 | 20 | * |
@@ -17,7 +17,7 @@ |
||
17 | 17 | /* |
18 | 18 | * Enable auto-discovery. |
19 | 19 | */ |
20 | - $this->app->singleton(PackageManifest::class, function () { |
|
20 | + $this->app->singleton(PackageManifest::class, function() { |
|
21 | 21 | return new PackageManifest( |
22 | 22 | new Filesystem, |
23 | 23 | $this->basePath(), |