| 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 | 1 | public function getHeader(): string |
|
| 20 | { |
||
| 21 | 1 | $header = 'OAuth '; |
|
|
|
|||
| 22 | 1 | $header.= 'oauth_consumer_key="' . $this->parameters->getConsumerKey() . '", '; |
|
| 23 | 1 | $header.= 'oauth_nonce="' . $this->parameters->getNonce() . '", '; |
|
| 24 | 1 | $header.= 'oauth_signature="' . $this->signature->getSignature() . '", '; |
|
| 25 | 1 | $header.= 'oauth_signature_method="' . $this->parameters->getSignatureMethod() . '", '; |
|
| 26 | 1 | $header.= 'oauth_timestamp="' . $this->parameters->getTimestamp() . '", '; |
|
| 27 | 1 | $header.= 'oauth_token="' . $this->parameters->getToken() . '", '; |
|
| 28 | 1 | $header.= 'oauth_version="' . $this->parameters->getVersion() . '"'; |
|
| 29 | |||
| 30 | 1 | 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.