Passed
Pull Request — main (#55)
by Thierry
05:38
created
src/Validation/Meeting/ClosingValidator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,13 +32,13 @@
 block discarded – undo
32 32
         $validator = Validator::make($this->values($values), [
33 33
             'amount' => 'required|regex:/^\d+(\.\d{1,2})?$/',
34 34
         ]);
35
-        if($validator->fails())
35
+        if ($validator->fails())
36 36
         {
37 37
             throw new ValidationException($validator);
38 38
         }
39 39
 
40 40
         $validated = $validator->validated();
41
-        $validated['amount'] = $this->localeService->convertMoneyToInt((float)$validated['amount']);
41
+        $validated['amount'] = $this->localeService->convertMoneyToInt((float) $validated['amount']);
42 42
         return $validated;
43 43
     }
44 44
 }
Please login to merge, or discard this patch.
app/Ajax/Web/Tontine/Fund.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
             'title' => trans('common.actions.cancel'),
59 59
             'class' => 'btn btn-tertiary',
60 60
             'click' => 'close',
61
-        ],[
61
+        ], [
62 62
             'title' => trans('common.actions.save'),
63 63
             'class' => 'btn btn-primary',
64 64
             'click' => $this->rq()->create(pm()->form('fund-form')),
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
             'title' => trans('common.actions.cancel'),
90 90
             'class' => 'btn btn-tertiary',
91 91
             'click' => 'close',
92
-        ],[
92
+        ], [
93 93
             'title' => trans('common.actions.save'),
94 94
             'class' => 'btn btn-primary',
95 95
             'click' => $this->rq()->update($fund->id, pm()->form('fund-form')),
Please login to merge, or discard this patch.
app/Ajax/Web/Tontine/Category.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
             'title' => trans('common.actions.cancel'),
65 65
             'class' => 'btn btn-tertiary',
66 66
             'click' => 'close',
67
-        ],[
67
+        ], [
68 68
             'title' => trans('common.actions.save'),
69 69
             'class' => 'btn btn-primary',
70 70
             'click' => $this->rq()->create(pm()->form('category-form')),
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
             'title' => trans('common.actions.cancel'),
102 102
             'class' => 'btn btn-tertiary',
103 103
             'click' => 'close',
104
-        ],[
104
+        ], [
105 105
             'title' => trans('common.actions.save'),
106 106
             'class' => 'btn btn-primary',
107 107
             'click' => $this->rq()->update($category->id, pm()->form('category-form')),
Please login to merge, or discard this patch.
app/Ajax/Web/Meeting/Saving/Closing.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -79,13 +79,13 @@  discard block
 block discarded – undo
79 79
 
80 80
     public function editClosing(int $fundId)
81 81
     {
82
-        if($this->session->closed)
82
+        if ($this->session->closed)
83 83
         {
84 84
             $this->notify->warning(trans('meeting.warnings.session.closed'));
85 85
             return $this->response;
86 86
         }
87 87
         $funds = $this->fundService->getFundList();
88
-        if(!isset($funds[$fundId]))
88
+        if (!isset($funds[$fundId]))
89 89
         {
90 90
             return $this->response;
91 91
         }
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
     public function saveClosing(int $fundId, array $formValues)
116 116
     {
117 117
         $funds = $this->fundService->getFundList();
118
-        if(!isset($funds[$fundId]))
118
+        if (!isset($funds[$fundId]))
119 119
         {
120 120
             return $this->response;
121 121
         }
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
     public function deleteClosing(int $fundId)
133 133
     {
134 134
         $funds = $this->fundService->getFundList();
135
-        if(!isset($funds[$fundId]))
135
+        if (!isset($funds[$fundId]))
136 136
         {
137 137
             return $this->response;
138 138
         }
Please login to merge, or discard this patch.
app/Ajax/Web/Meeting/Pool/Remitment.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
         ]);
64 64
         $this->response->html('meeting-remitments', $html);
65 65
 
66
-        if($hasAuctions)
66
+        if ($hasAuctions)
67 67
         {
68 68
             $this->jq('#btn-remitment-auctions')->click($this->cl(Auction::class)->rq()->home());
69 69
         }
Please login to merge, or discard this patch.
app/Ajax/Web/Meeting/Pool/Auction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
      */
101 101
     public function togglePayment(string $auctionId)
102 102
     {
103
-        if($this->session->closed)
103
+        if ($this->session->closed)
104 104
         {
105 105
             $this->notify->warning(trans('meeting.warnings.session.closed'));
106 106
             return $this->response;
Please login to merge, or discard this patch.
src/Validation/Planning/SessionValidator.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,18 +46,18 @@  discard block
 block discarded – undo
46 46
             'host_id' => 'integer|min:0',
47 47
         ]);
48 48
         $validator->after(function($validator) use($values) {
49
-            if($this->sessionDateExists($values['date'], $values['id'] ?? 0))
49
+            if ($this->sessionDateExists($values['date'], $values['id'] ?? 0))
50 50
             {
51 51
                 $validator->errors()->add('date', trans('tontine.session.errors.date_dup'));
52 52
             }
53 53
         });
54
-        if($validator->fails())
54
+        if ($validator->fails())
55 55
         {
56 56
             throw new ValidationException($validator);
57 57
         }
58 58
 
59 59
         $validated = $validator->validated();
60
-        if(!$validated['host_id'])
60
+        if (!$validated['host_id'])
61 61
         {
62 62
             $validated['host_id'] = null;
63 63
         }
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
             'venue' => 'nullable|string',
76 76
             'notes' => 'nullable|string',
77 77
         ]);
78
-        if($validator->fails())
78
+        if ($validator->fails())
79 79
         {
80 80
             throw new ValidationException($validator);
81 81
         }
Please login to merge, or discard this patch.
src/Service/Report/Pdf/PrinterService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,10 +23,10 @@
 block discarded – undo
23 23
         $config = [
24 24
             ...$this->config,
25 25
             ...$config,
26
-            'headerTemplate' => (string)view("$templatePath.tpl.header"),
27
-            'footerTemplate' => (string)view("$templatePath.tpl.footer"),
26
+            'headerTemplate' => (string) view("$templatePath.tpl.header"),
27
+            'footerTemplate' => (string) view("$templatePath.tpl.footer"),
28 28
         ];
29
-        return GeneratorFacade::getPdf((string)view($templatePath), $config);
29
+        return GeneratorFacade::getPdf((string) view($templatePath), $config);
30 30
     }
31 31
 
32 32
     /**
Please login to merge, or discard this patch.
src/Validation/Tontine/OptionsValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
             'reports.template' => 'required|string|in:default,raptor',
21 21
         ]);
22 22
 
23
-        if($validator->fails())
23
+        if ($validator->fails())
24 24
         {
25 25
             throw new ValidationException($validator);
26 26
         }
Please login to merge, or discard this patch.