| Total Complexity | 2 |
| Total Lines | 9 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 9 | /** |
||
| 10 | * @property string $error |
||
| 11 | */ |
||
| 12 | class Auth extends Middleware{ |
||
| 13 | |||
| 14 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
||
| 15 | { |
||
| 16 | if(!array_key_exists('user',$_SESSION)){ |
||
| 17 | $this->error = 'The user must be logged in to the system'; |
||
| 18 | } |
||
| 23 | } |