Conditions | 2 |
Paths | 2 |
Total Lines | 19 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
37 | private function buildRequestParams(\SplFileObject $file, array $options) |
||
38 | { |
||
39 | $multipart = [ |
||
40 | [ |
||
41 | 'name' =>'batch', |
||
42 | 'contents' => $file, |
||
43 | 'filename' => $file->getFilename() |
||
44 | ] |
||
45 | ]; |
||
46 | |||
47 | foreach ($options as $key => $value) { |
||
48 | $multipart[] = [ |
||
49 | 'name' => $key, |
||
50 | 'contents' => $value |
||
51 | ]; |
||
52 | } |
||
53 | |||
54 | return compact('multipart'); |
||
55 | } |
||
56 | } |
||
57 |