Skip to content

Commit

Permalink
code beautify
Browse files Browse the repository at this point in the history
  • Loading branch information
tanmuhittin committed Mar 28, 2019
1 parent 653f7db commit d12be66
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/commands/TranslateFilesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ public function __construct()
}

/**
* Translate from base language to other available languages
*
* @return mixed
* @throws \Exception
*/
public function handle()
{
Expand Down Expand Up @@ -124,7 +122,7 @@ private function translate_php_array_files($locale)
foreach ($files as $file) {
$file = substr($file, 0, -4);
$already_translateds = [];
if (file_exists(resource_path('lang/' . $locale . '/' . $file . '.php'))) { //&& !$this->option('force')
if (file_exists(resource_path('lang/' . $locale . '/' . $file . '.php'))) {
$this->line('File already exists: lang/' . $locale . '/' . $file . '.php. Checking missing translations');
$already_translateds = trans($file, [], $locale);
}
Expand Down

0 comments on commit d12be66

Please sign in to comment.