| Conditions | 4 |
| Paths | 3 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 37 | public function shouldRun($time) { |
||
|
|
|||
| 38 | if (isset($this->properties['update-frequency']) && $this->lastRun !== 0) { |
||
| 39 | $frequency = $this->properties['update-frequency']; |
||
| 40 | $static = ['always' => true, 'never' => false]; |
||
| 41 | if (isset($static[$frequency])) return $static[$frequency]; |
||
| 42 | } |
||
| 43 | else return true; |
||
| 44 | } |
||
| 45 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.