@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | |
| 41 | 41 | public function compileStaticPages(): void |
| 42 | 42 | { |
| 43 | - collect(Hyde::getDiscoveredPageTypes())->each(function (string $pageClass) { |
|
| 43 | + collect(Hyde::getDiscoveredPageTypes())->each(function(string $pageClass) { |
|
| 44 | 44 | $this->compilePagesForClass($pageClass); |
| 45 | 45 | }); |
| 46 | 46 | } |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | $this->needsDirectory(Hyde::sitePath('media')); |
| 63 | 63 | |
| 64 | 64 | $this->comment('Transferring Media Assets...'); |
| 65 | - $this->withProgressBar(DiscoveryService::getMediaAssetFiles(), function (string $filepath): void { |
|
| 65 | + $this->withProgressBar(DiscoveryService::getMediaAssetFiles(), function(string $filepath): void { |
|
| 66 | 66 | $sitePath = Hyde::sitePath('media/'.unslash(Str::after($filepath, Hyde::path('_media')))); |
| 67 | 67 | $this->needsParentDirectory($sitePath); |
| 68 | 68 | copy($filepath, $sitePath); |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | |
| 81 | 81 | $collection = $this->router->getRoutes($pageClass); |
| 82 | 82 | |
| 83 | - $this->withProgressBar($collection, function (Route $route): void { |
|
| 83 | + $this->withProgressBar($collection, function(Route $route): void { |
|
| 84 | 84 | (new StaticPageBuilder($route->getPage()))->__invoke(); |
| 85 | 85 | }); |
| 86 | 86 | |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | |
| 95 | 95 | protected function isItSafeToCleanOutputDirectory(): bool |
| 96 | 96 | { |
| 97 | - if (! $this->isOutputDirectoryWhitelisted() && ! $this->askIfUnsafeDirectoryShouldBeEmptied()) { |
|
| 97 | + if (!$this->isOutputDirectoryWhitelisted() && !$this->askIfUnsafeDirectoryShouldBeEmptied()) { |
|
| 98 | 98 | $this->info('Output directory will not be emptied.'); |
| 99 | 99 | |
| 100 | 100 | return false; |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | |
| 21 | 21 | public function line(string $message = ''): self |
| 22 | 22 | { |
| 23 | - return $this->write($message . PHP_EOL); |
|
| 23 | + return $this->write($message.PHP_EOL); |
|
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | public function newline(int $count = 1): self |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | } |
| 55 | 55 | protected function ansi(string $string, string $color): string |
| 56 | 56 | { |
| 57 | - return "\033[" . $color . 'm' . $string . "\033[0m"; |
|
| 57 | + return "\033[".$color.'m'.$string."\033[0m"; |
|
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | protected function black(string $string): string |