Skip to content

Commit 728362a

Browse files
committed
Merge branch 'master' of github.com:spatie/laravel-directory-cleanup
2 parents b2a3099 + ec5102b commit 728362a

File tree

4 files changed

+6
-9
lines changed

4 files changed

+6
-9
lines changed

config/laravel-directory-cleanup.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22

33
return [
44

5-
65
'directories' => [
7-
8-
/**
6+
7+
/*
98
* Here you can specify which directories need to be cleanup. All files older than
109
* the specified amount of minutes will be deleted.
1110
*/

src/DirectoryCleaner.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
namespace Spatie\DirectoryCleanup;
44

55
use Carbon\Carbon;
6-
use Illuminate\Filesystem\Filesystem;
76
use Illuminate\Support\Collection;
7+
use Illuminate\Filesystem\Filesystem;
88

99
class DirectoryCleaner
1010
{

src/DirectoryCleanupCommand.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class DirectoryCleanupCommand extends Command
88
{
99
/** @var string */
1010
protected $signature = 'clean:directories';
11-
11+
1212
/** @var string */
1313
protected $description = 'Clean up directories.';
1414

@@ -19,9 +19,7 @@ public function handle()
1919
$directories = collect(config('laravel-directory-cleanup.directories'));
2020

2121
collect($directories)->each(function ($config, $directory) {
22-
2322
$this->deleteFilesIfOlderThanMinutes($directory, $config['deleteAllOlderThanMinutes']);
24-
2523
});
2624

2725
$this->comment('All done!');

tests/TestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
namespace Spatie\DirectoryCleanup\Test;
44

5-
use Spatie\DirectoryCleanup\DirectoryCleanupServiceProvider;
6-
use Orchestra\Testbench\TestCase as OrchestraTestCase;
75
use File;
6+
use Orchestra\Testbench\TestCase as OrchestraTestCase;
7+
use Spatie\DirectoryCleanup\DirectoryCleanupServiceProvider;
88

99
class TestCase extends OrchestraTestCase
1010
{

0 commit comments

Comments
 (0)