e107inc/e107

View on GitHub
e107_handlers/user_handler.php

Summary

Maintainability
A
2 hrs
Test Coverage
F
47%

Avoid too many return statements within this method.
Open

        return $this->full_perms;
Severity: Major
Found in e107_handlers/user_handler.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

            return PASSWORD_INVALID;
    Severity: Major
    Found in e107_handlers/user_handler.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                      return ($hash == $stored_hash) ? PASSWORD_VALID : PASSWORD_INVALID;
      Severity: Major
      Found in e107_handlers/user_handler.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                            return PASSWORD_VALID;
        Severity: Major
        Found in e107_handlers/user_handler.php - About 30 mins to fix

          Reference to undeclared property \UserHandler->otherFieldTypes
          Open

              $this->otherFieldTypes = array(
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Default value for string $force can't be false
          Open

              public function HashPassword($password, $login_name='', $force=false)
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          @throws type of setBackUrl has undeclared type \Hybridauth\Exception\InvalidArgumentException (Did you mean class \InvalidArgumentException)
          Open

              public function setBackUrl($url)
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Catching undeclared class \Hybridauth\Exception\InvalidArgumentException (Did you mean class \InvalidArgumentException)
          Open

                  catch (\Hybridauth\Exception\InvalidArgumentException $e)
          Severity: Critical
          Found in e107_handlers/user_handler.php by phan

          Returning type true but CheckPassword() is declared to return string
          Open

                          return ($hash == $stored_hash) ? PASSWORD_VALID : PASSWORD_INVALID;
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Suspicious array access to null
          Open

                          $carry[] = trim($tokenValue, '\'"');
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Call to undeclared method \e_db::escape
          Open

                      $userdata['user_xup'] = $sql->escape($this->userId());
          Severity: Critical
          Found in e107_handlers/user_handler.php by phan

          Call to method authenticate from undeclared class \Hybridauth\Hybridauth
          Open

                  $this->adapter = $this->hybridauth->authenticate($this->getProvider());
          Severity: Critical
          Found in e107_handlers/user_handler.php by phan

          Variable $userdata was undeclared, but array fields are being added to it.
          Open

                      $userdata['user_loginname'] = $this->getProvider() . $userMethods->generateUserLogin(e107::getPref('predefinedLoginName', '_..#..#..#'));
          Severity: Info
          Found in e107_handlers/user_handler.php by phan

          @throws type of logout has undeclared type \Hybridauth\Exception\UnexpectedValueException (Did you mean class \UnexpectedValueException)
          Open

              public function logout()
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          @throws type of logout has undeclared type \Hybridauth\Exception\InvalidArgumentException (Did you mean class \InvalidArgumentException)
          Open

              public function logout()
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_32_PREFS
          Open

                  "1"    => array(LAN_PREFS,E_16_PREFS, E_32_PREFS),            // Alter Site Preferences
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Call to undeclared method \e_db::escape
          Open

                      $userdata['user_name'] = $sql->escape($profile->displayName);
          Severity: Critical
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_32_SEARCH
          Open

                  "X"    => array(LAN_SEARCH,E_16_SEARCH, E_32_SEARCH),        // Search
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_16_LINKS
          Open

                  "I"    => array(LAN_NAVIGATION,E_16_LINKS, E_32_LINKS),            // Post SiteLinks
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_16_USER
          Open

                  "U2" => array(LAN_USER_OPTIONS,E_16_USER, E_32_USER),    // Manage only user-options
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_32_FRONT
          Open

                  "G"    => array(ADLAN_60,E_16_FRONT, E_32_FRONT),            // Front-Page Configuration
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_32_EURL
          Open

                  "K"    => array(ADLAN_159,E_16_EURL, E_32_EURL),            // Configure URLs
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_32_CUST
          Open

                  "J1" => array(ADLAN_42." (".LAN_DELETE.")",E_16_CUST, E_32_CUST),    // Delete Pages/Menus.
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_32_NEWS
          Open

                  "H1" => array(ADLAN_0." (".LAN_EDIT.")",E_16_NEWS, E_32_NEWS),                        // Edit News Items
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_32_ADMINLOG
          Open

                  "S"    => array(ADLAN_155,E_16_ADMINLOG, E_32_ADMINLOG),    // System Logging
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_32_NEWS
          Open

                  "H4" => array(ADLAN_0." (".LAN_CATEGORY." - ".LAN_EDIT.")",E_16_NEWS, E_32_NEWS),            // Edit News Category
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_16_SEARCH
          Open

                  "X"    => array(LAN_SEARCH,E_16_SEARCH, E_32_SEARCH),        // Search
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_16_NEWS
          Open

                  "N"    => array(ADLAN_0." (".LAN_SUBMITTED.")",E_16_NEWS, E_32_NEWS),            // Moderate submitted news
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_32_CUST
          Open

                  "5"    => array(ADLAN_42,E_16_CUST, E_32_CUST),            // create/edit custom PAGES
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_32_UPLOADS
          Open

                  "V"    => array(ADLAN_31,E_16_UPLOADS, E_32_UPLOADS),                            // Configure public file uploads
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_16_CUST
          Open

                  "J"    => array(ADLAN_42,E_16_CUST, E_32_CUST),            // create/edit custom MENUS
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_32_WELCOME
          Open

                  "M"    => array(ADLAN_28,E_16_WELCOME, E_32_WELCOME),                            // Welcome Messages
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_32_CUST
          Open

                  "J"    => array(ADLAN_42,E_16_CUST, E_32_CUST),            // create/edit custom MENUS
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_16_INSPECT
          Open

                  "Y"    => array(ADLAN_147,E_16_INSPECT, E_32_INSPECT),        // File inspector
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_16_CUST
          Open

                  "J1" => array(ADLAN_42." (".LAN_DELETE.")",E_16_CUST, E_32_CUST),    // Delete Pages/Menus.
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_32_NEWS
          Open

                  "H"    => array(ADLAN_0,E_16_NEWS, E_32_NEWS),                                // Post News - All Areas except settings.
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_16_NEWS
          Open

                  "H1" => array(ADLAN_0." (".LAN_EDIT.")",E_16_NEWS, E_32_NEWS),                        // Edit News Items
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_32_IMAGES
          Open

                  "A"    => array(LAN_MEDIAMANAGER." (".LAN_ALL.")",E_16_IMAGES, E_32_IMAGES),                        // Media-Manager All Areas.
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Call to method getAdapter from undeclared class \Hybridauth\Hybridauth
          Open

                          $this->adapter = $this->hybridauth->getAdapter($providerId);
          Severity: Critical
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_32_LANGUAGE
          Open

                  "L"    => array(ADLAN_132,E_16_LANGUAGE, E_32_LANGUAGE),    // Language Packs
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_16_MAINTAIN
          Open

                  "9"    => array(ADLAN_40, E_16_MAINTAIN, E_32_MAINTAIN),    // Take Down site for Maintenance
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Returning type false but CheckPassword() is declared to return string
          Open

                      return PASSWORD_INVALID;
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Returning type true but CheckPassword() is declared to return string
          Open

                          if ($this->preferred == PASSWORD_E107_MD5 && ($this->passwordOpts <= 1)) return PASSWORD_VALID;
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Returning type true but CheckPassword() is declared to return string
          Open

                              return PASSWORD_VALID;
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Property \e_user_provider->adapter has undeclared type \Hybridauth\Adapter\AdapterInterface
          Open

              public $adapter;
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared class \Hybridauth\Hybridauth
          Open

                      $reflector = new ReflectionClass('Hybridauth\Hybridauth');
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Call to undeclared method \e_db::escape
          Open

                      $userdata['user_name'] = $sql->escape($profile->displayName);
          Severity: Critical
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_32_NOTIFY
          Open

                  "O"    => array(ADLAN_149,E_16_NOTIFY, E_32_NOTIFY),        // Notify
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_32_CRON
          Open

                  "U"    => array(ADLAN_157,E_16_CRON, E_32_CRON),            // Schedule Tasks
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_16_COMMENT
          Open

                  "B"    => array(LAN_COMMENTMAN,E_16_COMMENT, E_32_COMMENT),                                        // Moderate Comments
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_32_COMMENT
          Open

                  "B"    => array(LAN_COMMENTMAN,E_16_COMMENT, E_32_COMMENT),                                        // Moderate Comments
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_32_THEMEMANAGER
          Open

                  "TMP"=> array(ADLAN_140." (".LAN_PREFS.")",E_16_THEMEMANAGER, E_32_THEMEMANAGER),
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Returning type false but CheckPassword() is declared to return string
          Open

                          if (md5($password) !== $stored_hash) return PASSWORD_INVALID;
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Catching undeclared class \Hybridauth\Exception\UnexpectedValueException (Did you mean class \UnexpectedValueException)
          Open

                  catch (\Hybridauth\Exception\UnexpectedValueException $e)
          Severity: Critical
          Found in e107_handlers/user_handler.php by phan

          Call to method getUserProfile from undeclared class \Hybridauth\Adapter\AdapterInterface
          Open

                          return $this->adapter->getUserProfile();
          Severity: Critical
          Found in e107_handlers/user_handler.php by phan

          Call to method isConnectedWith from undeclared class \Hybridauth\Hybridauth
          Open

                      !$this->hybridauth->isConnectedWith($this->getProvider())
          Severity: Critical
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_32_EMOTE
          Open

                  "F"    => array(ADLAN_58,E_16_EMOTE, E_32_EMOTE),            // Emoticons
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_16_PREFS
          Open

                  "1"    => array(LAN_PREFS,E_16_PREFS, E_32_PREFS),            // Alter Site Preferences
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_16_LINKS
          Open

                  "8"    => array(ADMSLAN_27,E_16_LINKS, E_32_LINKS),        // Oversee SiteLink Categories
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_16_WELCOME
          Open

                  "M"    => array(ADLAN_28,E_16_WELCOME, E_32_WELCOME),                            // Welcome Messages
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_16_NOTIFY
          Open

                  "O"    => array(ADLAN_149,E_16_NOTIFY, E_32_NOTIFY),        // Notify
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_16_FILE
          Open

                  "6"    => array(LAN_MEDIAMANAGER,E_16_FILE, E_32_FILE),                                            // File-Manager  - Upload /manage files -
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Returning type false but CheckPassword() is declared to return string
          Open

                          return ($hash == $stored_hash) ? PASSWORD_VALID : PASSWORD_INVALID;
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          @throws type of __construct has undeclared type \Hybridauth\Exception\InvalidArgumentException (Did you mean class \InvalidArgumentException)
          Open

              public function __construct($provider = null, $config = array(), $suppress_exceptions = true)
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Returning type false but CheckPassword() is declared to return string
          Open

                  return PASSWORD_INVALID;
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Call to method __construct from undeclared class \Hybridauth\Hybridauth
          Open

                  $this->hybridauth = new Hybridauth\Hybridauth($this->_config);
          Severity: Critical
          Found in e107_handlers/user_handler.php by phan

          Default value for int $seed can't be string
          Open

              public function generateUserLogin($pattern, $seed='')
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Call to method disconnect from undeclared class \Hybridauth\Adapter\AdapterInterface
          Open

                      $this->adapter->disconnect();
          Severity: Critical
          Found in e107_handlers/user_handler.php by phan

          Call to method isConnectedWith from undeclared class \Hybridauth\Hybridauth
          Open

                      if ($providerId && $this->hybridauth->isConnectedWith($providerId))
          Severity: Critical
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_32_NEWS
          Open

                  "H5" => array(ADLAN_0." (".LAN_CATEGORY." - ".LAN_DELETE.")",E_16_NEWS, E_32_NEWS),            // Delete News Category
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          @throws type of respawnHybridauth has undeclared type \Hybridauth\Exception\InvalidArgumentException (Did you mean class \InvalidArgumentException)
          Open

              private function respawnHybridauth()
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_32_NEWS
          Open

                  "N"    => array(ADLAN_0." (".LAN_SUBMITTED.")",E_16_NEWS, E_32_NEWS),            // Moderate submitted news
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_32_LINKS
          Open

                  "I"    => array(LAN_NAVIGATION,E_16_LINKS, E_32_LINKS),            // Post SiteLinks
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_32_MENUS
          Open

                  "2"    => array(ADLAN_6,E_16_MENUS, E_32_MENUS),        // Alter Menus
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Default value for array $row can't be string
          Open

              function edit_administrator($row = '')
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Argument 3 (force) is 1 but \UserHandler::HashPassword() takes false|string defined at /code/e107_handlers/user_handler.php:226
          Open

                          $hash = $this->HashPassword($password, $login_name, PASSWORD_E107_SALT);
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Return type of getUserProfile() is undeclared type \Hybridauth\User\Profile
          Open

              public function getUserProfile()
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Call to method getAdapter from undeclared class \Hybridauth\Hybridauth
          Open

                          $adapter = $this->hybridauth->getAdapter($providerId);
          Severity: Critical
          Found in e107_handlers/user_handler.php by phan

          Default value for int $seed can't be string
          Open

              public function generateRandomString($pattern='', $seed = '')
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_16_META
          Open

                  "T"    => array(ADLAN_66,E_16_META, E_32_META),            // Meta tags
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_16_USER
          Open

                  "U0" => array(ADLAN_34,E_16_USER, E_32_USER),             // moderate users/bans but not userclasses or extended fields,
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_32_META
          Open

                  "T"    => array(ADLAN_66,E_16_META, E_32_META),            // Meta tags
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Call to undeclared method \e_model::email
          Open

                          $user->set('user_password', $plainPwd)->email('signup');
          Severity: Critical
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_32_USER
          Open

                  "U0" => array(ADLAN_34,E_16_USER, E_32_USER),             // moderate users/bans but not userclasses or extended fields,
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_16_LANGUAGE
          Open

                  "L"    => array(ADLAN_132,E_16_LANGUAGE, E_32_LANGUAGE),    // Language Packs
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_32_LINKS
          Open

                  "8"    => array(ADMSLAN_27,E_16_LINKS, E_32_LINKS),        // Oversee SiteLink Categories
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_32_USER
          Open

                  "U3" => array(LAN_USER_RANKS,E_16_USER, E_32_USER),        // Manage only user-ranks
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_16_EURL
          Open

                  "K"    => array(ADLAN_159,E_16_EURL, E_32_EURL),            // Configure URLs
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_32_ADMIN
          Open

                  "3"    => array(ADLAN_8,E_16_ADMIN, E_32_ADMIN),            // Modify Admin perms
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_32_USER
          Open

                  "U2" => array(LAN_USER_OPTIONS,E_16_USER, E_32_USER),    // Manage only user-options
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_32_USER
          Open

                  "U1" => array(LAN_USER_QUICKADD,E_16_USER, E_32_USER),    // "User: Quick Add User",
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_32_NEWS
          Open

                  "H2" => array(ADLAN_0." (".LAN_DELETE.")",E_16_NEWS, E_32_NEWS),                    // Delete News Items
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_32_MAINTAIN
          Open

                  "9"    => array(ADLAN_40, E_16_MAINTAIN, E_32_MAINTAIN),    // Take Down site for Maintenance
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_32_MAIL
          Open

                  "W"    => array(ADLAN_136,E_16_MAIL, E_32_MAIL),            // Configure mail settings and mailout
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_16_IMAGES
          Open

                  "A1"=> array(LAN_MEDIAMANAGER." (".LAN_UPLOAD."/".LAN_IMPORT.")",E_16_IMAGES, E_32_IMAGES),        // Media-Manager (Media Upload/Add/Import)
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_16_CUST
          Open

                  "5"    => array(ADLAN_42,E_16_CUST, E_32_CUST),            // create/edit custom PAGES
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_32_IMAGES
          Open

                  "A2"=> array(LAN_MEDIAMANAGER." (".LAN_CATEGORIES.")",E_16_IMAGES, E_32_IMAGES),                // Media-Manager (Media-Categories)
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Call to deprecated function \getperms() defined at /code/class2.php:1322
          Open

                          if (!getperms('0')) { $value = ""; break; }
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_16_CRON
          Open

                  "U"    => array(ADLAN_157,E_16_CRON, E_32_CRON),            // Schedule Tasks
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Argument 4 (noWhere) is array{plugin_path:string} but \e_db::select() takes bool|false defined at /code/e107_handlers/e_db_interface.php:265
          Open

                      ["plugin_path" => $pluginName]
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_32_FILE
          Open

                  "6"    => array(LAN_MEDIAMANAGER,E_16_FILE, E_32_FILE),                                            // File-Manager  - Upload /manage files -
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Call to deprecated function \getperms() defined at /code/class2.php:1322
          Open

                      <td style='text-align:center'>".$frm->checkbox('perms[]', $arg, getperms($arg, $perms))."</td>
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          @throws type of __construct has undeclared type \Hybridauth\Exception\UnexpectedValueException (Did you mean class \UnexpectedValueException)
          Open

              public function __construct($provider = null, $config = array(), $suppress_exceptions = true)
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Call to method getUserProfile from undeclared class \Hybridauth\Adapter\AdapterInterface
          Open

                  $profile = $this->adapter->getUserProfile();
          Severity: Critical
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_16_NEWS
          Open

                  "H0" => array(ADLAN_0." (".LAN_CREATE.")",E_16_NEWS, E_32_NEWS),                    // Create News Items
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_16_NEWS
          Open

                  "H2" => array(ADLAN_0." (".LAN_DELETE.")",E_16_NEWS, E_32_NEWS),                    // Delete News Items
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_16_UPLOADS
          Open

                  "V"    => array(ADLAN_31,E_16_UPLOADS, E_32_UPLOADS),                            // Configure public file uploads
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_16_THEMEMANAGER
          Open

                  "TMP"=> array(ADLAN_140." (".LAN_PREFS.")",E_16_THEMEMANAGER, E_32_THEMEMANAGER),
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Found a return statement with a value in the implementation of the magic method \UserHandler::__construct, expected void return type
          Open

              public function __construct()
          Severity: Info
          Found in e107_handlers/user_handler.php by phan

          Returning type array{password:string,hash:bool|string} but resetPassword() is declared to return bool|string
          Open

                          return array('password'=>$rawPassword, 'hash'=>$hash);
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Returning type true but makeUserCookie() is declared to return void
          Open

                      return true;
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Variable $ret was undeclared, but array fields are being added to it.
          Open

                      $ret[$k] = $v['niceName'];
          Severity: Info
          Found in e107_handlers/user_handler.php by phan

          Catching undeclared class \Hybridauth\Exception\Exception (Did you mean class \Exception)
          Open

                      catch (\Hybridauth\Exception\Exception $e)
          Severity: Critical
          Found in e107_handlers/user_handler.php by phan

          Reference to instance property identifier from undeclared class \Hybridauth\User\Profile
          Open

                      return $this->getProvider() . '_' . $profile->identifier;
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Call to undeclared method \e_db::escape
          Open

                      if ($uid = $sql->retrieve("user", "user_id", "user_xup='" . $sql->escape($this->userId()) . "' " . $insert . " OR user_loginname='{$userdata['user_loginname']}' OR user_name='{$userdata['user_name']}'"))
          Severity: Critical
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_16_USER
          Open

                  "4"    => array(LAN_USER_MANAGEALL,E_16_USER, E_32_USER),    // Manage all user access and settings etc
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_16_NEWS
          Open

                  "H3" => array(ADLAN_0." (".LAN_CATEGORY." - ".LAN_CREATE.")",E_16_NEWS, E_32_NEWS),            // Create News Category
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_32_NEWS
          Open

                  "H3" => array(ADLAN_0." (".LAN_CATEGORY." - ".LAN_CREATE.")",E_16_NEWS, E_32_NEWS),            // Create News Category
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_32_INSPECT
          Open

                  "Y"    => array(ADLAN_147,E_16_INSPECT, E_32_INSPECT),        // File inspector
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_16_IMAGES
          Open

                  "A"    => array(LAN_MEDIAMANAGER." (".LAN_ALL.")",E_16_IMAGES, E_32_IMAGES),                        // Media-Manager All Areas.
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_32_IMAGES
          Open

                  "A1"=> array(LAN_MEDIAMANAGER." (".LAN_UPLOAD."/".LAN_IMPORT.")",E_16_IMAGES, E_32_IMAGES),        // Media-Manager (Media Upload/Add/Import)
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_16_MENUS
          Open

                  "2"    => array(ADLAN_6,E_16_MENUS, E_32_MENUS),        // Alter Menus
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Call to deprecated function \getperms() defined at /code/class2.php:1322
          Open

                  $class = getperms($arg, $perms) ? 'active' : '';
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Call to undeclared method \e_db::escape
          Open

                      $userdata['user_email'] = $sql->escape($profile->emailVerified ? $profile->emailVerified : $profile->email) ?: '';
          Severity: Critical
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_32_USER
          Open

                  "4"    => array(LAN_USER_MANAGEALL,E_16_USER, E_32_USER),    // Manage all user access and settings etc
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Returning type false but CheckPassword() is declared to return string
          Open

                          if ($hash === false) return PASSWORD_INVALID;
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_16_NEWS
          Open

                  "H"    => array(ADLAN_0,E_16_NEWS, E_32_NEWS),                                // Post News - All Areas except settings.
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Call to method getConnectedProviders from undeclared class \Hybridauth\Hybridauth
          Open

                      $connected = $this->hybridauth->getConnectedProviders();
          Severity: Critical
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_16_NEWS
          Open

                  "H4" => array(ADLAN_0." (".LAN_CATEGORY." - ".LAN_EDIT.")",E_16_NEWS, E_32_NEWS),            // Edit News Category
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_16_NEWS
          Open

                  "H5" => array(ADLAN_0." (".LAN_CATEGORY." - ".LAN_DELETE.")",E_16_NEWS, E_32_NEWS),            // Delete News Category
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Catching undeclared class \Hybridauth\Exception\Exception (Did you mean class \Exception)
          Open

                      catch (\Hybridauth\Exception\Exception $e)
          Severity: Critical
          Found in e107_handlers/user_handler.php by phan

          Call to undeclared method \e_db::escape
          Open

                      $where[] = "user_xup='" . $sql->escape($id) . "'";
          Severity: Critical
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_32_CACHE
          Open

                  "C"    => array(ADLAN_74,E_16_CACHE, E_32_CACHE),            // Clear the system cache
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Call to deprecated function \getperms() defined at /code/class2.php:1322
          Open

                      if ((strpos($userData['user_perms'],'0') === 0) || getperms('0'))
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_16_FRONT
          Open

                  "G"    => array(ADLAN_60,E_16_FRONT, E_32_FRONT),            // Front-Page Configuration
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Property \e_user_provider->hybridauth has undeclared type \Hybridauth\Hybridauth
          Open

              protected $hybridauth;
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Argument 6 (userData) is array{user_id:mixed,user_name:mixed,user_email:mixed} but \e_admin_log::add() takes null defined at /code/e107_handlers/admin_log_class.php:178
          Open

                              e107::getLog()->add('User Profile Updated', $userdata, E_LOG_INFORMATIVE, "XUP_LOGIN", LOG_TO_ADMIN, array('user_id' => $user['user_id'], 'user_name' => $user['user_name'], 'user_email' => $userdata['user_email']));
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_32_NEWS
          Open

                  "H0" => array(ADLAN_0." (".LAN_CREATE.")",E_16_NEWS, E_32_NEWS),                    // Create News Items
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Argument 6 (userData) is array{WHERE:string,user_email:,user_image:,user_name:} but \e_admin_log::add() takes null defined at /code/e107_handlers/admin_log_class.php:178
          Open

                              e107::getLog()->add('User Profile Update Failed', $userdata, E_LOG_WARNING, "XUP_LOGIN", LOG_TO_ADMIN, $updateQry);
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_16_ADMINLOG
          Open

                  "S"    => array(ADLAN_155,E_16_ADMINLOG, E_32_ADMINLOG),    // System Logging
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_16_CACHE
          Open

                  "C"    => array(ADLAN_74,E_16_CACHE, E_32_CACHE),            // Clear the system cache
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Call to deprecated function \getperms() defined at /code/class2.php:1322
          Open

                  if(getperms('0'))
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_16_EMOTE
          Open

                  "F"    => array(ADLAN_58,E_16_EMOTE, E_32_EMOTE),            // Emoticons
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_16_ADMIN
          Open

                  "3"    => array(ADLAN_8,E_16_ADMIN, E_32_ADMIN),            // Modify Admin perms
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_16_USER
          Open

                  "U1" => array(LAN_USER_QUICKADD,E_16_USER, E_32_USER),    // "User: Quick Add User",
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_16_USER
          Open

                  "U3" => array(LAN_USER_RANKS,E_16_USER, E_32_USER),        // Manage only user-ranks
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_16_MAIL
          Open

                  "W"    => array(ADLAN_136,E_16_MAIL, E_32_MAIL),            // Configure mail settings and mailout
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          Reference to undeclared constant \E_16_IMAGES
          Open

                  "A2"=> array(LAN_MEDIAMANAGER." (".LAN_CATEGORIES.")",E_16_IMAGES, E_32_IMAGES),                // Media-Manager (Media-Categories)
          Severity: Minor
          Found in e107_handlers/user_handler.php by phan

          There are no issues that match your filters.

          Category
          Status