protected function dataToMultipart(array $data = [])
    {
        $multipart = [];

        foreach($data as $name => $contents) {
            array_push($multipart, ['name' => $name, 'contents' => $contents]);
        }

        return $multipart;
    }
protected function dataToMultipart(array $data = [])
    {
        $multipart = [];

        foreach($data as $name => $contents) {
            array_push($multipart, ['name' => $name, 'contents' => $contents]);
        }

        return $multipart;
    }
protected function dataToMultipart ( array $ data = [ ] ) { $ multipart = [ ] ; foreach ( $ data as $ name => $ contents ) { array_push ( $ multipart , [ 'name' => $ name , 'contents' => $ contents ] ) ; } return $ multipart ; }
Converts data to multipart option for guzzle

@param array $data
@return array
Converts data to multipart option for guzzle