original_string: private function removeAnimation(\Imagick $object)
      {
          $imagick = new \Imagick;
  
          foreach ($object as $frame) {
              $imagick->addImage($frame->getImage());
              break;
          }
  
          $object->destroy();
  
          return $imagick;
      }
code: private function removeAnimation(\Imagick $object)
      {
          $imagick = new \Imagick;
  
          foreach ($object as $frame) {
              $imagick->addImage($frame->getImage());
              break;
          }
  
          $object->destroy();
  
          return $imagick;
      }
code_tokens: private function removeAnimation ( \ Imagick $ object ) { $ imagick = new \ Imagick ; foreach ( $ object as $ frame ) { $ imagick -> addImage ( $ frame -> getImage ( ) ) ; break ; } $ object -> destroy ( ) ; return $ imagick ; }
docstring: Turns object into one frame Imagick object
  by removing all frames except first
  
  @param  Imagick $object
  @return Imagick
docstring_tokens: Turns object into one frame Imagick object by removing all frames except first