Completed
Push — master ( 7ef4f0...fad325 )
by Sebastian
17:53 queued 12:31
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/Foundation/Models/Traits/HasSlug.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 {
7 7
     public static function bootHasUrl()
8 8
     {
9
-        static::saving(function ($model) {
9
+        static::saving(function($model) {
10 10
 
11 11
             if (!in_array('name', $model->translatable ?? [])) {
12 12
                 $model->url = str_slug($model->name);
Please login to merge, or discard this patch.
app/Providers/QueryBuilderServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
     
11 11
     public function boot()
12 12
     {
13
-        Builder::macro('if', function (bool $condition, string $column, string $operator, $value) {
13
+        Builder::macro('if', function(bool $condition, string $column, string $operator, $value) {
14 14
             if ($condition) {
15 15
                 return $this->where($column, $operator, $value);
16 16
             }
Please login to merge, or discard this patch.
app/Services/Html/FormBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
 
100 100
     public function locales(array $locales, string $current) : string
101 101
     {
102
-        $list = array_reduce($locales, function (array $list, string $locale) {
102
+        $list = array_reduce($locales, function(array $list, string $locale) {
103 103
             $list[$locale] = trans("locales.{$locale}");
104 104
 
105 105
             return $list;
Please login to merge, or discard this patch.
app/Providers/BladeDirectiveServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 
14 14
     public function boot()
15 15
     {
16
-        Blade::directive('json', function ($expression) {
16
+        Blade::directive('json', function($expression) {
17 17
             return "<?php echo json_encode({$expression}); ?>";
18 18
         });
19 19
     }
Please login to merge, or discard this patch.
app/Providers/ConfigServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
 
52 52
         config()->set(
53 53
             'mail.recipients',
54
-            collect(config('mail.recipients'))->map(function () {
54
+            collect(config('mail.recipients'))->map(function() {
55 55
                 return '[email protected]';
56 56
             })
57 57
         );
Please login to merge, or discard this patch.
app/Http/Controllers/Back/StatisticsController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,10 +15,10 @@
 block discarded – undo
15 15
         }
16 16
 
17 17
         $visitors = Analytics::fetchVisitorsAndPageViews(Period::days(365))
18
-            ->groupBy(function (array $visitorStatistics) {
18
+            ->groupBy(function(array $visitorStatistics) {
19 19
                 return $visitorStatistics['date']->format('Y-m');
20 20
             })
21
-            ->map(function ($visitorStatistics, $yearMonth) {
21
+            ->map(function($visitorStatistics, $yearMonth) {
22 22
                 list($year, $month) = explode('-', $yearMonth);
23 23
 
24 24
                 return [
Please login to merge, or discard this patch.
app/Models/Transformers/MediaTransformer.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,8 +17,7 @@
 block discarded – undo
17 17
             'customProperties' => json_encode($media->custom_properties, JSON_FORCE_OBJECT),
18 18
             'orderColumn' => $media->order_column,
19 19
             'thumbUrl' => strtolower($media->extension) === 'svg' ?
20
-                $media->getUrl() :
21
-                $media->getUrl('admin'),
20
+                $media->getUrl() : $media->getUrl('admin'),
22 21
             'originalUrl' => $media->getUrl(),
23 22
         ];
24 23
     }
Please login to merge, or discard this patch.
app/Services/Navigation/Menu/FrontMenus.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -10,25 +10,25 @@
 block discarded – undo
10 10
 {
11 11
     public function register()
12 12
     {
13
-        Menu::macro('front', function () {
13
+        Menu::macro('front', function() {
14 14
             return Menu::new()->setActiveFromRequest(locale());
15 15
         });
16 16
 
17
-        Menu::macro('main', function () {
17
+        Menu::macro('main', function() {
18 18
             return Menu::front()
19 19
                 ->addClass('nav navbar-nav')
20 20
                 ->url('/', 'Home');
21 21
         });
22 22
 
23
-        Menu::macro('language', function () {
24
-            return locales()->reduce(function (Menu $menu, string $locale) {
23
+        Menu::macro('language', function() {
24
+            return locales()->reduce(function(Menu $menu, string $locale) {
25 25
                 $menu->url($locale, $locale);
26 26
             }, Menu::front());
27 27
         });
28 28
 
29
-        Menu::macro('articleSiblings', function (Article $article) {
29
+        Menu::macro('articleSiblings', function(Article $article) {
30 30
             return app(ArticleRepository::class)->getSiblings($article)
31
-                ->reduce(function (Menu $menu, Article $article) {
31
+                ->reduce(function(Menu $menu, Article $article) {
32 32
                     return $menu->url($article->fullUrl, $article->name);
33 33
                 }, Menu::front());
34 34
         });
Please login to merge, or discard this patch.