original_string: public function rebuild($dropletId, array $parameters)
      {
          if (!array_key_exists('image_id', $parameters) || !is_int($parameters['image_id'])) {
              throw new \InvalidArgumentException('You need to provide the "image_id" to rebuild.');
          }
  
          return $this->processQuery($this->buildQuery($dropletId, DropletsActions::ACTION_REBUILD, $parameters));
      }
code: public function rebuild($dropletId, array $parameters)
      {
          if (!array_key_exists('image_id', $parameters) || !is_int($parameters['image_id'])) {
              throw new \InvalidArgumentException('You need to provide the "image_id" to rebuild.');
          }
  
          return $this->processQuery($this->buildQuery($dropletId, DropletsActions::ACTION_REBUILD, $parameters));
      }
code_tokens: public function rebuild ( $ dropletId , array $ parameters ) { if ( ! array_key_exists ( 'image_id' , $ parameters ) || ! is_int ( $ parameters [ 'image_id' ] ) ) { throw new \ InvalidArgumentException ( 'You need to provide the "image_id" to rebuild.' ) ; } return $ this -> processQuery ( $ this -> buildQuery ( $ dropletId , DropletsActions :: ACTION_REBUILD , $ parameters ) ) ; }
docstring: Reinstalls a droplet with a default image.
  This is useful if you want to start again but retain the same IP address for your droplet.
  The image_id is required.
  
  @param integer $dropletId  The id of the droplet.
  @param array   $parameters An array of parameters.
  
  @return StdClass
  
  @throws \InvalidArgumentException
docstring_tokens: Reinstalls a droplet with a default image . This is useful if you want to start again but retain the same IP address for your droplet . The image_id is required .