Conditions | 2 |
Paths | 2 |
Total Lines | 22 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | protected function _getRawResponse() : Connector\RawResponse { |
||
28 | |||
29 | $payload = $this->_getPayload(); |
||
30 | if(count($payload) == 0) { |
||
31 | $payload['rand-' . rand(100000, 1000000)] = 1; |
||
32 | } |
||
33 | |||
34 | $kid = Utilities\RequestSigner::KID( |
||
35 | $payload, |
||
36 | Cache\AccountResponse::getInstance()->get($this->_account)->getLocation(), |
||
|
|||
37 | Cache\AccountResponse::getInstance()->get($this->_account)->getLocation(), |
||
38 | Cache\NewNonceResponse::getInstance()->get()->getNonce(), |
||
39 | $this->_account->getKeyDirectoryPath() |
||
40 | ); |
||
41 | |||
42 | $result = Connector\Connector::getInstance()->request( |
||
43 | Connector\Connector::METHOD_POST, |
||
44 | Cache\AccountResponse::getInstance()->get($this->_account)->getLocation(), |
||
45 | $kid |
||
46 | ); |
||
47 | |||
48 | return $result; |
||
49 | } |
||
52 | } |