Passed
Push — main ( e79a33...917ae8 )
by Thierry
05:12
created
src/Service/TenantService.php 1 patch
Spacing   +3 added lines, -5 removed lines patch added patch discarded remove patch
@@ -134,10 +134,8 @@  discard block
 block discarded – undo
134 134
             ->orderBy('start_at', $orderAsc ? 'asc' : 'desc')
135 135
             ->get();
136 136
 
137
-        return $lastSession === null ? $sessions :
138
-            $sessions->filter(function($session) use($lastSession, $withCurrent) {
139
-                return $withCurrent ? $session->start_at <= $lastSession->start_at :
140
-                    $session->start_at < $lastSession->start_at;
137
+        return $lastSession === null ? $sessions : $sessions->filter(function($session) use($lastSession, $withCurrent) {
138
+                return $withCurrent ? $session->start_at <= $lastSession->start_at : $session->start_at < $lastSession->start_at;
141 139
             });
142 140
     }
143 141
 
@@ -191,7 +189,7 @@  discard block
 block discarded – undo
191 189
     public function getPool(int $poolId, bool $with = false): ?Pool
192 190
     {
193 191
         $pools = $this->round->pools();
194
-        if($with)
192
+        if ($with)
195 193
         {
196 194
             $pools->with(['subscriptions.receivables.deposit']);
197 195
         }
Please login to merge, or discard this patch.