Passed
Push — master ( 41fb62...e8aeaf )
by Reza
03:03
created
src/EasyPanelServiceProvider.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -24,8 +24,8 @@  discard block
 block discarded – undo
24 24
 {
25 25
     public function register()
26 26
     {
27
-        $this->mergeConfigFrom(__DIR__ . '/../config/easy_panel_config.php', 'easy_panel');
28
-        if(config('easy_panel.enable')) {
27
+        $this->mergeConfigFrom(__DIR__.'/../config/easy_panel_config.php', 'easy_panel');
28
+        if (config('easy_panel.enable')) {
29 29
             $this->defineFacades();
30 30
             $this->bindCommands();
31 31
         }
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 
34 34
     public function boot()
35 35
     {
36
-        if(config('easy_panel.enable')) {
36
+        if (config('easy_panel.enable')) {
37 37
 
38 38
             if (!$this->app->runningInConsole()) {
39 39
                 $this->registerMiddlewareAlias();
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
                 $this->loadLivewireComponent();
46 46
             }
47 47
 
48
-            $this->loadViewsFrom(__DIR__ . '/../resources/views', 'admin');
48
+            $this->loadViewsFrom(__DIR__.'/../resources/views', 'admin');
49 49
 
50 50
             $this->mergePublishes();
51 51
         }
@@ -55,8 +55,8 @@  discard block
 block discarded – undo
55 55
     {
56 56
         Route::prefix(config('easy_panel.route_prefix'))
57 57
             ->middleware(['web', 'auth', 'isAdmin'])
58
-            ->name(getRouteName() .'.')
59
-            ->group(__DIR__ . '/routes.php');
58
+            ->name(getRouteName().'.')
59
+            ->group(__DIR__.'/routes.php');
60 60
     }
61 61
 
62 62
     private function defineFacades()
@@ -80,13 +80,13 @@  discard block
 block discarded – undo
80 80
 
81 81
     private function mergePublishes()
82 82
     {
83
-        $this->publishes([__DIR__ . '/../config/easy_panel_config.php' => config_path('easy_panel.php')], 'easy-panel-config');
83
+        $this->publishes([__DIR__.'/../config/easy_panel_config.php' => config_path('easy_panel.php')], 'easy-panel-config');
84 84
 
85
-        $this->publishes([__DIR__ . '/../resources/views' => resource_path('/views/vendor/admin')], 'easy-panel-views');
85
+        $this->publishes([__DIR__.'/../resources/views' => resource_path('/views/vendor/admin')], 'easy-panel-views');
86 86
 
87
-        $this->publishes([__DIR__ . '/../resources/assets' => public_path('/assets/vendor/admin'), __DIR__ . '/../resources/dist' => public_path('/dist/vendor/admin')], 'easy-panel-styles');
87
+        $this->publishes([__DIR__.'/../resources/assets' => public_path('/assets/vendor/admin'), __DIR__.'/../resources/dist' => public_path('/dist/vendor/admin')], 'easy-panel-styles');
88 88
 
89
-        $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');
89
+        $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');
90 90
     }
91 91
 
92 92
     private function bindCommands()
Please login to merge, or discard this patch.