@@ -22,7 +22,9 @@ discard block |
||
| 22 | 22 | */ |
| 23 | 23 | public function hasExpired() |
| 24 | 24 | { |
| 25 | - if (is_null($this->valid_until)) return false; |
|
| 25 | + if (is_null($this->valid_until)) { |
|
| 26 | + return false; |
|
| 27 | + } |
|
| 26 | 28 | |
| 27 | 29 | return $this->valid_until->isPast(); |
| 28 | 30 | } |
@@ -34,7 +36,9 @@ discard block |
||
| 34 | 36 | */ |
| 35 | 37 | public function isFull() |
| 36 | 38 | { |
| 37 | - if ($this->max == 0) return false; |
|
| 39 | + if ($this->max == 0) { |
|
| 40 | + return false; |
|
| 41 | + } |
|
| 38 | 42 | |
| 39 | 43 | return $this->uses >= $this->max; |
| 40 | 44 | } |