public function update($id, array $params)
    {
        $defaults = [
            'id' => $id,
            'name' => null,
            'identifier' => null,
            'description' => null,
        ];
        $params = $this->sanitizeParams($defaults, $params);

        $xml = $this->prepareParamsXml($params);

        return $this->put('/projects/'.$id.'.xml', $xml->asXML());
    }
public function update($id, array $params)
    {
        $defaults = [
            'id' => $id,
            'name' => null,
            'identifier' => null,
            'description' => null,
        ];
        $params = $this->sanitizeParams($defaults, $params);

        $xml = $this->prepareParamsXml($params);

        return $this->put('/projects/'.$id.'.xml', $xml->asXML());
    }
public function update ( $ id , array $ params ) { $ defaults = [ 'id' => $ id , 'name' => null , 'identifier' => null , 'description' => null , ] ; $ params = $ this -> sanitizeParams ( $ defaults , $ params ) ; $ xml = $ this -> prepareParamsXml ( $ params ) ; return $ this -> put ( '/projects/' . $ id . '.xml' , $ xml -> asXML ( ) ) ; }
Update project's information.

@see http://www.redmine.org/projects/redmine/wiki/Rest_Projects

@param string $id     the project id
@param array  $params

@return string|false
Update project s information .