Passed
Push — master ( 6b86f2...32da2e )
by Sebastien
04:17
created
src/Dashboard/Widget.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
      */
185 185
     public function isEditable()
186 186
     {
187
-        return ! empty($this->parameters) && ! empty($this->editView);
187
+        return !empty($this->parameters) && !empty($this->editView);
188 188
     }
189 189
 
190 190
     /**
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
     public function __get($prop)
207 207
     {
208 208
         if ($prop === 'label' || $prop === 'description') {
209
-            return __($this->{$prop}) ?: static::class . ' → ' . $prop;
209
+            return __($this->{$prop}) ?: static::class.' → '.$prop;
210 210
         }
211 211
 
212 212
         if ($prop === 'width' && empty($this->width)) {
Please login to merge, or discard this patch.
src/BoilerplateServiceProvider.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -74,17 +74,17 @@  discard block
 block discarded – undo
74 74
         $this->loadPusher();
75 75
 
76 76
         // Load routes
77
-        $this->loadRoutesFrom(__DIR__ . '/routes/boilerplate.php');
77
+        $this->loadRoutesFrom(__DIR__.'/routes/boilerplate.php');
78 78
         if (file_exists(base_path('routes/boilerplate.php'))) {
79 79
             $this->loadRoutesFrom(base_path('routes/boilerplate.php'));
80 80
         }
81 81
 
82 82
         // Load migrations, views and translations from current directory
83
-        $this->loadMigrationsFrom(__DIR__ . '/database/migrations');
84
-        $this->loadViewsFrom(__DIR__ . '/resources/views/components', 'boilerplate');
85
-        $this->loadViewsFrom(__DIR__ . '/resources/views', 'boilerplate');
86
-        $this->loadJSONTranslationsFrom(__DIR__ . '/resources/lang');
87
-        $this->loadTranslationsFrom(__DIR__ . '/resources/lang', 'boilerplate');
83
+        $this->loadMigrationsFrom(__DIR__.'/database/migrations');
84
+        $this->loadViewsFrom(__DIR__.'/resources/views/components', 'boilerplate');
85
+        $this->loadViewsFrom(__DIR__.'/resources/views', 'boilerplate');
86
+        $this->loadJSONTranslationsFrom(__DIR__.'/resources/lang');
87
+        $this->loadTranslationsFrom(__DIR__.'/resources/lang', 'boilerplate');
88 88
 
89 89
         // Add the impersonate middleware into the default web middleware group
90 90
         if (config('boilerplate.app.allowImpersonate', false)) {
@@ -101,28 +101,28 @@  discard block
 block discarded – undo
101 101
     private function bootInConsole()
102 102
     {
103 103
         $this->publishes([
104
-            __DIR__ . '/config' => config_path('boilerplate'),
104
+            __DIR__.'/config' => config_path('boilerplate'),
105 105
         ], ['boilerplate', 'boilerplate-config']);
106 106
 
107 107
         $this->publishes([
108
-            __DIR__ . '/public' => public_path('assets/vendor/boilerplate'),
108
+            __DIR__.'/public' => public_path('assets/vendor/boilerplate'),
109 109
         ], ['boilerplate', 'boilerplate-public', 'laravel-assets']);
110 110
 
111 111
         $this->publishes([
112
-            __DIR__ . '/resources/views' => resource_path('views/vendor/boilerplate'),
112
+            __DIR__.'/resources/views' => resource_path('views/vendor/boilerplate'),
113 113
         ], 'boilerplate-views');
114 114
 
115 115
         $this->publishes([
116
-            __DIR__ . '/Console/stubs/dashboard.blade.php.stub' => resource_path('views/vendor/boilerplate/dashboard.blade.php'),
117
-            __DIR__ . '/config/menu.php'                        => config_path('boilerplate/menu.php'),
116
+            __DIR__.'/Console/stubs/dashboard.blade.php.stub' => resource_path('views/vendor/boilerplate/dashboard.blade.php'),
117
+            __DIR__.'/config/menu.php'                        => config_path('boilerplate/menu.php'),
118 118
         ], 'boilerplate-dashboard');
119 119
 
120 120
         $this->publishes([
121
-            __DIR__ . '/resources/lang' => app()->langPath() . '/vendor/boilerplate',
121
+            __DIR__.'/resources/lang' => app()->langPath().'/vendor/boilerplate',
122 122
         ], 'boilerplate-lang');
123 123
 
124 124
         $this->publishes([
125
-            __DIR__ . '/resources/laravel-lang' => app()->langPath(),
125
+            __DIR__.'/resources/laravel-lang' => app()->langPath(),
126 126
         ], ['boilerplate-lang']);
127 127
 
128 128
         $this->commands([
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
         Blade::directive('once', function () {
159 159
             $id = (string)Str::uuid();
160 160
 
161
-            return '<?php if (! $__env->hasRenderedOnce("' . $id . '")): $__env->markAsRenderedOnce("' . $id . '"); ?>';
161
+            return '<?php if (! $__env->hasRenderedOnce("'.$id.'")): $__env->markAsRenderedOnce("'.$id.'"); ?>';
162 162
         });
163 163
 
164 164
         Blade::directive('endonce', function () {
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
             View::composer([
208 208
                 "boilerplate::$component",
209 209
                 "boilerplate::components.$component",
210
-            ], 'Sebastienheyd\Boilerplate\View\Composers\\' . ucfirst($component) . 'Composer');
210
+            ], 'Sebastienheyd\Boilerplate\View\Composers\\'.ucfirst($component).'Composer');
211 211
         }
212 212
     }
213 213
 
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
     {
221 221
         // Get config
222 222
         foreach (['app', 'auth', 'dashboard', 'laratrust', 'locale', 'menu', 'theme'] as $config) {
223
-            $this->mergeConfigFrom(__DIR__ . "/config/$config.php", "boilerplate.$config");
223
+            $this->mergeConfigFrom(__DIR__."/config/$config.php", "boilerplate.$config");
224 224
         }
225 225
 
226 226
         // Overriding Laravel config
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
             'boilerplate.app.locale'       => config('boilerplate.app.locale', config('boilerplate.locale.default')),
234 234
         ]);
235 235
 
236
-        if (config('boilerplate.app.logs', true) && ! in_array('daily', config('logging.channels.stack.channels'))) {
236
+        if (config('boilerplate.app.logs', true) && !in_array('daily', config('logging.channels.stack.channels'))) {
237 237
             config([
238 238
                 'logging.channels.stack.channels' => array_merge(['daily'], config('logging.channels.stack.channels')),
239 239
             ]);
Please login to merge, or discard this patch.