| Conditions | 2 |
| Paths | 2 |
| Total Lines | 19 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | private function buildRequestParams(\SplFileObject $file, array $options) |
||
| 21 | { |
||
| 22 | $multipart = [ |
||
| 23 | [ |
||
| 24 | 'name' =>'batch', |
||
| 25 | 'contents' => $file, |
||
| 26 | 'filename' => $file->getFilename() |
||
| 27 | ] |
||
| 28 | ]; |
||
| 29 | |||
| 30 | foreach ($options as $key => $value) { |
||
| 31 | $multipart[] = [ |
||
| 32 | 'name' => $key, |
||
| 33 | 'contents' => $value |
||
| 34 | ]; |
||
| 35 | } |
||
| 36 | |||
| 37 | return compact('multipart'); |
||
| 38 | } |
||
| 39 | } |
||
| 40 |