Passed
Push — master ( 6c0273...880aed )
by Gombos
08:27 queued 04:49
created
src/Traits/HasSettingsTable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
     public function getSettingsValue(): array
35 35
     {
36 36
         if (config('model_settings.settings_table_use_cache')) {
37
-            return cache()->rememberForever($this->getSettingsCacheKey(), function () {
37
+            return cache()->rememberForever($this->getSettingsCacheKey(), function() {
38 38
                 return $this->__getSettingsValue();
39 39
             });
40 40
         }
Please login to merge, or discard this patch.
src/Traits/HasSettingsField.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 
24 24
     protected static function bootHasSettingsField()
25 25
     {
26
-        static::saving(function (self $model) {
26
+        static::saving(function(self $model) {
27 27
             $model->fixSettingsValue();
28 28
         });
29 29
     }
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
             return cache()->remember(
98 98
                 config('model_settings.settings_table_cache_prefix') . '::has_field',
99 99
                 now()->addDays(1),
100
-                function () {
100
+                function() {
101 101
                     return Schema::hasColumn($this->getTable(), $this->getSettingsFieldName());
102 102
                 }
103 103
             );
Please login to merge, or discard this patch.