Skip to content

Commit df293b3

Browse files
joedixonStyleCIBot
andauthored
Apply fixes from StyleCI (#229)
[ci skip] [skip ci] Co-authored-by: StyleCI Bot <[email protected]>
1 parent 6f16c72 commit df293b3

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/Database/Factories/TranslationFactory.php

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

33
namespace JoeDixon\Translation\Database\Factories;
44

5-
use JoeDixon\Translation\Language;
65
use Illuminate\Database\Eloquent\Factories\Factory;
6+
use JoeDixon\Translation\Language;
77
use JoeDixon\Translation\Translation;
88

99
class TranslationFactory extends Factory

tests/DatabaseDriverTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ public function a_list_of_languages_can_be_viewed()
282282
public function the_language_creation_page_can_be_viewed()
283283
{
284284
$this->translation->addGroupTranslation(config('app.locale'), 'translation::translation', 'add_language', 'Add a new language');
285-
$this->get(config('translation.ui_url') . '/create')
285+
$this->get(config('translation.ui_url').'/create')
286286
->assertSee('Add a new language');
287287
}
288288

@@ -304,7 +304,7 @@ public function a_list_of_translations_can_be_viewed()
304304
TranslationModel::factory()->single()->create(['language_id' => $default->id, 'key' => 'Hello', 'value' => 'Hello!']);
305305
TranslationModel::factory()->single()->create(['language_id' => $default->id, 'key' => "What's up", 'value' => 'Sup!']);
306306

307-
$this->get(config('translation.ui_url') . '/en/translations')
307+
$this->get(config('translation.ui_url').'/en/translations')
308308
->assertSee('hello')
309309
->assertSee('whats_up')
310310
->assertSee('Hello')
@@ -315,14 +315,14 @@ public function a_list_of_translations_can_be_viewed()
315315
public function the_translation_creation_page_can_be_viewed()
316316
{
317317
$this->translation->addGroupTranslation('en', 'translation::translation', 'add_translation', 'Add a translation');
318-
$this->get(config('translation.ui_url') . '/' . config('app.locale') . '/translations/create')
318+
$this->get(config('translation.ui_url').'/'.config('app.locale').'/translations/create')
319319
->assertSee('Add a translation');
320320
}
321321

322322
/** @test */
323323
public function a_new_translation_can_be_added()
324324
{
325-
$this->post(config('translation.ui_url') . '/' . config('app.locale') . '/translations', ['group' => 'single', 'key' => 'joe', 'value' => 'is cool'])
325+
$this->post(config('translation.ui_url').'/'.config('app.locale').'/translations', ['group' => 'single', 'key' => 'joe', 'value' => 'is cool'])
326326
->assertRedirect();
327327

328328
$this->assertDatabaseHas('translations', ['language_id' => 1, 'key' => 'joe', 'value' => 'is cool']);
@@ -335,7 +335,7 @@ public function a_translation_can_be_updated()
335335
TranslationModel::factory()->group()->create(['language_id' => $default->id, 'group' => 'test', 'key' => 'hello', 'value' => 'Hello']);
336336
$this->assertDatabaseHas('translations', ['language_id' => 1, 'group' => 'test', 'key' => 'hello', 'value' => 'Hello']);
337337

338-
$this->post(config('translation.ui_url') . '/en', ['group' => 'test', 'key' => 'hello', 'value' => 'Hello there!'])
338+
$this->post(config('translation.ui_url').'/en', ['group' => 'test', 'key' => 'hello', 'value' => 'Hello there!'])
339339
->assertStatus(200);
340340

341341
$this->assertDatabaseHas('translations', ['language_id' => 1, 'group' => 'test', 'key' => 'hello', 'value' => 'Hello there!']);
@@ -347,7 +347,7 @@ public function adding_a_translation_fires_an_event_with_the_expected_data()
347347
Event::fake();
348348

349349
$data = ['key' => 'joe', 'value' => 'is cool'];
350-
$this->post(config('translation.ui_url') . '/en/translations', $data);
350+
$this->post(config('translation.ui_url').'/en/translations', $data);
351351

352352
Event::assertDispatched(TranslationAdded::class, function ($event) use ($data) {
353353
return $event->language === 'en' &&
@@ -363,7 +363,7 @@ public function updating_a_translation_fires_an_event_with_the_expected_data()
363363
Event::fake();
364364

365365
$data = ['group' => 'test', 'key' => 'hello', 'value' => 'Hello there!'];
366-
$this->post(config('translation.ui_url') . '/en/translations', $data);
366+
$this->post(config('translation.ui_url').'/en/translations', $data);
367367

368368
Event::assertDispatched(TranslationAdded::class, function ($event) use ($data) {
369369
return $event->language === 'en' &&

0 commit comments

Comments
 (0)