@@ -134,10 +134,8 @@ discard block |
||
| 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 |
||
| 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 | } |