Passed
Pull Request — master (#77)
by
unknown
03:17
created
src/EasyPanelServiceProvider.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     public function register()
38 38
     {
39 39
         // Here we merge config with 'easy_panel' key
40
-        $this->mergeConfigFrom(__DIR__ . '/../config/easy_panel_config.php', 'easy_panel');
40
+        $this->mergeConfigFrom(__DIR__.'/../config/easy_panel_config.php', 'easy_panel');
41 41
 
42 42
         // Check the status of module
43 43
         if (!config('easy_panel.enable')) {
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         $this->bindCommands();
72 72
 
73 73
         // Load Views with 'admin::' prefix
74
-        $this->loadViewsFrom(__DIR__ . '/../resources/views', 'admin');
74
+        $this->loadViewsFrom(__DIR__.'/../resources/views', 'admin');
75 75
 
76 76
         // Register Middleware
77 77
         $this->registerMiddlewareAlias();
@@ -96,20 +96,20 @@  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 105
         $this->publishes([
106
-            __DIR__ . '/../database/migrations/cruds_table.php' => base_path('/database/migrations/' . date('Y_m_d') . '_999999_create_cruds_table_easypanel.php'),
107
-            __DIR__ . '/../database/migrations/panel_admins_table.php' => base_path('/database/migrations/' . date('Y_m_d') . '_999999_create_panel_admins_table_easypanel.php'),
106
+            __DIR__.'/../database/migrations/cruds_table.php' => base_path('/database/migrations/'.date('Y_m_d').'_999999_create_cruds_table_easypanel.php'),
107
+            __DIR__.'/../database/migrations/panel_admins_table.php' => base_path('/database/migrations/'.date('Y_m_d').'_999999_create_panel_admins_table_easypanel.php'),
108 108
         ], 'easy-panel-migration');
109 109
 
110
-        $this->publishes([__DIR__ . '/../resources/lang' => app()->langPath()], 'easy-panel-lang');
110
+        $this->publishes([__DIR__.'/../resources/lang' => app()->langPath()], 'easy-panel-lang');
111 111
 
112
-        $this->publishes([__DIR__ . '/Commands/stub' => base_path('/stubs/panel')], 'easy-panel-stubs');
112
+        $this->publishes([__DIR__.'/Commands/stub' => base_path('/stubs/panel')], 'easy-panel-stubs');
113 113
     }
114 114
 
115 115
     private function bindCommands()
@@ -178,8 +178,8 @@  discard block
 block discarded – undo
178 178
 
179 179
             Route::prefix(config('easy_panel.route_prefix'))
180 180
                 ->middleware($middlewares)
181
-                ->name(getRouteName() . '.')
182
-                ->group(__DIR__ . '/routes.php');
181
+                ->name(getRouteName().'.')
182
+                ->group(__DIR__.'/routes.php');
183 183
         }
184 184
     }
185 185
 
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
     {
188 188
         $model = !$this->app->runningUnitTests() ? config('easy_panel.user_model') : User::class;
189 189
 
190
-        $model::resolveRelationUsing('panelAdmin', function ($userModel) {
190
+        $model::resolveRelationUsing('panelAdmin', function($userModel) {
191 191
             return $userModel->hasOne(PanelAdmin::class)->latest();
192 192
         });
193 193
     }
Please login to merge, or discard this patch.
database/migrations/cruds_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
      */
22 22
     public function up()
23 23
     {
24
-        Schema::create(config('easy_panel.database.crud_table'), function (Blueprint $table) {
24
+        Schema::create(config('easy_panel.database.crud_table'), function(Blueprint $table) {
25 25
             $table->id();
26 26
             $table->string('name')->unique();
27 27
             $table->string('model')->unique();
Please login to merge, or discard this patch.
database/migrations/panel_admins_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
      */
21 21
     public function up()
22 22
     {
23
-        Schema::create(config('easy_panel.database.panel_admin_table'), function (Blueprint $table) {
23
+        Schema::create(config('easy_panel.database.panel_admin_table'), function(Blueprint $table) {
24 24
             $table->id();
25 25
             $table->foreignId('user_id')->constrained();
26 26
             $table->boolean('is_superuser');
Please login to merge, or discard this patch.