original_string: public function display($type = 'jpeg')
      {
          $type = $this->getType($type);
  
          header('Content-Type: image/' . $type);
  
          if ($type === 'jpeg')
          {
              imageinterlace($this->newImage, true);
          }
  
          $imageFunc = 'image' . $type;
          $imageFunc($this->newImage);
  
          $this->destroyAll();
  
          return $this;
      }
code: public function display($type = 'jpeg')
      {
          $type = $this->getType($type);
  
          header('Content-Type: image/' . $type);
  
          if ($type === 'jpeg')
          {
              imageinterlace($this->newImage, true);
          }
  
          $imageFunc = 'image' . $type;
          $imageFunc($this->newImage);
  
          $this->destroyAll();
  
          return $this;
      }
code_tokens: public function display ( $ type = 'jpeg' ) { $ type = $ this -> getType ( $ type ) ; header ( 'Content-Type: image/' . $ type ) ; if ( $ type === 'jpeg' ) { imageinterlace ( $ this -> newImage , true ) ; } $ imageFunc = 'image' . $ type ; $ imageFunc ( $ this -> newImage ) ; $ this -> destroyAll ( ) ; return $ this ; }
docstring: Display on browser
  
  @param string $type jpeg
  @return $this
docstring_tokens: Display on browser