Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone committed Dec 12, 2024
1 parent 6dfb707 commit b1b7dd0
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/Foundation/Console/PurgeSkeletonCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,10 @@ public function handle(Filesystem $filesystem, ConfigContract $config)

['files' => $files, 'directories' => $directories] = $config->getPurgeAttributes();

$workingPath = $this->laravel->basePath();

$environmentFile = Env::get('TESTBENCH_ENVIRONMENT_FILE_USING', '.env');

(new Actions\DeleteFiles(
filesystem: $filesystem,
workingPath: $workingPath,
))->handle(
Collection::make([
$environmentFile,
Expand All @@ -62,7 +59,6 @@ public function handle(Filesystem $filesystem, ConfigContract $config)

(new Actions\DeleteFiles(
filesystem: $filesystem,
workingPath: $workingPath,
))->handle(
LazyCollection::make(function () use ($filesystem) {
yield $this->laravel->basePath(join_paths('database', 'database.sqlite'));
Expand All @@ -76,7 +72,6 @@ public function handle(Filesystem $filesystem, ConfigContract $config)
(new Actions\DeleteFiles(
filesystem: $filesystem,
components: $this->components,
workingPath: $workingPath,
))->handle(
LazyCollection::make($files)
->map(fn ($file) => $this->laravel->basePath($file))
Expand All @@ -91,7 +86,6 @@ public function handle(Filesystem $filesystem, ConfigContract $config)
(new Actions\DeleteDirectories(
filesystem: $filesystem,
components: $this->components,
workingPath: $workingPath,
))->handle(
Collection::make($directories)
->map(fn ($directory) => $this->laravel->basePath($directory))
Expand Down

0 comments on commit b1b7dd0

Please sign in to comment.