| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 42 | 8 | public function getExpire($request, \DateTime $date) |
|
| 43 | { |
||
| 44 | 8 | if (!array_key_exists($request, $this->requests)) { |
|
| 45 | 1 | return $date->modify(self::DEFAULT_MODIFY); |
|
| 46 | } |
||
| 47 | |||
| 48 | 7 | if ($this->requests[$request]) { |
|
| 49 | 4 | return $date->modify($this->requests[$request]); |
|
| 50 | } |
||
| 51 | |||
| 52 | 3 | return null; |
|
| 53 | } |
||
| 54 | } |
||
| 55 |