@@ -30,7 +30,7 @@ |
||
| 30 | 30 | |
| 31 | 31 | return Cache::rememberForever( |
| 32 | 32 | "locale.fragments.{$locale}.{$group}", |
| 33 | - function () use ($group, $locale) { |
|
| 33 | + function() use ($group, $locale) { |
|
| 34 | 34 | return Fragment::getGroup($group, $locale); |
| 35 | 35 | } |
| 36 | 36 | ); |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | */ |
| 19 | 19 | public static function findByName(string $name) |
| 20 | 20 | { |
| 21 | - return app('cache')->rememberForever("fragment.findByName.{$name}", function () use ($name) { |
|
| 21 | + return app('cache')->rememberForever("fragment.findByName.{$name}", function() use ($name) { |
|
| 22 | 22 | return static::where('name', $name)->first(); |
| 23 | 23 | }); |
| 24 | 24 | } |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | return static::query() |
| 29 | 29 | ->where('name', 'LIKE', "{$group}.%") |
| 30 | 30 | ->get() |
| 31 | - ->map(function (Fragment $fragment) use ($locale, $group) { |
|
| 31 | + ->map(function(Fragment $fragment) use ($locale, $group) { |
|
| 32 | 32 | return [ |
| 33 | 33 | 'key' => preg_replace("/{$group}\\./", '', $fragment->name, 1), |
| 34 | 34 | 'text' => $fragment->translate($locale)->text, |