public function updateTask(int $taskId, string $content, array $options = []): bool
    {
        if ('' === $content) {
            return false;
        }

        unset($options['content']);
        $data   = $this->prepareRequestData(array_merge(['content' => $content], $options));
        $result = $this->post('tasks/' . $taskId, $data);

        return 204 === $result->getStatusCode();
    }
public function updateTask(int $taskId, string $content, array $options = []): bool
    {
        if ('' === $content) {
            return false;
        }

        unset($options['content']);
        $data   = $this->prepareRequestData(array_merge(['content' => $content], $options));
        $result = $this->post('tasks/' . $taskId, $data);

        return 204 === $result->getStatusCode();
    }
public function updateTask ( int $ taskId , string $ content , array $ options = [ ] ) : bool { if ( '' === $ content ) { return false ; } unset ( $ options [ 'content' ] ) ; $ data = $ this -> prepareRequestData ( array_merge ( [ 'content' => $ content ] , $ options ) ) ; $ result = $ this -> post ( 'tasks/' . $ taskId , $ data ) ; return 204 === $ result -> getStatusCode ( ) ; }
Update a task.

@param int    $taskId  ID of the task.
@param string $content Content of the task.
@param array  $options Possibility to add non-required parameters.

@return bool
Update a task .