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