e107inc/e107

View on GitHub
e107_plugins/alt_auth/e107db_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/e107db_auth.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                    return AUTH_NOUSER;            // Treat as non-existent user
    Severity: Major
    Found in e107_plugins/alt_auth/e107db_auth.php - About 30 mins to fix

      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)

      Reference to undeclared constant \AUTH_NOCONNECT
      Open

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

      Reference to undeclared constant \AUTH_NOCONNECT
      Open

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

      Reference to undeclared constant \AUTH_BADPASSWORD
      Open

                  return AUTH_BADPASSWORD;
      Severity: Minor
      Found in e107_plugins/alt_auth/e107db_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/e107db_auth.php by phan

      Reference to undeclared constant \AUTH_BADPASSWORD
      Open

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

      Reference to undeclared constant \AUTH_NOUSER
      Open

                      return AUTH_NOUSER;            // Treat as non-existent user
      Severity: Minor
      Found in e107_plugins/alt_auth/e107db_auth.php by phan

      Reference to undeclared constant \AUTH_NOUSER
      Open

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

      Suspicious array access to \pointer
      Open

                      if (isset($row[$f])) $newvals[$f] = $row[$f];
      Severity: Minor
      Found in e107_plugins/alt_auth/e107db_auth.php by phan

      Reference to undeclared constant \AUTH_SUCCESS
      Open

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

      There are no issues that match your filters.

      Category
      Status