| Conditions | 6 |
| Paths | 1 |
| Total Lines | 27 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | protected function init() { |
||
| 25 | |||
| 26 | $this->config->addParam('rank', '', function (int $rank = null) { |
||
|
|
|||
| 27 | |||
| 28 | return ((null !== $rank) ? ("ent.rank >= " . $rank) : ''); |
||
| 29 | }); |
||
| 30 | |||
| 31 | $this->config->addParam('time_registered >=', '', function (int $time) { |
||
| 32 | |||
| 33 | return ((0 < $time) ? ("ent.time_registered >= " . $time) : ''); |
||
| 34 | }); |
||
| 35 | |||
| 36 | $this->config->addParam('time_registered <=', '', function (int $time) { |
||
| 37 | |||
| 38 | return ((0 < $time) ? ("ent.time_registered <= " . $time) : ''); |
||
| 39 | }); |
||
| 40 | |||
| 41 | $this->config->addParam('time_logged >=', '', function (int $time) { |
||
| 42 | |||
| 43 | return ((0 < $time) ? ("ent.time_logged >= " . $time) : ''); |
||
| 44 | }); |
||
| 45 | |||
| 46 | $this->config->addParam('time_logged <=', '', function (int $time) { |
||
| 47 | |||
| 48 | return ((0 < $time) ? ("ent.time_logged <= " . $time) : ''); |
||
| 49 | }); |
||
| 50 | } |
||
| 51 | } |
||
| 53 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: