Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | 13 | protected function generate() |
|
10 | { |
||
11 | 13 | $this->description = '3FM Serious Request'; |
|
12 | |||
13 | 13 | if ($this->year >= 2004) { |
|
14 | 4 | $this->setupDateTimeObjects($this->generateDateTime($this->year, 12, 19), $this->generateDateTime($this->year, 12, 24)); |
|
15 | 4 | $this->valid = true; |
|
16 | 4 | } else { |
|
17 | 9 | $this->valid = false; |
|
18 | } |
||
19 | 13 | } |
|
20 | } |
||
21 |