Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
1 | <?php |
||
38 | 1 | public function __construct($publicKey, $ttl, $algorithm, $timestamp = null, $privateKey = null) |
|
39 | { |
||
40 | 1 | $this->publicKey = (string) $publicKey; |
|
|
|||
41 | 1 | $this->ttl = (int) $ttl; |
|
42 | 1 | $this->algorithm = (string) $algorithm; |
|
43 | 1 | $this->timestamp = $timestamp ? (int) $timestamp : time(); |
|
44 | 1 | $this->privateKey = (string) $privateKey; |
|
45 | 1 | } |
|
46 | |||
87 |
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.