Skip to content

Commit e41e219

Browse files
committed
fixed duplicate importers
1 parent 2734da2 commit e41e219

5 files changed

+1
-6
lines changed

src/GettextPOGenerator.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ private function addStringsFromJsonFiles($translations)
179179

180180
// Load each JSON file to get source strings
181181
foreach ($this->JsonFiles() as $jsonFile) {
182-
$jsonTranslations = json_decode(file_get_contents($jsonFile), true);
182+
$jsonTranslations = json_decode(file_get_contents($jsonFile), true);
183183
if (!is_array($jsonTranslations)) {
184184
throw new \Exception("The file '$jsonFile' is not valid JSON.'");
185185
}

src/Service/SourceEditSync.php

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Tio\Laravel\Service;
44

5-
use Illuminate\Support\Str;
65
use Tio\Laravel\SourceSaver;
76
use Carbon\Carbon;
87
use GuzzleHttp\Client;

src/SourceSaver.php

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Tio\Laravel;
44

5-
use Illuminate\Support\Str;
65
use Tio\Laravel\PrettyVarExport;
76
use Illuminate\Contracts\Foundation\Application;
87
use Illuminate\Filesystem\Filesystem;

src/TranslationExtractor.php

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use Illuminate\Contracts\Foundation\Application;
66
use Illuminate\Filesystem\Filesystem;
7-
use Illuminate\Support\Arr;
87
use Illuminate\Translation\Translator;
98
use Illuminate\Support\Arr;
109
use SplFileInfo;

src/TranslationSaver.php

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
namespace Tio\Laravel;
44

55
use Illuminate\Contracts\Foundation\Application;
6-
use Illuminate\Support\Arr;
7-
use Illuminate\Support\Str;
86
use Tio\Laravel\PrettyVarExport;
97
use Illuminate\Filesystem\Filesystem;
108
use Illuminate\Translation\Translator;

0 commit comments

Comments
 (0)