| Total Complexity | 6 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | abstract class Controller extends ViewController |
||
| 27 | { |
||
| 28 | public function __construct() |
||
| 31 | } |
||
| 32 | |||
| 33 | private function isLogged() |
||
| 34 | { |
||
| 35 | return true; |
||
| 36 | } |
||
| 37 | |||
| 38 | public function doLogin() |
||
| 39 | { |
||
| 40 | dump($_POST); |
||
| 41 | die('Ahora haría un login'); |
||
|
|
|||
| 42 | } |
||
| 43 | |||
| 44 | public function index(bool $executeActions = true): bool |
||
| 51 | } |
||
| 52 | } |
||
| 53 |
In general, usage of exit should be done with care and only when running in a scripting context like a CLI script.