@@ -23,17 +23,17 @@ public function handle()
23
23
{
24
24
foreach ($ this ->getFiles () as $ file ) {
25
25
$ targetDirectory = resource_path ('lang ' );
26
- $ mainFile = $ targetDirectory .'/ ' .$ file ->getBasename ();
26
+ $ targetPath = $ targetDirectory .'/ ' .$ file ->getBasename ();
27
27
if ($ this ->files ->missing ($ targetDirectory )) {
28
28
$ this ->files ->makeDirectory ($ targetDirectory );
29
29
}
30
- if ($ this ->files ->missing ($ mainFile )) {
31
- $ this ->files ->copy ($ file ->getPathname (), $ mainFile );
32
- $ this ->info ($ mainFile .' created. ' );
30
+ if ($ this ->files ->missing ($ targetPath )) {
31
+ $ this ->files ->copy ($ file ->getPathname (), $ targetPath );
32
+ $ this ->info ($ targetPath .' created. ' );
33
33
continue ;
34
34
}
35
35
36
- $ existingTranslations = $ this ->getTranslations ($ mainFile );
36
+ $ existingTranslations = $ this ->getTranslations ($ targetPath );
37
37
$ newTranslations = $ this ->getTranslations ($ file );
38
38
39
39
if ($ this ->option ('force ' )) {
@@ -43,9 +43,9 @@ public function handle()
43
43
}
44
44
ksort ($ translations , SORT_STRING | SORT_FLAG_CASE );
45
45
46
- $ this ->put ($ mainFile , $ translations );
46
+ $ this ->put ($ targetPath , $ translations );
47
47
48
- $ this ->info (count ($ translations ) - count ($ existingTranslations ).' translations added in ' .$ mainFile .'. ' );
48
+ $ this ->info (count ($ translations ) - count ($ existingTranslations ).' translations added in ' .$ targetPath .'. ' );
49
49
}
50
50
}
51
51
}
0 commit comments