original_string: public function writeTo($filename)
      {
          parent::writeTo($filename);
          
          if ($this->optimiserService instanceof ImageOptimiserInterface) {
              $this->optimiserService->optimiseImage($filename);
          }
      }
code: public function writeTo($filename)
      {
          parent::writeTo($filename);
          
          if ($this->optimiserService instanceof ImageOptimiserInterface) {
              $this->optimiserService->optimiseImage($filename);
          }
      }
code_tokens: public function writeTo ( $ filename ) { parent :: writeTo ( $ filename ) ; if ( $ this -> optimiserService instanceof ImageOptimiserInterface ) { $ this -> optimiserService -> optimiseImage ( $ filename ) ; } }
docstring: Calls the original writeTo function and then after that completes optimises the image
  @param string $filename
docstring_tokens: Calls the original writeTo function and then after that completes optimises the image