| Total Complexity | 9 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 2 | class Auth_Base { |
||
| 3 | private $pdo; |
||
| 4 | |||
| 5 | const AUTH_SERVICE_API = '_api'; |
||
| 6 | |||
| 7 | function __construct() { |
||
| 9 | } |
||
| 10 | |||
| 11 | // Auto-creates specified user if allowed by system configuration |
||
| 12 | // Can be used instead of find_user_by_login() by external auth modules |
||
| 13 | function auto_create_user($login, $password = false) { |
||
| 36 | } |
||
| 37 | |||
| 38 | function find_user_by_login($login) { |
||
| 49 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.