Skip to content

Commit 303f66f

Browse files
joedixonStyleCIBot
authored andcommitted
Apply fixes from StyleCI
[ci skip] [skip ci]
1 parent d82e82a commit 303f66f

15 files changed

+80
-80
lines changed

database/migrations/2018_08_29_205156_create_translations_table.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

3-
use Illuminate\Support\Facades\Schema;
4-
use Illuminate\Database\Schema\Blueprint;
53
use Illuminate\Database\Migrations\Migration;
4+
use Illuminate\Database\Schema\Blueprint;
5+
use Illuminate\Support\Facades\Schema;
66

77
class CreateTranslationsTable extends Migration
88
{

resources/lang/fr/errors.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

33
return [
4-
'key_exists' => 'La clé de traduction { :key } existe déjà',
5-
'language_exists' => 'La langue { :language } existe déjà',
4+
'key_exists' => 'La clé de traduction { :key } existe déjà',
5+
'language_exists' => 'La langue { :language } existe déjà',
66
];

resources/lang/fr/translation.php

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,52 @@
11
<?php
22

33
return [
4-
'add' => '+ Ajouter',
5-
'add_language' => 'Ajouter une nouvelle langue',
6-
'add_translation' => 'Ajouter une traduction',
7-
'advanced_options' => 'Afficher les options avancées',
8-
'file' => 'Fichier',
9-
'group' => 'Groupe',
10-
'group_label' => 'Groupe (Optionnel)',
11-
'group_placeholder' => 'Ex: validation',
12-
'group_single' => 'Groupe / Unique',
13-
'invalid_driver' => 'Driver invalide',
14-
'invalid_language' => 'Langue invalide',
15-
'key' => 'Clé',
16-
'key_label' => 'Clé',
17-
'key_placeholder' => 'Par exemple : invalid_key',
18-
'keys_synced' => 'Clés manquantes synchronisées avec succès 🎊',
19-
'language' => 'Langue',
20-
'language_added' => 'Nouvelle langue ajoutée avec succés 🙌',
21-
'language_exists' => 'Le :attribute existe déjà.',
22-
'language_key_added' => 'Nouvelle clé dans la langue ajoutée avec succès 👏',
23-
'language_name' => 'Nom',
24-
'languages' => 'Langues',
25-
'locale' => 'Locale',
26-
'namespace' => 'Namespace',
27-
'namespace_label' => 'Namespace (Optionnel)',
28-
'namespace_placeholder' => 'Par exemple : my_package',
29-
'no_missing_keys' => 'Il ne manque aucune clé de traduction dans l\'application 🎉',
30-
'prompt_file' => 'Dans quel fichier sera t\'elle stockée ?',
31-
'prompt_from_driver' => 'De quel driver voudriez-vous prendre les traductions ?',
32-
'prompt_key' => 'Quelle est la clé de cette traduction ?',
33-
'prompt_language' => 'Entrez le code langue que vous aimeriez ajouter (Ex: fr)',
34-
'prompt_language_for_key' => 'Entrez la langue pour la clé (Ex: fr)',
35-
'prompt_language_if_any' => 'Quelle langue ? (Laissez vide pour tous)',
36-
'prompt_to_driver' => 'À quel driver désirez-vous ajouter les traductions ?',
37-
'prompt_type' => 'Est-ce une clé Json ou Array ?',
38-
'prompt_value' => 'Quelle est la valeur de la traduction',
39-
'save' => 'Sauvegarder',
40-
'search' => 'Rechercher toutes les traductions',
41-
'single' => 'Unique',
42-
'synced' => 'Les traductions sont synchronisées 😎',
43-
'syncing' => 'Synchronisation des traductions ⏳',
44-
'translation_added' => 'Nouvelle traduction ajoutée avec succès 🙌',
45-
'translations' => 'Traduction',
46-
'type' => 'Type',
47-
'type_error' => 'Le type de traduction doit être en json ou en array',
48-
'uh_oh' => 'Quelque chose ne fonctionne pas',
49-
'value' => 'Valeur',
50-
'value_label' => 'Valeur',
51-
'value_placeholder' => 'Par exemple : Les clés doivent être une seule chaîne',
4+
'add' => '+ Ajouter',
5+
'add_language' => 'Ajouter une nouvelle langue',
6+
'add_translation' => 'Ajouter une traduction',
7+
'advanced_options' => 'Afficher les options avancées',
8+
'file' => 'Fichier',
9+
'group' => 'Groupe',
10+
'group_label' => 'Groupe (Optionnel)',
11+
'group_placeholder' => 'Ex: validation',
12+
'group_single' => 'Groupe / Unique',
13+
'invalid_driver' => 'Driver invalide',
14+
'invalid_language' => 'Langue invalide',
15+
'key' => 'Clé',
16+
'key_label' => 'Clé',
17+
'key_placeholder' => 'Par exemple : invalid_key',
18+
'keys_synced' => 'Clés manquantes synchronisées avec succès 🎊',
19+
'language' => 'Langue',
20+
'language_added' => 'Nouvelle langue ajoutée avec succés 🙌',
21+
'language_exists' => 'Le :attribute existe déjà.',
22+
'language_key_added' => 'Nouvelle clé dans la langue ajoutée avec succès 👏',
23+
'language_name' => 'Nom',
24+
'languages' => 'Langues',
25+
'locale' => 'Locale',
26+
'namespace' => 'Namespace',
27+
'namespace_label' => 'Namespace (Optionnel)',
28+
'namespace_placeholder' => 'Par exemple : my_package',
29+
'no_missing_keys' => 'Il ne manque aucune clé de traduction dans l\'application 🎉',
30+
'prompt_file' => 'Dans quel fichier sera t\'elle stockée ?',
31+
'prompt_from_driver' => 'De quel driver voudriez-vous prendre les traductions ?',
32+
'prompt_key' => 'Quelle est la clé de cette traduction ?',
33+
'prompt_language' => 'Entrez le code langue que vous aimeriez ajouter (Ex: fr)',
34+
'prompt_language_for_key' => 'Entrez la langue pour la clé (Ex: fr)',
35+
'prompt_language_if_any' => 'Quelle langue ? (Laissez vide pour tous)',
36+
'prompt_to_driver' => 'À quel driver désirez-vous ajouter les traductions ?',
37+
'prompt_type' => 'Est-ce une clé Json ou Array ?',
38+
'prompt_value' => 'Quelle est la valeur de la traduction',
39+
'save' => 'Sauvegarder',
40+
'search' => 'Rechercher toutes les traductions',
41+
'single' => 'Unique',
42+
'synced' => 'Les traductions sont synchronisées 😎',
43+
'syncing' => 'Synchronisation des traductions ⏳',
44+
'translation_added' => 'Nouvelle traduction ajoutée avec succès 🙌',
45+
'translations' => 'Traduction',
46+
'type' => 'Type',
47+
'type_error' => 'Le type de traduction doit être en json ou en array',
48+
'uh_oh' => 'Quelque chose ne fonctionne pas',
49+
'value' => 'Valeur',
50+
'value_label' => 'Valeur',
51+
'value_placeholder' => 'Par exemple : Les clés doivent être une seule chaîne',
5252
];

src/Console/Commands/SynchroniseTranslationsCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
namespace JoeDixon\Translation\Console\Commands;
44

55
use Illuminate\Console\Command;
6-
use JoeDixon\Translation\Scanner;
76
use Illuminate\Filesystem\Filesystem;
8-
use JoeDixon\Translation\Drivers\File;
97
use JoeDixon\Translation\Drivers\Database;
8+
use JoeDixon\Translation\Drivers\File;
109
use JoeDixon\Translation\Drivers\Translation;
10+
use JoeDixon\Translation\Scanner;
1111

1212
class SynchroniseTranslationsCommand extends Command
1313
{

src/Drivers/Database.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
namespace JoeDixon\Translation\Drivers;
44

55
use Illuminate\Support\Collection;
6+
use JoeDixon\Translation\Exceptions\LanguageExistsException;
67
use JoeDixon\Translation\Language;
78
use JoeDixon\Translation\Translation as TranslationModel;
8-
use JoeDixon\Translation\Exceptions\LanguageExistsException;
99

1010
class Database extends Translation implements DriverInterface
1111
{
@@ -139,7 +139,7 @@ public function addSingleTranslation($language, $vendor, $key, $value = '')
139139
], [
140140
'key' => $key,
141141
'value' => $value,
142-
]);
142+
]);
143143
}
144144

