Passed
Push — master ( 675a0e...e42418 )
by Reza
03:18
created
src/EasyPanelServiceProvider.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@  discard block
 block discarded – undo
25 25
 {
26 26
     public function register()
27 27
     {
28
-        $this->mergeConfigFrom(__DIR__ . '/../config/easy_panel_config.php', 'easy_panel');
29
-        if(!config('easy_panel.enable')) {
28
+        $this->mergeConfigFrom(__DIR__.'/../config/easy_panel_config.php', 'easy_panel');
29
+        if (!config('easy_panel.enable')) {
30 30
             return;
31 31
         }
32 32
 
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
         $this->bindCommands();
35 35
 
36 36
         foreach (config('easy_panel.actions') as $action) {
37
-            if(!File::exists(resource_path("cruds/$action.php"))) {
37
+            if (!File::exists(resource_path("cruds/$action.php"))) {
38 38
                 continue;
39 39
             }
40 40
             $data = require resource_path("cruds/$action.php");
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
     public function boot()
46 46
     {
47
-        if(!config('easy_panel.enable')) {
47
+        if (!config('easy_panel.enable')) {
48 48
             return;
49 49
         }
50 50
 
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         }
54 54
 
55 55
         // Load Views
56
-        $this->loadViewsFrom(__DIR__ . '/../resources/views', 'admin');
56
+        $this->loadViewsFrom(__DIR__.'/../resources/views', 'admin');
57 57
 
58 58
         // Register Middleware
59 59
         $this->registerMiddlewareAlias();
@@ -67,11 +67,11 @@  discard block
 block discarded – undo
67 67
 
68 68
     private function defineRoutes()
69 69
     {
70
-        if(!$this->app->routesAreCached()) {
70
+        if (!$this->app->routesAreCached()) {
71 71
             Route::prefix(config('easy_panel.route_prefix'))
72 72
                 ->middleware(['web', 'auth', 'isAdmin'])
73
-                ->name(getRouteName() . '.')
74
-                ->group(__DIR__ . '/routes.php');
73
+                ->name(getRouteName().'.')
74
+                ->group(__DIR__.'/routes.php');
75 75
         }
76 76
     }
77 77
 
@@ -96,13 +96,13 @@  discard block
 block discarded – undo
96 96
 
97 97
     private function mergePublishes()
98 98
     {
99
-        $this->publishes([__DIR__ . '/../config/easy_panel_config.php' => config_path('easy_panel.php')], 'easy-panel-config');
99
+        $this->publishes([__DIR__.'/../config/easy_panel_config.php' => config_path('easy_panel.php')], 'easy-panel-config');
100 100
 
101
-        $this->publishes([__DIR__ . '/../resources/views' => resource_path('/views/vendor/admin')], 'easy-panel-views');
101
+        $this->publishes([__DIR__.'/../resources/views' => resource_path('/views/vendor/admin')], 'easy-panel-views');
102 102
 
103
-        $this->publishes([__DIR__ . '/../resources/assets' => public_path('/assets/admin')], 'easy-panel-styles');
103
+        $this->publishes([__DIR__.'/../resources/assets' => public_path('/assets/admin')], 'easy-panel-styles');
104 104
 
105
-        $this->publishes([__DIR__ . '/../database/migrations/2020_09_05_99999_create_todos_table.php' => base_path('/database/migrations/' . date('Y_m_d') . '_99999_create_admin_todos_table.php')], 'easy-panel-migrations');
105
+        $this->publishes([__DIR__.'/../database/migrations/2020_09_05_99999_create_todos_table.php' => base_path('/database/migrations/'.date('Y_m_d').'_99999_create_admin_todos_table.php')], 'easy-panel-migrations');
106 106
 
107 107
         $this->publishes([__DIR__.'/../resources/cruds' => resource_path('/cruds')], 'easy-panel-cruds');
108 108
     }
Please login to merge, or discard this patch.