Remote::postfields PHP Method

postfields() protected method

Internal method to handle post field data
protected postfields ( mixed $data ) : mixed
$data mixed
return mixed
    protected function postfields($data)
    {
        if (is_object($data) || is_array($data)) {
            return http_build_query($data);
        } else {
            return $data;
        }
    }