Passed
Push — main ( 73e694...285687 )
by Thierry
07:41
created
app/Http/Controllers/ReportController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
         $session = $this->sessionService->getSession($sessionId);
60 60
         view()->share($this->reportService->getSessionReport($session));
61 61
         // Show the html page
62
-        if($request->has('html'))
62
+        if ($request->has('html'))
63 63
         {
64 64
             return view($this->printerService->getSessionReportPath());
65 65
         }
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
         $session = $this->sessionService->getSession($sessionId);
98 98
         view()->share($this->reportService->getSavingsReport($session));
99 99
         // Show the html page
100
-        if($request->has('html'))
100
+        if ($request->has('html'))
101 101
         {
102 102
             return view($this->printerService->getSavingsReportPath());
103 103
         }
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
         $session = $this->sessionService->getSession($sessionId);
122 122
         view()->share($this->reportService->getCreditReport($session));
123 123
         // Show the html page
124
-        if($request->has('html'))
124
+        if ($request->has('html'))
125 125
         {
126 126
             return view($this->printerService->getCreditReportPath());
127 127
         }
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
         $round = $this->roundService->getRound($roundId);
144 144
         view()->share($this->reportService->getRoundReport($round));
145 145
         // Show the html page
146
-        if($request->has('html'))
146
+        if ($request->has('html'))
147 147
         {
148 148
             return view($this->printerService->getRoundReportPath());
149 149
         }
Please login to merge, or discard this patch.
src/Service/Report/ReportService.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -205,8 +205,7 @@
 block discarded – undo
205 205
                     ->join('sessions', 'loans.session_id', '=', 'sessions.id')
206 206
                     ->whereIn('session_id', $sessions->pluck('id'))
207 207
                     ->where(fn(Builder $query) => $fund->id > 0 ?
208
-                        $query->where('fund_id', $fund->id) :
209
-                        $query->whereNull('fund_id'))
208
+                        $query->where('fund_id', $fund->id) : $query->whereNull('fund_id'))
210 209
                     ->with(['member', 'session', 'debts.refund', 'debts.refund.session',
211 210
                         'debts.partial_refunds', 'debts.partial_refunds.session'])
212 211
                     ->orderBy('sessions.start_at')
Please login to merge, or discard this patch.