| Total Complexity | 2 |
| Total Lines | 13 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class User extends Filter{ |
||
| 6 | |||
| 7 | public function user_in(): bool |
||
| 8 | { |
||
| 9 | $this->addMessage('user_in','User required to be logged in.'); |
||
| 10 | |||
| 11 | $this->addTreat('user_in','report_notLogged'); |
||
| 12 | |||
| 13 | return (array_key_exists('user',$_SESSION)); |
||
| 14 | } |
||
| 15 | |||
| 16 | public function report_notLogged(): void |
||
| 18 | |||
| 19 | } |
||
| 21 | } |