e107inc/e107

View on GitHub
e107_plugins/alt_auth/otherdb_auth.php

Summary

Maintainability
A
1 hr
Test Coverage
F
0%

Avoid too many return statements within this method.
Open

        return AUTH_SUCCESS;
Severity: Major
Found in e107_plugins/alt_auth/otherdb_auth.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                return AUTH_BADPASSWORD;
    Severity: Major
    Found in e107_plugins/alt_auth/otherdb_auth.php - About 30 mins to fix

      Reference to undeclared constant \AUTH_NOCONNECT
      Open

                  return AUTH_NOCONNECT;
      Severity: Minor
      Found in e107_plugins/alt_auth/otherdb_auth.php by phan

      Parameter $newvals has undeclared type \pointer
      Open

          public function login($uname, $pword, &$newvals, $connect_only = FALSE)
      Severity: Minor
      Found in e107_plugins/alt_auth/otherdb_auth.php by phan

      Reference to undeclared constant \AUTH_SUCCESS
      Open

              if ($connect_only) return AUTH_SUCCESS;        // Test mode may just want to connect to the DB
      Severity: Minor
      Found in e107_plugins/alt_auth/otherdb_auth.php by phan

      Reference to undeclared constant \AUTH_BADPASSWORD
      Open

                  return AUTH_BADPASSWORD;
      Severity: Minor
      Found in e107_plugins/alt_auth/otherdb_auth.php by phan

      Suspicious array access to \pointer
      Open

                      $newvals[substr($k,strlen('otherdb_xf_'))] = $row[$v];
      Severity: Minor
      Found in e107_plugins/alt_auth/otherdb_auth.php by phan

      Class \auth_login defined at /code/e107_plugins/alt_auth/otherdb_auth.php:33 was previously defined as Class \auth_login at /code/e107_plugins/alt_auth/e107db_auth.php:34
      Open

      class auth_login extends alt_auth_base
      Severity: Minor
      Found in e107_plugins/alt_auth/otherdb_auth.php by phan

      Reference to undeclared constant \AUTH_BADPASSWORD
      Open

                  return AUTH_BADPASSWORD;
      Severity: Minor
      Found in e107_plugins/alt_auth/otherdb_auth.php by phan

      Reference to undeclared constant \AUTH_NOCONNECT
      Open

                  return AUTH_NOCONNECT;
      Severity: Minor
      Found in e107_plugins/alt_auth/otherdb_auth.php by phan

      Reference to undeclared constant \AUTH_SUCCESS
      Open

              return AUTH_SUCCESS;
      Severity: Minor
      Found in e107_plugins/alt_auth/otherdb_auth.php by phan

      Reference to undeclared constant \AUTH_NOUSER
      Open

                  return AUTH_NOUSER;
      Severity: Minor
      Found in e107_plugins/alt_auth/otherdb_auth.php by phan

      Saw an @param annotation for pass, but it was not found in the param list of function login(string $uname, $pword, \pointer &$newvals, bool|false $connect_only = null) : int
      Open

           *    @param string $pass - Password to use (usually plain text)

      There are no issues that match your filters.

      Category
      Status