Completed
Push — master ( 85f2e1...d1e37b )
by Sebastian
04:23
created
app/Services/Locale/TranslationLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
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
         );
Please login to merge, or discard this patch.
app/Models/Fragment.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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,
Please login to merge, or discard this patch.