Completed
Push — master ( b99408...81b160 )
by Sebastian
11:14
created
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/Services/Auth/User.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
 
50 50
     public function getNameAttribute(): string
51 51
     {
52
-        return $this->first_name . ' ' . $this->last_name;
52
+        return $this->first_name.' '.$this->last_name;
53 53
     }
54 54
 
55 55
     public function hasNeverLoggedIn(): bool
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/Http/Controllers/Back/MediaLibraryApiController.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
         $model = $this->getModelFromRequest($request);
19 19
 
20 20
         $media = collect($request->file('file'))
21
-            ->map(function (UploadedFile $file) use ($model, $request) {
21
+            ->map(function(UploadedFile $file) use ($model, $request) {
22 22
                 return $model
23 23
                     ->addMedia($file)
24 24
                     ->withCustomProperties(['temp' => $request->has('redactor') ? false : true])
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
         $collectionName = $request->get('collectionName');
40 40
 
41
-        $media = $model->getMedia($collectionName)->reduce(function (Collection $collection, Media $media) {
41
+        $media = $model->getMedia($collectionName)->reduce(function(Collection $collection, Media $media) {
42 42
             return $collection->push([
43 43
                 'thumb' => $media->getUrl('admin'),
44 44
                 'image' => $media->getUrl('redactor'),
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/Foundation/Repositories/CachesResults.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,6 +6,6 @@
 block discarded – undo
6 6
 {
7 7
     protected function rememberForever(string $key, $value)
8 8
     {
9
-        return cache()->rememberForever('repository.' . static::class . '.' . $key, $value);
9
+        return cache()->rememberForever('repository.'.static::class.'.'.$key, $value);
10 10
     }
11 11
 }
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.
app/Models/Article.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     {
35 35
         return Cache::rememberForever(
36 36
             "article.findByTechnicalName.{$technicalName}",
37
-            function () use ($technicalName): Article {
37
+            function() use ($technicalName): Article {
38 38
                 $article = static::where('technical_name', $technicalName)->first();
39 39
 
40 40
                 if ($article === null) {
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     {
51 51
         return Cache::rememberForever(
52 52
             "article.getWithTechnicalNameLike.{$technicalName}",
53
-            function () use ($technicalName): Collection {
53
+            function() use ($technicalName): Collection {
54 54
                 return static::where('technical_name', 'like', "{$technicalName}.%")
55 55
                     ->orderBy('order_column')
56 56
                     ->get();
@@ -89,14 +89,14 @@  discard block
 block discarded – undo
89 89
         $localeSegment = '';
90 90
 
91 91
         if (locales()->count() > 1) {
92
-            $localeSegment = "/" . locale();
92
+            $localeSegment = "/".locale();
93 93
         }
94 94
 
95 95
         if ($this->technical_name === SpecialArticle::HOME) {
96 96
             return $localeSegment;
97 97
         }
98 98
 
99
-        $parentUrl = $this->hasParentArticle() ? $this->parentArticle->url . '/' : '';
99
+        $parentUrl = $this->hasParentArticle() ? $this->parentArticle->url.'/' : '';
100 100
 
101 101
         return "{$localeSegment}/{$parentUrl}{$this->url}";
102 102
     }
Please login to merge, or discard this patch.
app/Http/Routes/routes.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -2,24 +2,24 @@  discard block
 block discarded – undo
2 2
 
3 3
 Route::demoAccess('/demo');
4 4
 
5
-Route::get('coming-soon', function () {
5
+Route::get('coming-soon', function() {
6 6
     return view('temp/index');
7 7
 });
8 8
 
9
-Route::group(['namespace' => 'Back', 'prefix' => 'blender'], function () {
9
+Route::group(['namespace' => 'Back', 'prefix' => 'blender'], function() {
10 10
 
11 11
     require __DIR__.'/back_auth.php';
12 12
 
13
-    Route::group(['middleware' => 'auth'], function () {
13
+    Route::group(['middleware' => 'auth'], function() {
14 14
         require __DIR__.'/back.php';
15 15
     });
16 16
 });
17 17
 
18
-Route::group(['namespace' => 'Front', 'middleware' => ['demoMode', 'rememberLocale']], function () {
18
+Route::group(['namespace' => 'Front', 'middleware' => ['demoMode', 'rememberLocale']], function() {
19 19
 
20 20
     $multiLingual = count(config('app.locales')) > 1;
21 21
 
22
-    Route::group($multiLingual ? ['prefix' => locale()] : [], function () {
22
+    Route::group($multiLingual ? ['prefix' => locale()] : [], function() {
23 23
         try {
24 24
             require __DIR__.'/front_auth.php';
25 25
             require __DIR__.'/front.php';
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     });
30 30
 
31 31
     if ($multiLingual) {
32
-        Route::get('/', function () {
32
+        Route::get('/', function() {
33 33
             return redirect(locale());
34 34
         });
35 35
     }
Please login to merge, or discard this patch.