Skip to content

Commit 6067363

Browse files
committed
refactor: code
refs: #49
1 parent 94c145a commit 6067363

File tree

3 files changed

+2
-136
lines changed

3 files changed

+2
-136
lines changed

src/Generators/TranslationsGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ protected function appendNotFoundException(): void
5353

5454
$stubContent = view($stubPath)->render();
5555

56-
$fixedContent = preg_replace('/\]\;\s*$/', "\n\t{$stubContent}", $content);
56+
$fixedContent = preg_replace('/\]\;\s*$/', "\n {$stubContent}", $content);
5757

5858
file_put_contents($this->translationPath, $fixedContent);
5959
}

tests/TranslationGeneratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function testAppendNotFoundException()
5757
->setModel('Post')
5858
->generate();
5959

60-
$this->assertGeneratedFileEquals('validation_append_not_found_exception.php', 'resources/lang/en/validation.php');
60+
$this->assertGeneratedFileEquals('validation.php', 'resources/lang/en/validation.php');
6161

6262
Event::assertNothingDispatched();
6363
}

tests/fixtures/TranslationGeneratorTest/validation_append_not_found_exception.php

Lines changed: 0 additions & 134 deletions
This file was deleted.

0 commit comments

Comments
 (0)