Completed
Push — master ( 887d97...3222d2 )
by Sebastian
04:10
created
app/Providers/RouteServiceProvider.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 
26 26
     protected function registerMacros(Router $router)
27 27
     {
28
-        $router->macro('module', function ($slug, $className, $sortable = false) use ($router) {
28
+        $router->macro('module', function($slug, $className, $sortable = false) use ($router) {
29 29
             if ($sortable) {
30 30
                 $router->patch("{$slug}/changeOrder", "{$className}Controller@changeOrder");
31 31
             }
@@ -33,15 +33,15 @@  discard block
 block discarded – undo
33 33
             $router->resource($slug, "{$className}Controller");
34 34
         });
35 35
 
36
-        $router->macro('articleList', function ($technicalNamePrefix, $action) use ($router) {
36
+        $router->macro('articleList', function($technicalNamePrefix, $action) use ($router) {
37 37
 
38 38
             $articles = Article::getWithTechnicalNameLike($technicalNamePrefix);
39 39
 
40
-            $router->get(app()->getLocale().'/'.fragment_slug("navigation.{$technicalNamePrefix}"), function () use ($articles) {
40
+            $router->get(app()->getLocale().'/'.fragment_slug("navigation.{$technicalNamePrefix}"), function() use ($articles) {
41 41
                 return redirect(route("{$articles->first()->technical_name}"));
42 42
             })->name($technicalNamePrefix);
43 43
 
44
-            $articles->map(function ($article) use ($technicalNamePrefix, $action, $router) {
44
+            $articles->map(function($article) use ($technicalNamePrefix, $action, $router) {
45 45
                 $router->get(app()->getLocale().'/'.fragment_slug("navigation.{$technicalNamePrefix}").'/'.$article->url, $action)->name("{$article->technical_name}");
46 46
             });
47 47
         });
@@ -51,16 +51,16 @@  discard block
 block discarded – undo
51 51
 
52 52
     public function map(Router $router)
53 53
     {
54
-        Route::group(['namespace' => $this->namespace], function () {
54
+        Route::group(['namespace' => $this->namespace], function() {
55 55
 
56 56
             /*
57 57
              * Special routes
58 58
              */
59
-            Route::group(['middleware' => 'web'], function () {
59
+            Route::group(['middleware' => 'web'], function() {
60 60
 
61 61
                 Route::demoAccess('/demo');
62 62
 
63
-                Route::get('coming-soon', function () {
63
+                Route::get('coming-soon', function() {
64 64
                     return view('temp/index');
65 65
                 });
66 66
             });
@@ -68,10 +68,10 @@  discard block
 block discarded – undo
68 68
             /*
69 69
              * Back site
70 70
              */
71
-            Route::group(['namespace' => 'Back', 'middleware' => 'web', 'prefix' => 'blender'], function () {
71
+            Route::group(['namespace' => 'Back', 'middleware' => 'web', 'prefix' => 'blender'], function() {
72 72
                 Auth::routes();
73 73
 
74
-                Route::group(['middleware' => 'auth'], function () {
74
+                Route::group(['middleware' => 'auth'], function() {
75 75
                     require base_path('routes/back.php');
76 76
                 });
77 77
             });
@@ -80,16 +80,16 @@  discard block
 block discarded – undo
80 80
              * Frontsite
81 81
              */
82 82
 
83
-            Route::group(['namespace' => 'Front'], function () {
84
-                Route::group(['namespace' => 'Api', 'middleware' => 'api', 'prefix' => 'api'], function () {
83
+            Route::group(['namespace' => 'Front'], function() {
84
+                Route::group(['namespace' => 'Api', 'middleware' => 'api', 'prefix' => 'api'], function() {
85 85
                     require base_path('routes/frontApi.php');
86 86
                 });
87 87
 
88
-                Route::group(['middleware' => ['web', 'demoMode', 'rememberLocale']], function () {
88
+                Route::group(['middleware' => ['web', 'demoMode', 'rememberLocale']], function() {
89 89
 
90 90
                     $multiLingual = count(config('app.locales')) > 1;
91 91
 
92
-                    Route::group($multiLingual ? ['prefix' => locale()] : [], function () {
92
+                    Route::group($multiLingual ? ['prefix' => locale()] : [], function() {
93 93
                         try {
94 94
                             Auth::routes();
95 95
                             require base_path('routes/front.php');
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
                     });
100 100
 
101 101
                     if ($multiLingual) {
102
-                        Route::get('/', function () {
102
+                        Route::get('/', function() {
103 103
                             return redirect(locale());
104 104
                         });
105 105
                     }
Please login to merge, or discard this patch.