Conditions | 3 |
Paths | 2 |
Total Lines | 7 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
54 | private static function transfer(array $cloud_c, string $method, string $path): void |
||
55 | { |
||
56 | extract($cloud_c); |
||
57 | if (isset($cloud) && $cloud instanceof CloudInterface) { |
||
58 | call_user_func_array([$cloud, $method], [$path, $options ?? []]); |
||
59 | } else { |
||
60 | throw new InvalidArgumentException('The cloud key must be instance of the CloudInterface'); |
||
61 | } |
||
63 | } |