@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | /** Get all the configuration files for the application. */ |
22 | 22 | protected function getConfigurationFiles(Application $app): array |
23 | 23 | { |
24 | - return (array) tap(parent::getConfigurationFiles($app), function (array &$files) use ($app): void { |
|
24 | + return (array) tap(parent::getConfigurationFiles($app), function(array &$files) use ($app): void { |
|
25 | 25 | // Inject our custom config file which is stored in `app/config.php`. |
26 | 26 | $files['app'] = $app->basePath().DIRECTORY_SEPARATOR.'app'.DIRECTORY_SEPARATOR.'config.php'; |
27 | 27 | |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | // we need to adjust the path to use the bundled static Phar config file. |
74 | 74 | |
75 | 75 | /** @var array{app: string} $files */ |
76 | - if (Phar::running() && (! is_dir($files['app']))) { |
|
76 | + if (Phar::running() && (!is_dir($files['app']))) { |
|
77 | 77 | $files['app'] = dirname(__DIR__, 6).DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'app.php'; |
78 | 78 | } |
79 | 79 | } |
@@ -28,7 +28,7 @@ |
||
28 | 28 | // the default LoadConfiguration bootstrapper class with our implementation. |
29 | 29 | // We do this by swapping out the LoadConfiguration class with our own. |
30 | 30 | |
31 | - return array_values((array) tap(array_combine($bootstrappers, $bootstrappers), function (array &$array): void { |
|
31 | + return array_values((array) tap(array_combine($bootstrappers, $bootstrappers), function(array &$array): void { |
|
32 | 32 | $array[\LaravelZero\Framework\Bootstrap\LoadConfiguration::class] = \Hyde\Foundation\Internal\LoadConfiguration::class; |
33 | 33 | })); |
34 | 34 | } |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | return $this->isInstanceOf(MarkdownPost::class) |
91 | 91 | || $this->searchForHiddenInFrontMatter() |
92 | 92 | || in_array($this->routeKey, Config::getArray('hyde.navigation.exclude', ['404'])) |
93 | - || (! $this->isInstanceOf(DocumentationPage::class) && $this->pageIsInSubdirectory() && ($this->getSubdirectoryConfiguration() === 'hidden')) |
|
93 | + || (!$this->isInstanceOf(DocumentationPage::class) && $this->pageIsInSubdirectory() && ($this->getSubdirectoryConfiguration() === 'hidden')) |
|
94 | 94 | && (basename($this->identifier) !== 'index'); |
95 | 95 | } |
96 | 96 | |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | |
197 | 197 | protected function invert(?bool $value): ?bool |
198 | 198 | { |
199 | - return $value === null ? null : ! $value; |
|
199 | + return $value === null ? null : !$value; |
|
200 | 200 | } |
201 | 201 | |
202 | 202 | protected function offset(?int $value, int $offset): ?int |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | { |
217 | 217 | $storagePath = Hyde::mediaPath($this->source); |
218 | 218 | |
219 | - if (! file_exists($storagePath)) { |
|
219 | + if (!file_exists($storagePath)) { |
|
220 | 220 | throw new FileNotFoundException(sprintf('Image at %s does not exist', Hyde::pathToRelative($storagePath))); |
221 | 221 | } |
222 | 222 | |
@@ -228,7 +228,7 @@ discard block |
||
228 | 228 | // TODO: We may want to globalize this check in the config, but for now, |
229 | 229 | // we just check the server arguments and skip remote requests if |
230 | 230 | // the --no-api flag is present (in the build command call) |
231 | - if (! (isset($_SERVER['argv']) && in_array('--no-api', $_SERVER['argv'], true))) { |
|
231 | + if (!(isset($_SERVER['argv']) && in_array('--no-api', $_SERVER['argv'], true))) { |
|
232 | 232 | $headers = Http::withHeaders([ |
233 | 233 | 'User-Agent' => Config::getString('hyde.http_user_agent', 'RSS Request Client'), |
234 | 234 | ])->head($this->getSource())->headers(); |
@@ -67,7 +67,7 @@ |
||
67 | 67 | |
68 | 68 | public function injectTailwindConfig(): string |
69 | 69 | { |
70 | - if (! file_exists(Hyde::path('tailwind.config.js'))) { |
|
70 | + if (!file_exists(Hyde::path('tailwind.config.js'))) { |
|
71 | 71 | return ''; |
72 | 72 | } |
73 | 73 |