Conditions | 4 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
48 | public function shouldRun($time = null) { |
||
49 | if (isset($this->properties['update-frequency']) && $this->lastRun !== 0) { |
||
50 | $frequency = $this->properties['update-frequency']; |
||
51 | $static = ['always' => true, 'never' => false]; |
||
52 | if (isset($static[$frequency])) return $static[$frequency]; |
||
53 | else return $this->timeFrequency($frequency, $time); |
||
54 | |||
55 | } |
||
56 | else return true; |
||
57 | } |
||
58 | } |