Passed
Push — master ( 1594f8...686c0e )
by Reza
03:46
created
src/routes.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
 
5 5
 Route::view('/', "admin::home")->name('home');
6 6
 
7
-Route::post('/logout', function (){
7
+Route::post('/logout', function() {
8 8
     auth()->logout();
9 9
     return redirect(config('easy_panel.redirect_unauthorized'));
10 10
 })->name('logout');
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
         $name = ucfirst($crud->name);
16 16
         $component = "App\\Http\\Livewire\\Admin\\$name";
17 17
 
18
-        Route::prefix($crud->route)->name("{$crud->route}.")->group(function () use ($component, $crud, $crudConfig) {
18
+        Route::prefix($crud->route)->name("{$crud->route}.")->group(function() use ($component, $crud, $crudConfig) {
19 19
 
20 20
             if (@class_exists("$component\\Read")) {
21 21
                 Route::get('/', "$component\\Read")->name('read');
@@ -26,21 +26,21 @@  discard block
 block discarded – undo
26 26
             }
27 27
 
28 28
             if (@$crudConfig->update and @class_exists("$component\\Update")) {
29
-                Route::get('/update/{' . $crud->name . '}', "$component\\Update")->name('update');
29
+                Route::get('/update/{'.$crud->name.'}', "$component\\Update")->name('update');
30 30
             }
31 31
 
32 32
         });
33 33
     }
34 34
 }
35 35
 
36
-if(config('easy_panel.todo')){
37
-    Route::prefix('todo')->name('todo.')->group(function (){
36
+if (config('easy_panel.todo')) {
37
+    Route::prefix('todo')->name('todo.')->group(function() {
38 38
         Route::get('/', \EasyPanel\Http\Livewire\Todo\Lists::class)->name('lists');
39 39
         Route::get('/create', \EasyPanel\Http\Livewire\Todo\Create::class)->name('create');
40 40
     });
41 41
 }
42 42
 
43
-Route::prefix('crud')->name('crud.')->group(function (){
43
+Route::prefix('crud')->name('crud.')->group(function() {
44 44
     Route::get('/', \EasyPanel\Http\Livewire\CRUD\Lists::class)->name('lists');
45 45
     Route::get('/create', \EasyPanel\Http\Livewire\CRUD\Create::class)->name('create');
46 46
 });
Please login to merge, or discard this patch.
src/EasyPanelServiceProvider.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -36,10 +36,10 @@  discard block
 block discarded – undo
36 36
     public function register()
37 37
     {
38 38
         // Here we merge config with 'easy_panel' key
39
-        $this->mergeConfigFrom(__DIR__ . '/../config/easy_panel_config.php', 'easy_panel');
39
+        $this->mergeConfigFrom(__DIR__.'/../config/easy_panel_config.php', 'easy_panel');
40 40
 
41 41
         // Check the status of module
42
-        if(!config('easy_panel.enable')) {
42
+        if (!config('easy_panel.enable')) {
43 43
             return;
44 44
         }
45 45
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 
50 50
     public function boot()
51 51
     {
52
-        if(!config('easy_panel.enable')) {
52
+        if (!config('easy_panel.enable')) {
53 53
             return;
54 54
         }
55 55
 
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
         $this->bindCommands();
63 63
 
64 64
         // Load Views with 'admin::' prefix
65
-        $this->loadViewsFrom(__DIR__ . '/../resources/views', 'admin');
65
+        $this->loadViewsFrom(__DIR__.'/../resources/views', 'admin');
66 66
 
67 67
         // Register Middleware
68 68
         $this->registerMiddlewareAlias();
@@ -76,13 +76,13 @@  discard block
 block discarded – undo
76 76
 
77 77
     private function defineRoutes()
78 78
     {
79
-        if(!$this->app->routesAreCached()) {
79
+        if (!$this->app->routesAreCached()) {
80 80
             $middlewares = array_merge(['web', 'isAdmin', 'LangChanger'], config('easy_panel.additional_middlewares'));
81 81
 
82 82
             Route::prefix(config('easy_panel.route_prefix'))
83 83
                 ->middleware($middlewares)
84
-                ->name(getRouteName() . '.')
85
-                ->group(__DIR__ . '/routes.php');
84
+                ->name(getRouteName().'.')
85
+                ->group(__DIR__.'/routes.php');
86 86
         }
87 87
     }
88 88
 
@@ -112,15 +112,15 @@  discard block
 block discarded – undo
112 112
 
113 113
     private function mergePublishes()
114 114
     {
115
-        $this->publishes([__DIR__ . '/../config/easy_panel_config.php' => config_path('easy_panel.php')], 'easy-panel-config');
115
+        $this->publishes([__DIR__.'/../config/easy_panel_config.php' => config_path('easy_panel.php')], 'easy-panel-config');
116 116
 
117
-        $this->publishes([__DIR__ . '/../resources/views' => resource_path('/views/vendor/admin')], 'easy-panel-views');
117
+        $this->publishes([__DIR__.'/../resources/views' => resource_path('/views/vendor/admin')], 'easy-panel-views');
118 118
 
119
-        $this->publishes([__DIR__ . '/../resources/assets' => public_path('/assets/admin')], 'easy-panel-styles');
119
+        $this->publishes([__DIR__.'/../resources/assets' => public_path('/assets/admin')], 'easy-panel-styles');
120 120
 
121
-        $this->publishes([__DIR__ . '/../database/migrations/2020_09_05_999999_create_todos_table.php' => base_path('/database/migrations/' . date('Y_m_d') . '_999999_create_admin_todos_table.php')], 'easy-panel-todo');
121
+        $this->publishes([__DIR__.'/../database/migrations/2020_09_05_999999_create_todos_table.php' => base_path('/database/migrations/'.date('Y_m_d').'_999999_create_admin_todos_table.php')], 'easy-panel-todo');
122 122
 
123
-        $this->publishes([__DIR__ . '/../database/migrations/2021_07_17_999999_create_cruds_table.php' => base_path('/database/migrations/' . date('Y_m_d') . '_999999_create_cruds_table.php')], 'easy-panel-migration');
123
+        $this->publishes([__DIR__.'/../database/migrations/2021_07_17_999999_create_cruds_table.php' => base_path('/database/migrations/'.date('Y_m_d').'_999999_create_cruds_table.php')], 'easy-panel-migration');
124 124
 
125 125
         $this->publishes([__DIR__.'/../resources/lang' => resource_path('/lang')], 'easy-panel-lang');
126 126
 
Please login to merge, or discard this patch.