Skip to content

Commit

Permalink
Merge branch 'master' of github.com:spatie/laravel-translation-loader
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Sep 4, 2019
2 parents e030962 + 04e68e1 commit ea131d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/LanguageLine.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public static function boot()
{
parent::boot();

$flushGroupCache = function (LanguageLine $languageLine) {
$flushGroupCache = function (self $languageLine) {
$languageLine->flushGroupCache();
};

Expand All @@ -35,7 +35,7 @@ public static function getTranslationsForGroup(string $locale, string $group): a
return static::query()
->where('group', $group)
->get()
->reduce(function ($lines, LanguageLine $languageLine) use ($locale) {
->reduce(function ($lines, self $languageLine) use ($locale) {
$translation = $languageLine->getTranslation($locale);
if ($translation !== null) {
Arr::set($lines, $languageLine->key, $translation);
Expand Down
1 change: 0 additions & 1 deletion tests/TranslationLoaders/DbTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Spatie\TranslationLoader\Test\TranslationLoaders;

use DB;
use Illuminate\Translation\Translator;
use Spatie\TranslationLoader\LanguageLine;
use Spatie\TranslationLoader\Test\TestCase;
use Spatie\TranslationLoader\Exceptions\InvalidConfiguration;
Expand Down

0 comments on commit ea131d5

Please sign in to comment.