attogram/attogram-user

View on GitHub

Showing 56 of 56 total issues

Variable $this is undeclared
Open

$this->database->tabler(
Severity: Minor
Found in admin_actions/user-admin.php by phan

Parameter $log has undeclared type \Psr\Log\LoggerInterface
Open

    public static function login(\Psr\Log\LoggerInterface $log, \Attogram\AttogramDatabaseInterface $database)
Severity: Minor
Found in includes/AttogramUser.php by phan

Variable $this is undeclared
Open

        header('Location: ' . $this->path . '/');
Severity: Minor
Found in actions/login.php by phan

Class extends undeclared class \PHPUnit\Framework\TestCase
Open

class BaseTest extends PHPUnit\Framework\TestCase
Severity: Critical
Found in tests/BaseTest.php by phan

Call to method error from undeclared class \Psr\Log\LoggerInterface
Open

            $log->error('LOGIN: Login system offline');
Severity: Critical
Found in includes/AttogramUser.php by phan

Call to undeclared method \BaseTest::assertTrue
Open

        $this->assertTrue(true, 'true not true!');
Severity: Critical
Found in tests/BaseTest.php by phan

Parameter $database has undeclared type \Attogram\AttogramDatabaseInterface
Open

    public static function login(\Psr\Log\LoggerInterface $log, \Attogram\AttogramDatabaseInterface $database);
Severity: Minor
Found in includes/AttogramUser.php by phan

Variable $this is undeclared
Open

            $this->clientIp . ' LOGIN: id: ' . $_SESSION['attogram_id']
Severity: Minor
Found in actions/login.php by phan

Possibly zero references to use statement for classlike/namespace TestCase (\PHPUnit\Framework\TestCase)
Open

use PHPUnit\Framework\TestCase;
Severity: Minor
Found in tests/BaseTest.php by phan

Variable $this is undeclared
Open

        $this->event->info(
Severity: Minor
Found in actions/login.php by phan

Variable $this is undeclared
Open

    if (\Attogram\AttogramUser::login($this->log, $this->database)) {
Severity: Minor
Found in actions/login.php by phan

Variable $this is undeclared
Open

$this->pageHeader('👥 User Admin');
Severity: Minor
Found in admin_actions/user-admin.php by phan

Parameter $log has undeclared type \Psr\Log\LoggerInterface
Open

    public static function login(\Psr\Log\LoggerInterface $log, \Attogram\AttogramDatabaseInterface $database);
Severity: Minor
Found in includes/AttogramUser.php by phan

Variable $this is undeclared
Open

    $this->error404('Login Disbled.  Attogram User module missing in action!');
Severity: Minor
Found in actions/login.php by phan

Reference to instance property database from undeclared class \Attogram\AttogramDatabaseInterface
Open

        if (!$database->database || $database->database->errorCode() != '00000') {
Severity: Minor
Found in includes/AttogramUser.php by phan

Call to method error from undeclared class \Psr\Log\LoggerInterface
Open

            $log->error('LOGIN: Invalid login');
Severity: Critical
Found in includes/AttogramUser.php by phan
Severity
Category
Status
Source
Language