Skip to content

Commit

Permalink
Apply fixes from StyleCI (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze authored Sep 4, 2019
1 parent 89374c6 commit 04e68e1
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 @@ -20,7 +20,7 @@ public static function boot()
{
parent::boot();

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

Expand All @@ -34,7 +34,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) {
array_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 04e68e1

Please sign in to comment.