Passed
Push — master ( 567908...d5a2f9 )
by Fèvre
06:56
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.
app/Http/Controllers/PageController.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 use Illuminate\Contracts\View\Factory;
8 8
 use Illuminate\Foundation\Application;
9 9
 use Illuminate\Http\RedirectResponse;
10
-use Illuminate\Http\Request ;
10
+use Illuminate\Http\Request;
11 11
 use Illuminate\Support\Facades\App;
12 12
 use Illuminate\Support\Facades\Auth;
13 13
 use Illuminate\Support\Facades\Mail;
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -93,8 +93,8 @@
 block discarded – undo
93 93
         Mail::to(config('xetaravel.site.contact_email'))->send(new Contact($details));
94 94
 
95 95
         return redirect()
96
-           ->route('page.contact')
97
-           ->success('Thanks for contacting me ! I will answer you as fast as I can !');
96
+            ->route('page.contact')
97
+            ->success('Thanks for contacting me ! I will answer you as fast as I can !');
98 98
     }
99 99
 
100 100
     /**
Please login to merge, or discard this patch.
app/View/Components/Textarea.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
     /**
38 38
      * Get the view / contents that represent the component.
39 39
      */
40
-    public function render(): View|Closure|string
40
+    public function render(): View | Closure | string
41 41
     {
42 42
         return view('components.textarea');
43 43
     }
Please login to merge, or discard this patch.
app/View/Components/Markdown.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
     /**
72 72
      * Get the view / contents that represent the component.
73 73
      */
74
-    public function render(): View|Closure|string
74
+    public function render(): View | Closure | string
75 75
     {
76 76
         return view('components.markdown');
77 77
     }
Please login to merge, or discard this patch.
app/View/Components/Modal.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     /**
29 29
      * Get the view / contents that represent the component.
30 30
      */
31
-    public function render(): View|Closure|string
31
+    public function render(): View | Closure | string
32 32
     {
33 33
         return view('components.modal');
34 34
     }
Please login to merge, or discard this patch.
app/View/Components/Header.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     /**
41 41
      * Get the view / contents that represent the component.
42 42
      */
43
-    public function render(): View|Closure|string
43
+    public function render(): View | Closure | string
44 44
     {
45 45
         return view('components.header');
46 46
     }
Please login to merge, or discard this patch.
app/View/Components/ListItem.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
     public string $uuid;
12 12
 
13 13
     public function __construct(
14
-        public object|array $item,
14
+        public object | array $item,
15 15
         public string $avatar = 'avatar',
16 16
         public string $value = 'name',
17 17
         public ?string $subValue = '',
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     /**
29 29
      * Get the view / contents that represent the component.
30 30
      */
31
-    public function render(): View|Closure|string
31
+    public function render(): View | Closure | string
32 32
     {
33 33
         return view('components.list-item');
34 34
     }
Please login to merge, or discard this patch.
app/View/Components/Choices.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
         public ?string $optionAvatar = 'avatar',
41 41
         public ?bool $valuesAsString = false,
42 42
         public ?string $height = 'max-h-64',
43
-        public Collection|array $options = new Collection(),
43
+        public Collection | array $options = new Collection(),
44 44
         public ?string $noResultText = 'No results found.',
45 45
 
46 46
         // Validations
@@ -95,12 +95,12 @@  discard block
 block discarded – undo
95 95
             return "'$value'";
96 96
         }
97 97
 
98
-        return is_numeric($value) && ! str($value)->startsWith('0') ? $value : "'$value'";
98
+        return is_numeric($value) && !str($value)->startsWith('0') ? $value : "'$value'";
99 99
     }
100 100
     /**
101 101
      * Get the view / contents that represent the component.
102 102
      */
103
-    public function render(): View|Closure|string
103
+    public function render(): View | Closure | string
104 104
     {
105 105
         return view('components.choices');
106 106
     }
Please login to merge, or discard this patch.