Completed
Push — master ( b99408...81b160 )
by Sebastian
11:14
created
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.
app/Http/Middleware/RememberLocale.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,6 +17,6 @@
 block discarded – undo
17 17
      */
18 18
     public function handle($request, Closure $next)
19 19
     {
20
-        return $next($request)->withCookie('locale', app()->getLocale(),  60 * 24 * 365 * 5);
20
+        return $next($request)->withCookie('locale', app()->getLocale(), 60 * 24 * 365 * 5);
21 21
     }
22 22
 }
Please login to merge, or discard this patch.
app/Models/Tag.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     public static function findByNameOrCreate(string $name, TagType $type): Tag
33 33
     {
34 34
         $existing = self::nonDraft()->get()
35
-            ->first(function (int $id, Tag $tag) use ($name, $type) {
35
+            ->first(function(int $id, Tag $tag) use ($name, $type) {
36 36
                 return $tag->translate('name', content_locale()) === $name && $tag->type === (string) $type;
37 37
             });
38 38
 
Please login to merge, or discard this patch.