From 6c2bf45bc3af3360e2bdda56b5a5dfc1225b9a59 Mon Sep 17 00:00:00 2001 From: surgiie Date: Wed, 15 Nov 2023 04:54:13 +0000 Subject: [PATCH] Apply formatting changes --- app/Commands/ClearCommand.php | 2 +- app/Commands/RenderCommand.php | 22 ++++++++++------------ version.php | 4 +++- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/app/Commands/ClearCommand.php b/app/Commands/ClearCommand.php index 0cc3b88..90c838b 100644 --- a/app/Commands/ClearCommand.php +++ b/app/Commands/ClearCommand.php @@ -23,7 +23,7 @@ public function handle() $succeeded = Blade::deleteCacheDirectory(); - $this->components->info("Cleared compiled files directory"); + $this->components->info('Cleared compiled files directory'); return $succeeded === false ? 1 : 0; } diff --git a/app/Commands/RenderCommand.php b/app/Commands/RenderCommand.php index b8cda81..cc5ee05 100644 --- a/app/Commands/RenderCommand.php +++ b/app/Commands/RenderCommand.php @@ -2,21 +2,21 @@ namespace App\Commands; -use SplFileInfo; +use App\Support\BaseCommand; use Dotenv\Dotenv; -use Surgiie\Blade\Blade; +use Illuminate\Filesystem\Filesystem; use Illuminate\Support\Arr; use Illuminate\Support\Str; -use App\Support\BaseCommand; use InvalidArgumentException; -use Symfony\Component\Yaml\Yaml; -use function Laravel\Prompts\text; -use Symfony\Component\Finder\Finder; -use Illuminate\Filesystem\Filesystem; +use SplFileInfo; +use Surgiie\Blade\Blade; use Surgiie\Console\Concerns\LoadsEnvFiles; - use Surgiie\Console\Concerns\LoadsJsonFiles; use Surgiie\Console\Rules\FileOrDirectoryMustExist; +use Symfony\Component\Finder\Finder; +use Symfony\Component\Yaml\Yaml; + +use function Laravel\Prompts\text; class RenderCommand extends BaseCommand { @@ -178,7 +178,7 @@ protected function renderFile(string $path, array $variables, string $saveTo): v $this->exit("The rendered file '$saveTo' already exists, use --force to overwrite."); } - if($this->data->get("no-cache")){ + if ($this->data->get('no-cache')) { Blade::deleteCacheDirectory(); } @@ -217,7 +217,7 @@ protected function getDefaultSaveFilePath(string $path): string protected function dryRun(string $path, array $variables = []): static { - if($this->data->get("no-cache")){ + if ($this->data->get('no-cache')) { Blade::deleteCacheDirectory(); } @@ -251,7 +251,6 @@ protected function dryRun(string $path, array $variables = []): static return $this; } - protected function gatherEnvFileVariables(): array { $env = []; @@ -268,7 +267,6 @@ protected function gatherEnvFileVariables(): array return $env; } - protected function normalizeVariableNames(array $vars = []): array { $variables = []; diff --git a/version.php b/version.php index 051e8da..64268b9 100644 --- a/version.php +++ b/version.php @@ -1 +1,3 @@ -