Passed
Push — master ( 68a8be...31a5ca )
by Andreas
03:39
created
src/Setting.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
 
224 224
         if ($setting->type === 'boolean' && is_string($value)) {
225 225
             $value = ($value === 'false') ? false : $value;
226
-            $value = ($value === 'true')  ? true  : $value;
226
+            $value = ($value === 'true') ? true  : $value;
227 227
         }
228 228
 
229 229
         if ($validate && !$setting->validateNewValue($value)) {
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
      */
259 259
     public static function allSettings() : array
260 260
     {
261
-        return Cache::rememberForever('settings.all', function () {
261
+        return Cache::rememberForever('settings.all', function() {
262 262
             return $settings = self::all()->keyBy('key')->toArray();
263 263
         });
264 264
     }
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
     public static function getValidationRules() : array
283 283
     {
284 284
         if ('mysql' === \DB::connection()->getPDO()->getAttribute(\PDO::ATTR_DRIVER_NAME)) {
285
-            return Cache::rememberForever('settings.rules', function () {
285
+            return Cache::rememberForever('settings.rules', function() {
286 286
                 return Setting::select(\DB::raw('concat_ws("|", rules, type) as rules, `key`'))
287 287
                             ->pluck('rules', 'key')
288 288
                             ->toArray();
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
         }
291 291
 
292 292
 
293
-        return Cache::rememberForever('settings.rules', function () {
293
+        return Cache::rememberForever('settings.rules', function() {
294 294
             return Setting::select(\DB::raw("printf('%s|%s', rules, type) as rules, `key`"))
295 295
                             ->pluck('rules', 'key')
296 296
                             ->toArray();
@@ -315,13 +315,13 @@  discard block
 block discarded – undo
315 315
     {
316 316
         parent::boot();
317 317
 
318
-        static::deleted(function () {
318
+        static::deleted(function() {
319 319
             self::flushCache();
320 320
         });
321
-        static::updated(function () {
321
+        static::updated(function() {
322 322
             self::flushCache();
323 323
         });
324
-        static::created(function () {
324
+        static::created(function() {
325 325
             self::flushCache();
326 326
         });
327 327
     }
Please login to merge, or discard this patch.