@@ -49,7 +49,6 @@ |
||
49 | 49 | /** |
50 | 50 | * Compose the phpunit command to be ran in order to perform the extension tests. |
51 | 51 | * |
52 | - * @param string|null $extensionToRun |
|
53 | 52 | * @return string |
54 | 53 | */ |
55 | 54 | protected function makeCommand() |
@@ -2,10 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace WeAreNeopix\LaravelModelTranslation\Drivers\MySQL; |
4 | 4 | |
5 | +use Illuminate\Database\Eloquent\Builder; |
|
6 | +use Illuminate\Database\Eloquent\Model; |
|
5 | 7 | use Illuminate\Support\Collection; |
6 | 8 | use Illuminate\Support\Facades\DB; |
7 | -use Illuminate\Database\Eloquent\Model; |
|
8 | -use Illuminate\Database\Eloquent\Builder; |
|
9 | 9 | use WeAreNeopix\LaravelModelTranslation\Contracts\TranslationDriver; |
10 | 10 | |
11 | 11 | class MySQLTranslationDriver implements TranslationDriver |
@@ -2,13 +2,13 @@ |
||
2 | 2 | |
3 | 3 | namespace WeAreNeopix\LaravelModelTranslation; |
4 | 4 | |
5 | +use Illuminate\Database\Eloquent\Collection; |
|
5 | 6 | use Illuminate\Database\Eloquent\Model; |
7 | +use Illuminate\Filesystem\FilesystemAdapter as StorageDisk; |
|
6 | 8 | use Illuminate\Support\Facades\Storage; |
7 | 9 | use Illuminate\Support\ServiceProvider; |
8 | -use Illuminate\Database\Eloquent\Collection; |
|
9 | -use Illuminate\Filesystem\FilesystemAdapter as StorageDisk; |
|
10 | -use WeAreNeopix\LaravelModelTranslation\Drivers\JSONTranslationDriver; |
|
11 | 10 | use WeAreNeopix\LaravelModelTranslation\Commands\TestTranslationExtensions; |
11 | +use WeAreNeopix\LaravelModelTranslation\Drivers\JSONTranslationDriver; |
|
12 | 12 | |
13 | 13 | class ModelTranslationServiceProvider extends ServiceProvider |
14 | 14 | { |
@@ -252,7 +252,7 @@ |
||
252 | 252 | * Remove all translations from the persistent storage. |
253 | 253 | * This is called after the model is deleted. |
254 | 254 | * |
255 | - * @param string $language |
|
255 | + * @param string $languages |
|
256 | 256 | * @return bool |
257 | 257 | */ |
258 | 258 | public function deleteTranslations(...$languages): bool |
@@ -2,10 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace WeAreNeopix\LaravelModelTranslation; |
4 | 4 | |
5 | +use Illuminate\Database\Eloquent\Builder; |
|
6 | +use Illuminate\Database\Eloquent\Model; |
|
7 | +use Illuminate\Database\Eloquent\SoftDeletes; |
|
5 | 8 | use Illuminate\Support\Facades\App; |
6 | - use Illuminate\Database\Eloquent\Model; |
|
7 | - use Illuminate\Database\Eloquent\Builder; |
|
8 | - use Illuminate\Database\Eloquent\SoftDeletes; |
|
9 | 9 | |
10 | 10 | trait Translates |
11 | 11 | { |