Passed
Push — master ( 6113e5...b6ce23 )
by Reza
14:09
created
src/EasyPanelServiceProvider.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -35,10 +35,10 @@  discard block
 block discarded – undo
35 35
     public function register()
36 36
     {
37 37
         // Here we merge config with 'easy_panel' key
38
-        $this->mergeConfigFrom(__DIR__ . '/../config/easy_panel_config.php', 'easy_panel');
38
+        $this->mergeConfigFrom(__DIR__.'/../config/easy_panel_config.php', 'easy_panel');
39 39
 
40 40
         // Check the status of module
41
-        if(!config('easy_panel.enable')) {
41
+        if (!config('easy_panel.enable')) {
42 42
             return;
43 43
         }
44 44
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 
55 55
     public function boot()
56 56
     {
57
-        if(!config('easy_panel.enable')) {
57
+        if (!config('easy_panel.enable')) {
58 58
             return;
59 59
         }
60 60
 
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         }
64 64
 
65 65
         // Load Views
66
-        $this->loadViewsFrom(__DIR__ . '/../resources/views', 'admin');
66
+        $this->loadViewsFrom(__DIR__.'/../resources/views', 'admin');
67 67
 
68 68
         // Register Middleware
69 69
         $this->registerMiddlewareAlias();
@@ -77,11 +77,11 @@  discard block
 block discarded – undo
77 77
 
78 78
     private function defineRoutes()
79 79
     {
80
-        if(!$this->app->routesAreCached()) {
80
+        if (!$this->app->routesAreCached()) {
81 81
             Route::prefix(config('easy_panel.route_prefix'))
82 82
                 ->middleware(['web', 'auth', 'isAdmin', 'LangChanger'])
83
-                ->name(getRouteName() . '.')
84
-                ->group(__DIR__ . '/routes.php');
83
+                ->name(getRouteName().'.')
84
+                ->group(__DIR__.'/routes.php');
85 85
         }
86 86
     }
87 87
 
@@ -107,13 +107,13 @@  discard block
 block discarded – undo
107 107
 
108 108
     private function mergePublishes()
109 109
     {
110
-        $this->publishes([__DIR__ . '/../config/easy_panel_config.php' => config_path('easy_panel.php')], 'easy-panel-config');
110
+        $this->publishes([__DIR__.'/../config/easy_panel_config.php' => config_path('easy_panel.php')], 'easy-panel-config');
111 111
 
112
-        $this->publishes([__DIR__ . '/../resources/views' => resource_path('/views/vendor/admin')], 'easy-panel-views');
112
+        $this->publishes([__DIR__.'/../resources/views' => resource_path('/views/vendor/admin')], 'easy-panel-views');
113 113
 
114
-        $this->publishes([__DIR__ . '/../resources/assets' => public_path('/assets/admin')], 'easy-panel-styles');
114
+        $this->publishes([__DIR__.'/../resources/assets' => public_path('/assets/admin')], 'easy-panel-styles');
115 115
 
116
-        $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');
116
+        $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');
117 117
 
118 118
         $this->publishes([__DIR__.'/../resources/lang' => resource_path('/lang')], 'easy-panel-lang');
119 119
     }
Please login to merge, or discard this patch.
src/Parsers/HTMLInputs/BaseInput.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,12 +27,12 @@
 block discarded – undo
27 27
         $this->action = $action;
28 28
     }
29 29
 
30
-    public function render(){
30
+    public function render() {
31 31
         $name = $this->name;
32 32
 
33 33
         // Create an instance of input class
34 34
         // then call handle() method to get input as a steing
35
-        if(!is_array($this->type)) {
35
+        if (!is_array($this->type)) {
36 36
             $inputStringClass = static::classMap[$this->type];
37 37
             $input = (new $inputStringClass())->handle($name);
38 38
         } else {
Please login to merge, or discard this patch.
src/Parsers/HTMLInputs/Select.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -8,17 +8,17 @@
 block discarded – undo
8 8
     public function handle($name, $values, $action)
9 9
     {
10 10
 
11
-        if(!class_exists($values[0])) {
11
+        if (!class_exists($values[0])) {
12 12
             return "<select wire:model='$name' class=\"form-control @error('$name') is-invalid @enderror\" id='input$name'>
13
-                    @foreach(config('easy_panel.crud.$action.fields.$name')['select'] as " . '$key => $value' . ")
14
-                        <option value='{{ " . '$key' . " }}'>{{ " . '$value' . " }}</option>
13
+                    @foreach(config('easy_panel.crud.$action.fields.$name')['select'] as ".'$key => $value'.")
14
+                        <option value='{{ " . '$key'." }}'>{{ ".'$value'." }}</option>
15 15
                     @endforeach
16 16
                 </select>";
17 17
         }
18 18
 
19 19
         return "<select wire:model='$name' class=\"form-control @error('$name') is-invalid @enderror\" id='input$name'>
20
-                    @foreach((new $values[0])->pluck('$values[2]', '$values[1]') as " . '$key => $value' . ")
21
-                        <option value='{{ " . '$key' . " }}'>{{ " . '$value' . " }}</option>
20
+                    @foreach((new $values[0])->pluck('$values[2]', '$values[1]') as ".'$key => $value'.")
21
+                        <option value='{{ " . '$key'." }}'>{{ ".'$value'." }}</option>
22 22
                     @endforeach
23 23
                 </select>";
24 24
 
Please login to merge, or discard this patch.