@@ -20,8 +20,8 @@ |
||
| 20 | 20 | $translations = json_decode($jsonFile, true); |
| 21 | 21 | |
| 22 | 22 | foreach ($translatables as $translatable) { |
| 23 | - $translatable = str_replace('\\','', $translatable); |
|
| 24 | - if(!array_key_exists($translatable, $translations)) |
|
| 23 | + $translatable = str_replace('\\', '', $translatable); |
|
| 24 | + if (!array_key_exists($translatable, $translations)) |
|
| 25 | 25 | { |
| 26 | 26 | $translations[$translatable] = $translatable; |
| 27 | 27 | } |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | public function boot() |
| 29 | 29 | { |
| 30 | 30 | $this->publishes([ |
| 31 | - __DIR__.'/../config/translation.php' => config_path('translation.php'), |
|
| 31 | + __DIR__ . '/../config/translation.php' => config_path('translation.php'), |
|
| 32 | 32 | ]); |
| 33 | 33 | } |
| 34 | 34 | } |
| 35 | 35 | \ No newline at end of file |
@@ -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 | |