original_string: public function getStatusCode(FlattenException $exception)
      {
          $str = '';
          if (method_exists($exception, 'getStatusCode') == true) {
              $str = $exception->getStatusCode();
          } elseif (method_exists($exception, 'getCode') == true) {
           $str = $exception->getCode();
          }
  
          return $str;
      }
code: public function getStatusCode(FlattenException $exception)
      {
          $str = '';
          if (method_exists($exception, 'getStatusCode') == true) {
              $str = $exception->getStatusCode();
          } elseif (method_exists($exception, 'getCode') == true) {
           $str = $exception->getCode();
          }
  
          return $str;
      }
code_tokens: public function getStatusCode ( FlattenException $ exception ) { $ str = '' ; if ( method_exists ( $ exception , 'getStatusCode' ) == true ) { $ str = $ exception -> getStatusCode ( ) ; } elseif ( method_exists ( $ exception , 'getCode' ) == true ) { $ str = $ exception -> getCode ( ) ; } return $ str ; }
docstring: Attempts to extract a nice exception code string
  @param  FlattenException $exception
  @return string
docstring_tokens: Attempts to extract a nice exception code string