Passed
Push — 5.0.0 ( 76aff9...d50cf6 )
by Fèvre
05:16
created
app/Models/Repositories/SettingRepository.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -35,13 +35,13 @@
 block discarded – undo
35 35
 
36 36
             // Cast the value the same as the old value to not change the type
37 37
             if (is_bool($setting->value)) {
38
-                $value = (bool)$value;
38
+                $value = (bool) $value;
39 39
             } elseif (is_int($setting->value)) {
40
-                $value = (int)$value;
40
+                $value = (int) $value;
41 41
             } elseif (is_float($setting->value)) {
42
-                $value = (float)$value;
42
+                $value = (float) $value;
43 43
             } else {
44
-                $value = (string)$value;
44
+                $value = (string) $value;
45 45
             }
46 46
 
47 47
             // Assign the new value dans save it.
Please login to merge, or discard this patch.
app/Settings/Settings.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 
12 12
 class Settings
13 13
 {
14
-    protected null|array $context = [
14
+    protected null | array $context = [
15 15
         'model_type' => null,
16 16
         'model_id' => null
17 17
     ];
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      *
73 73
      * @return $this
74 74
      */
75
-    public function setContext(Model|array|null $context = null): self
75
+    public function setContext(Model | array | null $context = null): self
76 76
     {
77 77
         if ($context instanceof Model) {
78 78
             $this->context['model_type'] = get_class($context);
Please login to merge, or discard this patch.