Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
37 | 4 | public function getOssClientParameters() |
|
38 | { |
||
39 | 4 | $isCName = $this->get('domain') ? true : false; |
|
40 | return [ |
||
41 | 4 | 'accessKeyId' => $this->get('access_id'), |
|
42 | 4 | 'accessKeySecret' => $this->get('access_key'), |
|
43 | 4 | 'endpoint' => $this->getOssEndpoint(), |
|
44 | 4 | 'isCName' => $isCName, |
|
45 | 4 | 'securityToken' => $this->get('security_token', null) |
|
46 | ]; |
||
47 | } |
||
48 | } |
||
49 |