@@ -16,14 +16,18 @@ |
||
| 16 | 16 | |
| 17 | 17 | public function hasExpired() |
| 18 | 18 | { |
| 19 | - if(is_null($this->valid_until)) return false; |
|
| 19 | + if(is_null($this->valid_until)) { |
|
| 20 | + return false; |
|
| 21 | + } |
|
| 20 | 22 | |
| 21 | 23 | return $this->valid_until->isPast(); |
| 22 | 24 | } |
| 23 | 25 | |
| 24 | 26 | public function isFull() |
| 25 | 27 | { |
| 26 | - if($this->max == 0) return false; |
|
| 28 | + if($this->max == 0) { |
|
| 29 | + return false; |
|
| 30 | + } |
|
| 27 | 31 | |
| 28 | 32 | return $this->uses >= $this->max; |
| 29 | 33 | } |