Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
19 | 5 | public function getHeader(): string |
|
20 | { |
||
21 | 5 | $header = 'OAuth '; |
|
|
|||
22 | 5 | $header.= 'oauth_consumer_key="' . $this->parameters->getConsumerKey() . '", '; |
|
23 | 5 | $header.= 'oauth_nonce="' . $this->parameters->getNonce() . '", '; |
|
24 | 5 | $header.= 'oauth_signature="' . $this->signature->getSignature() . '", '; |
|
25 | 5 | $header.= 'oauth_signature_method="' . $this->parameters->getSignatureMethod() . '", '; |
|
26 | 5 | $header.= 'oauth_timestamp="' . $this->parameters->getTimestamp() . '", '; |
|
27 | 5 | $header.= 'oauth_token="' . $this->parameters->getToken() . '", '; |
|
28 | 5 | $header.= 'oauth_version="' . $this->parameters->getVersion() . '"'; |
|
29 | |||
30 | 5 | return $header; |
|
31 | } |
||
32 | } |
||
33 |
This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.
To visualize
will produce issues in the first and second line, while this second example
will produce no issues.