File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 5
5
use DragonCode \Support \Facades \Filesystem \Directory ;
6
6
use DragonCode \Support \Facades \Filesystem \File ;
7
7
use DragonCode \Support \Facades \Filesystem \Path ;
8
- use DragonCode \Support \Facades \Helpers \Arr ;
9
- use DragonCode \Support \Facades \Helpers \Str ;
10
8
use LaravelLang \StatusGenerator \Processors \Processor ;
11
9
12
10
class Copy extends Processor
@@ -44,9 +42,7 @@ protected function process(string $path, array $files): void
44
42
45
43
protected function files (string $ path ): array
46
44
{
47
- $ files = File::names ($ path , recursive: true );
48
-
49
- return Arr::filter ($ files , fn (string $ filename ) => Str::startsWith ($ filename , 'en ' ));
45
+ return File::names ($ path , recursive: true );
50
46
}
51
47
52
48
protected function tempDirectory (): string
@@ -56,7 +52,10 @@ protected function tempDirectory(): string
56
52
57
53
protected function targetPath (string $ filename ): string
58
54
{
59
- return $ this ->getSourcePath ($ this ->getProjectParameter () . '/ ' . $ this ->getVersionParameter () . '/ ' . $ filename , false );
55
+ return $ this ->getSourcePath (
56
+ $ this ->getProjectParameter () . '/ ' . $ this ->getVersionParameter () . '/ ' . $ filename ,
57
+ false
58
+ );
60
59
}
61
60
62
61
protected function targetDirectory (string $ project , string $ version ): string
You can’t perform that action at this time.
0 commit comments