@@ -22,7 +22,8 @@ |
||
22 | 22 | |
23 | 23 | private function registerFacade() |
24 | 24 | { |
25 | - $this->app->bind('filesystem',function() { |
|
25 | + $this->app->bind('filesystem',function() |
|
26 | + { |
|
26 | 27 | return new FileSystem(); |
27 | 28 | }); |
28 | 29 | } |
@@ -3,7 +3,7 @@ |
||
3 | 3 | namespace Maestriam\FileSystem\Foundation\Drive; |
4 | 4 | |
5 | 5 | abstract class PathSanitizer |
6 | -{ |
|
6 | +{ |
|
7 | 7 | /** |
8 | 8 | * Ajusta uma string de caminho para |
9 | 9 | * |
@@ -5,7 +5,7 @@ |
||
5 | 5 | use Maestriam\FileSystem\Concerns\FluentGetter; |
6 | 6 | |
7 | 7 | class StructureDirectory |
8 | -{ |
|
8 | +{ |
|
9 | 9 | use FluentGetter; |
10 | 10 | |
11 | 11 | /** |
@@ -6,7 +6,7 @@ |
||
6 | 6 | use Maestriam\FileSystem\Foundation\Drive\StructureDirectory; |
7 | 7 | |
8 | 8 | class PathFinder |
9 | -{ |
|
9 | +{ |
|
10 | 10 | private array $structureDirectory; |
11 | 11 | |
12 | 12 | /** |
@@ -8,7 +8,9 @@ |
||
8 | 8 | |
9 | 9 | static public function read(string $path, int $level) : array |
10 | 10 | { |
11 | - if (! is_dir($path)) return []; |
|
11 | + if (! is_dir($path)) { |
|
12 | + return []; |
|
13 | + } |
|
12 | 14 | |
13 | 15 | self::scan($path, 1, $level); |
14 | 16 |