original_string: protected function parseAuthHeader($header = 'authorization', $method = 'bearer')
      {
          $header = $this->request->headers->get($header);
  
          if (! starts_with(strtolower($header), $method)) {
              return false;
          }
  
          return trim(str_ireplace($method, '', $header));
      }
code: protected function parseAuthHeader($header = 'authorization', $method = 'bearer')
      {
          $header = $this->request->headers->get($header);
  
          if (! starts_with(strtolower($header), $method)) {
              return false;
          }
  
          return trim(str_ireplace($method, '', $header));
      }
code_tokens: protected function parseAuthHeader ( $ header = 'authorization' , $ method = 'bearer' ) { $ header = $ this -> request -> headers -> get ( $ header ) ; if ( ! starts_with ( strtolower ( $ header ) , $ method ) ) { return false ; } return trim ( str_ireplace ( $ method , '' , $ header ) ) ; }
docstring: Parse token from the authorization header.
  
  @param string $header
  @param string $method
  
  @return false|string
docstring_tokens: Parse token from the authorization header .