Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
32 | private static function copyInput() |
||
33 | { |
||
34 | 39 | /** @var resource $input */ |
|
35 | $input = fopen('php://input', 'rb'); |
||
36 | /** @var resource $resource */ |
||
37 | 39 | $resource = fopen('php://temp', 'r+b'); |
|
38 | |||
39 | stream_copy_to_stream($input, $resource); |
||
40 | 39 | fseek($resource, 0, SEEK_SET); |
|
41 | |||
42 | 39 | return $resource; |
|
43 | } |
||
45 |