original_string: protected function getUserInformation($loginOrMail)
      {
          $userModel = new Model();
  
          $user = null;
          if ($userModel->userExists($loginOrMail)) {
              $user = $userModel->getUser($loginOrMail);
          } else if ($userModel->userEmailExists($loginOrMail)) {
              $user = $userModel->getUserByEmail($loginOrMail);
          }
          return $user;
      }
code: protected function getUserInformation($loginOrMail)
      {
          $userModel = new Model();
  
          $user = null;
          if ($userModel->userExists($loginOrMail)) {
              $user = $userModel->getUser($loginOrMail);
          } else if ($userModel->userEmailExists($loginOrMail)) {
              $user = $userModel->getUserByEmail($loginOrMail);
          }
          return $user;
      }
code_tokens: protected function getUserInformation ( $ loginOrMail ) { $ userModel = new Model ( ) ; $ user = null ; if ( $ userModel -> userExists ( $ loginOrMail ) ) { $ user = $ userModel -> getUser ( $ loginOrMail ) ; } else if ( $ userModel -> userEmailExists ( $ loginOrMail ) ) { $ user = $ userModel -> getUserByEmail ( $ loginOrMail ) ; } return $ user ; }
docstring: Returns user information based on a login or email.
  
  Derived classes can override this method to provide custom user querying logic.
  
  @param string $loginMail user login or email address
  @return array `array("login" => '...', "email" => '...', "password" => '...')` or null, if user not found.
docstring_tokens: Returns user information based on a login or email .