Passed
Push — master ( 2558e3...29b491 )
by Andreas
03:43
created
src/Setting.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
      */
191 191
     public static function allSettings() : array
192 192
     {
193
-        return Cache::rememberForever('settings.all', function () {
193
+        return Cache::rememberForever('settings.all', function() {
194 194
             return $settings = self::all()->keyBy('key')->toArray();
195 195
         });
196 196
     }
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
     public static function getValidationRules() : array
215 215
     {
216 216
         if ('mysql' === \DB::connection()->getPDO()->getAttribute(\PDO::ATTR_DRIVER_NAME)) {
217
-            return Cache::rememberForever('settings.rules', function () {
217
+            return Cache::rememberForever('settings.rules', function() {
218 218
                 return Setting::select(\DB::raw('concat_ws("|", rules, type) as rules, `key`'))
219 219
                             ->pluck('rules', 'key')
220 220
                             ->toArray();
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
         }
223 223
 
224 224
 
225
-        return Cache::rememberForever('settings.rules', function () {
225
+        return Cache::rememberForever('settings.rules', function() {
226 226
             return Setting::select(\DB::raw("printf('%s|%s', rules, type) as rules, `key`"))
227 227
                             ->pluck('rules', 'key')
228 228
                             ->toArray();
@@ -247,13 +247,13 @@  discard block
 block discarded – undo
247 247
     {
248 248
         parent::boot();
249 249
 
250
-        static::deleted(function () {
250
+        static::deleted(function() {
251 251
             self::flushCache();
252 252
         });
253
-        static::updated(function () {
253
+        static::updated(function() {
254 254
             self::flushCache();
255 255
         });
256
-        static::created(function () {
256
+        static::created(function() {
257 257
             self::flushCache();
258 258
         });
259 259
     }
Please login to merge, or discard this patch.