145145
/**

src/Drivers/File.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
namespace JoeDixon\Translation\Drivers;
44

5+
use Illuminate\Filesystem\Filesystem;
56
use Illuminate\Support\Arr;
6-
use Illuminate\Support\Str;
77
use Illuminate\Support\Collection;
8-
use Illuminate\Filesystem\Filesystem;
8+
use Illuminate\Support\Str;
99
use JoeDixon\Translation\Exceptions\LanguageExistsException;
1010

1111
class File extends Translation implements DriverInterface

src/Drivers/Translation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace JoeDixon\Translation\Drivers;
44

5-
use Illuminate\Support\Str;
65
use Illuminate\Support\Collection;
6+
use Illuminate\Support\Str;
77

88
abstract class Translation
99
{

src/Http/Controllers/LanguageTranslationController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
namespace JoeDixon\Translation\Http\Controllers;
44

5-
use Illuminate\Support\Str;
65
use Illuminate\Http\Request;
76
use Illuminate\Routing\Controller;
87
use Illuminate\Support\Collection;
8+
use Illuminate\Support\Str;
99
use JoeDixon\Translation\Drivers\Translation;
1010
use JoeDixon\Translation\Http\Requests\TranslationRequest;
1111

src/TranslationBindingsServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
namespace JoeDixon\Translation;
44

55
use Illuminate\Filesystem\Filesystem;
6+
use Illuminate\Translation\TranslationServiceProvider as ServiceProvider;
67
use Illuminate\Translation\Translator;
78
use JoeDixon\Translation\Drivers\Translation;
8-
use Illuminate\Translation\TranslationServiceProvider as ServiceProvider;
99

1010
class TranslationBindingsServiceProvider extends ServiceProvider
1111
{

src/TranslationManager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
namespace JoeDixon\Translation;
44

5-
use Illuminate\Support\Str;
65
use Illuminate\Filesystem\Filesystem;
7-
use JoeDixon\Translation\Drivers\File;
6+
use Illuminate\Support\Str;
87
use JoeDixon\Translation\Drivers\Database;
8+
use JoeDixon\Translation\Drivers\File;
99

1010
class TranslationManager
1111
{

src/TranslationServiceProvider.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
use Illuminate\Support\ServiceProvider;
66
use JoeDixon\Translation\Console\Commands\AddLanguageCommand;
7-
use JoeDixon\Translation\Console\Commands\ListLanguagesCommand;
87
use JoeDixon\Translation\Console\Commands\AddTranslationKeyCommand;
8+
use JoeDixon\Translation\Console\Commands\ListLanguagesCommand;
99
use JoeDixon\Translation\Console\Commands\ListMissingTranslationKeys;
10-
use JoeDixon\Translation\Console\Commands\SynchroniseTranslationsCommand;
1110
use JoeDixon\Translation\Console\Commands\SynchroniseMissingTranslationKeys;
11+
use JoeDixon\Translation\Console\Commands\SynchroniseTranslationsCommand;
1212

1313
class TranslationServiceProvider extends ServiceProvider
1414
{
@@ -122,7 +122,7 @@ private function loadMigrations()
122122
private function loadTranslations()
123123
{
124124
$this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'translation');
125-
125+
126126
$this->publishes([
127127
__DIR__.'/../resources/lang' => resource_path('lang/vendor/translation'),
128128
]);

tests/DatabaseDriverTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
namespace JoeDixon\Translation\Tests;
44

5-
use Orchestra\Testbench\TestCase;
6-
use JoeDixon\Translation\Language;
7-
use JoeDixon\Translation\Drivers\Translation;
8-
use JoeDixon\Translation\TranslationServiceProvider;
95
use Illuminate\Foundation\Testing\DatabaseMigrations;
10-
use JoeDixon\Translation\Translation as TranslationModel;
6+
use JoeDixon\Translation\Drivers\Translation;
117
use JoeDixon\Translation\Exceptions\LanguageExistsException;
8+
use JoeDixon\Translation\Language;
9+
use JoeDixon\Translation\Translation as TranslationModel;
1210
use JoeDixon\Translation\TranslationBindingsServiceProvider;
11+
use JoeDixon\Translation\TranslationServiceProvider;
12+
use Orchestra\Testbench\TestCase;
1313

1414
class DatabaseDriverTest extends TestCase
1515
{
@@ -20,7 +20,7 @@ class DatabaseDriverTest extends TestCase
2020
/**
2121
* Setup the test environment.
2222
*/
23-
public function setUp() :void
23+
public function setUp(): void
2424
{
2525
parent::setUp();
2626
$this->withFactories(__DIR__.'/../database/factories');
@@ -193,7 +193,7 @@ public function it_can_merge_a_language_with_the_base_language()
193193
],
194194
'single' => [
195195
'single' => [
196-
'Hello' => [
196+
'Hello' => [
197197
'en' => 'Hello',
198198
'es' => '',
199199
],

tests/FileDriverTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
namespace JoeDixon\Translation\Tests;
44

5-
use Orchestra\Testbench\TestCase;
65
use JoeDixon\Translation\Drivers\Translation;
7-
use JoeDixon\Translation\TranslationServiceProvider;
86
use JoeDixon\Translation\Exceptions\LanguageExistsException;
97
use JoeDixon\Translation\TranslationBindingsServiceProvider;
8+
use JoeDixon\Translation\TranslationServiceProvider;
9+
use Orchestra\Testbench\TestCase;
1010

1111
class FileDriverTest extends TestCase
1212
{
@@ -15,7 +15,7 @@ class FileDriverTest extends TestCase
1515
/**
1616
* Setup the test environment.
1717
*/
18-
protected function setUp() :void
18+
protected function setUp(): void
1919
{
2020
parent::setUp();
2121
app()['path.lang'] = __DIR__.'/fixtures/lang';

tests/PackageIsLoadedTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
namespace JoeDixon\Translation\Tests;
44

5-
use Orchestra\Testbench\TestCase;
6-
use JoeDixon\Translation\TranslationServiceProvider;
75
use JoeDixon\Translation\TranslationBindingsServiceProvider;
6+
use JoeDixon\Translation\TranslationServiceProvider;
7+
use Orchestra\Testbench\TestCase;
88

99
class PackageIsLoadedTest extends TestCase
1010
{

tests/ScannerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
namespace JoeDixon\Translation\Tests;
44

55
use JoeDixon\Translation\Scanner;
6-
use Orchestra\Testbench\TestCase;
7-
use JoeDixon\Translation\TranslationServiceProvider;
86
use JoeDixon\Translation\TranslationBindingsServiceProvider;
7+
use JoeDixon\Translation\TranslationServiceProvider;
8+
use Orchestra\Testbench\TestCase;
99

1010
class ScannerTest extends TestCase
1111
{

0 commit comments

Comments
 (0)