original_string: protected function loadApplication(LoginAttempt $loginAttempt)
      {
          // retrieve Application
          if (!$application = $this->applicationLoader->retrieveByApiKeyAndSecret(
              $loginAttempt->getData('client_api_key'),
              $loginAttempt->getData('client_secret')
          )) {
              throw new InvalidGrantException(
                  $loginAttempt,
                  'Any application found for given api_key / secret.'
              );
          }
  
          return $application;
      }
code: protected function loadApplication(LoginAttempt $loginAttempt)
      {
          // retrieve Application
          if (!$application = $this->applicationLoader->retrieveByApiKeyAndSecret(
              $loginAttempt->getData('client_api_key'),
              $loginAttempt->getData('client_secret')
          )) {
              throw new InvalidGrantException(
                  $loginAttempt,
                  'Any application found for given api_key / secret.'
              );
          }
  
          return $application;
      }
code_tokens: protected function loadApplication ( LoginAttempt $ loginAttempt ) { // retrieve Application if ( ! $ application = $ this -> applicationLoader -> retrieveByApiKeyAndSecret ( $ loginAttempt -> getData ( 'client_api_key' ) , $ loginAttempt -> getData ( 'client_secret' ) ) ) { throw new InvalidGrantException ( $ loginAttempt , 'Any application found for given api_key / secret.' ) ; } return $ application ; }
docstring: Loads application for given login attempt.
  
  @param LoginAttempt $loginAttempt
  
  @return ApplicationInterface
  
  @throws InvalidGrantException
docstring_tokens: Loads application for given login attempt .