@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | { |
15 | 15 | $lang = $this->argument('lang'); |
16 | 16 | |
17 | - if(! file_exists('resources/lang/'. $lang . '.json')) { |
|
17 | + if (!file_exists('resources/lang/' . $lang . '.json')) { |
|
18 | 18 | $this->error($lang . '.json doesn\'t exist'); |
19 | 19 | return; |
20 | 20 | } |
@@ -22,9 +22,9 @@ discard block |
||
22 | 22 | $jsonFile = file_get_contents('resources/lang/' . $lang . '.json'); |
23 | 23 | |
24 | 24 | $count = collect(json_decode($jsonFile, true)) |
25 | - ->filter(function($value, $key){ |
|
25 | + ->filter(function($value, $key) { |
|
26 | 26 | return $key === $value; |
27 | - })->each(function($value){ |
|
27 | + })->each(function($value) { |
|
28 | 28 | $this->line($value); |
29 | 29 | })->count(); |
30 | 30 |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | $translatables = (new SearchService())->getTranslatableStrings(config('translation.generator.patterns')); |
25 | 25 | |
26 | 26 | $lang = $this->argument('lang'); |
27 | - $fileName = 'resources/lang/'.$lang.'.json'; |
|
27 | + $fileName = 'resources/lang/' . $lang . '.json'; |
|
28 | 28 | $jsonFile = file_get_contents($fileName); |
29 | 29 | $translations = json_decode($jsonFile, true); |
30 | 30 | |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | } |
36 | 36 | } |
37 | 37 | |
38 | - $content = json_encode($translations, JSON_PRETTY_PRINT + JSON_UNESCAPED_UNICODE + JSON_UNESCAPED_SLASHES); |
|
38 | + $content = json_encode($translations, JSON_PRETTY_PRINT+JSON_UNESCAPED_UNICODE+JSON_UNESCAPED_SLASHES); |
|
39 | 39 | file_put_contents($fileName, $content); |
40 | 40 | |
41 | 41 | $isUpload = $this->option('upload'); |
@@ -90,7 +90,7 @@ |
||
90 | 90 | |
91 | 91 | $this->output->writeln(sprintf('[LOKALISE] Downloading translations from bundle url: %s', $bundleUrl)); |
92 | 92 | |
93 | - $path = storage_path('app').'locale.zip'; |
|
93 | + $path = storage_path('app') . 'locale.zip'; |
|
94 | 94 | $file = fopen($path, 'wb'); |
95 | 95 | $client = new Client(); |
96 | 96 | $client->get($bundleUrl, ['save_to' => $file]); |
@@ -32,7 +32,7 @@ |
||
32 | 32 | { |
33 | 33 | $this->publishes( |
34 | 34 | [ |
35 | - __DIR__.'/../config/translation.php' => config_path('translation.php'), |
|
35 | + __DIR__ . '/../config/translation.php' => config_path('translation.php'), |
|
36 | 36 | ] |
37 | 37 | ); |
38 | 38 | } |