Passed
Pull Request — master (#28)
by yasin
17:28
created
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_99999_create_todos_table.php' => base_path('/database/migrations/' . date('Y_m_d') . '_99999_create_admin_todos_table.php')], 'easy-panel-todo');
121
+        $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-todo');
122 122
 
123
-        $this->publishes([__DIR__ . '/../database/migrations/2021_07_17_99999_create_cruds_table.php' => base_path('/database/migrations/' . date('Y_m_d') . '_99999_create_cruds_table.php')], 'easy-panel-migration');
123
+        $this->publishes([__DIR__.'/../database/migrations/2021_07_17_99999_create_cruds_table.php' => base_path('/database/migrations/'.date('Y_m_d').'_99999_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.