@@ -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 | } |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | { |
| 50 | 50 | /** @var DocumentationPage $page */ |
| 51 | 51 | foreach (DocumentationPage::all() as $page) { |
| 52 | - if (! in_array($page->identifier, config('docs.exclude_from_search', []))) { |
|
| 52 | + if (!in_array($page->identifier, config('docs.exclude_from_search', []))) { |
|
| 53 | 53 | $this->searchIndex->push( |
| 54 | 54 | $this->generatePageObject($page) |
| 55 | 55 | ); |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | { |
| 25 | 25 | $path = static::path($filename); |
| 26 | 26 | |
| 27 | - if (! file_exists($path)) { |
|
| 27 | + if (!file_exists($path)) { |
|
| 28 | 28 | return $default; |
| 29 | 29 | } |
| 30 | 30 | |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | { |
| 37 | 37 | $path = static::path(basename($filename, '.md').'.md'); |
| 38 | 38 | |
| 39 | - if (! file_exists($path)) { |
|
| 39 | + if (!file_exists($path)) { |
|
| 40 | 40 | return $default === null ? null : Markdown::render($default); |
| 41 | 41 | } |
| 42 | 42 | |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | { |
| 49 | 49 | $path = static::path(basename($filename, '.blade.php').'.blade.php'); |
| 50 | 50 | |
| 51 | - if (! file_exists($path)) { |
|
| 51 | + if (!file_exists($path)) { |
|
| 52 | 52 | return $default === null ? null : Blade::render($default); |
| 53 | 53 | } |
| 54 | 54 | |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | |
| 58 | 58 | protected static function needsDirectory(string $directory): void |
| 59 | 59 | { |
| 60 | - if (! file_exists($directory)) { |
|
| 60 | + if (!file_exists($directory)) { |
|
| 61 | 61 | mkdir($directory, recursive: true); |
| 62 | 62 | } |
| 63 | 63 | } |
@@ -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 | |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | { |
| 50 | 50 | $orderIndexArray = config('docs.sidebar_order', []); |
| 51 | 51 | |
| 52 | - if (! in_array($this->identifier, $orderIndexArray)) { |
|
| 52 | + if (!in_array($this->identifier, $orderIndexArray)) { |
|
| 53 | 53 | return 500; |
| 54 | 54 | } |
| 55 | 55 | |
@@ -38,11 +38,11 @@ |
||
| 38 | 38 | |
| 39 | 39 | protected function makeCanonicalUrl(): ?string |
| 40 | 40 | { |
| 41 | - if (! empty($this->matter('canonicalUrl'))) { |
|
| 41 | + if (!empty($this->matter('canonicalUrl'))) { |
|
| 42 | 42 | return $this->matter('canonicalUrl'); |
| 43 | 43 | } |
| 44 | 44 | |
| 45 | - if (Hyde::hasSiteUrl() && ! empty($this->identifier)) { |
|
| 45 | + if (Hyde::hasSiteUrl() && !empty($this->identifier)) { |
|
| 46 | 46 | return $this->getRoute()->getQualifiedUrl(); |
| 47 | 47 | } |
| 48 | 48 | |
@@ -138,7 +138,7 @@ |
||
| 138 | 138 | |
| 139 | 139 | public function getLink(): string |
| 140 | 140 | { |
| 141 | - if (! $this->getSource()) { |
|
| 141 | + if (!$this->getSource()) { |
|
| 142 | 142 | return ''; |
| 143 | 143 | } |
| 144 | 144 | |
@@ -67,7 +67,7 @@ |
||
| 67 | 67 | { |
| 68 | 68 | $path = Hyde::path('_media/'.$this->image->getSource()); |
| 69 | 69 | |
| 70 | - if (! file_exists($path)) { |
|
| 70 | + if (!file_exists($path)) { |
|
| 71 | 71 | $this->write(' > <comment>Warning:</comment> Could not find image file at '.$path.'!'); |
| 72 | 72 | $this->write(' <fg=gray> Using default content length of 0. '.'</>'); |
| 73 | 73 | |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | return property_exists($this, $key) || $this->matter->has($key); |
| 129 | 129 | } |
| 130 | 130 | |
| 131 | - return ! blank($this->get($key)); |
|
| 131 | + return !blank($this->get($key)); |
|
| 132 | 132 | } |
| 133 | 133 | |
| 134 | 134 | /** @inheritDoc */ |
@@ -183,7 +183,7 @@ discard block |
||
| 183 | 183 | |
| 184 | 184 | public function showInNavigation(): bool |
| 185 | 185 | { |
| 186 | - return ! $this->navigation['hidden']; |
|
| 186 | + return !$this->navigation['hidden']; |
|
| 187 | 187 | } |
| 188 | 188 | |
| 189 | 189 | public function navigationMenuPriority(): int |