original_string: public function display(Exception $exception, $code)
      {
          $content = $this->whoops()->handleException($exception);
          if( $this->request->wantsJson() ) {
              return Response::create( $content, $code )->header( 'Content-Type', 'application/json');
          } else {
              return Response::create( $content, $code);
          }
      }
code: public function display(Exception $exception, $code)
      {
          $content = $this->whoops()->handleException($exception);
          if( $this->request->wantsJson() ) {
              return Response::create( $content, $code )->header( 'Content-Type', 'application/json');
          } else {
              return Response::create( $content, $code);
          }
      }
code_tokens: public function display ( Exception $ exception , $ code ) { $ content = $ this -> whoops ( ) -> handleException ( $ exception ) ; if ( $ this -> request -> wantsJson ( ) ) { return Response :: create ( $ content , $ code ) -> header ( 'Content-Type' , 'application/json' ) ; } else { return Response :: create ( $ content , $ code ) ; } }
docstring: Get the Whoops HTML content associated with the given exception.
  
  @param \Exception $exception
  @param int        $code
  
  @return string
docstring_tokens: Get the Whoops HTML content associated with the given exception .