original_string: public function lookup_consumer($consumerkey) {
          if (strpos($consumerkey, "http://" ) === 0) {
              $consumer = new OAuthConsumer($consumerkey, "secret", null);
              return $consumer;
          }
          if ( $this->consumers[$consumerkey] ) {
              $consumer = new OAuthConsumer($consumerkey, $this->consumers[$consumerkey], null);
              return $consumer;
          }
          return null;
      }
code: public function lookup_consumer($consumerkey) {
          if (strpos($consumerkey, "http://" ) === 0) {
              $consumer = new OAuthConsumer($consumerkey, "secret", null);
              return $consumer;
          }
          if ( $this->consumers[$consumerkey] ) {
              $consumer = new OAuthConsumer($consumerkey, $this->consumers[$consumerkey], null);
              return $consumer;
          }
          return null;
      }
code_tokens: public function lookup_consumer ( $ consumerkey ) { if ( strpos ( $ consumerkey , "http://" ) === 0 ) { $ consumer = new OAuthConsumer ( $ consumerkey , "secret" , null ) ; return $ consumer ; } if ( $ this -> consumers [ $ consumerkey ] ) { $ consumer = new OAuthConsumer ( $ consumerkey , $ this -> consumers [ $ consumerkey ] , null ) ; return $ consumer ; } return null ; }
docstring: Get OAuth consumer given its key
  
  @param string $consumerkey     Consumer key
  
  @return moodle\mod\lti\OAuthConsumer  OAuthConsumer object
docstring_tokens: Get OAuth consumer given its key