| 1 | <?php  | 
            ||
| 4 | class Credentials  | 
            ||
| 5 | { | 
            ||
| 6 | /**  | 
            ||
| 7 | * @var string  | 
            ||
| 8 | */  | 
            ||
| 9 | private $identifier;  | 
            ||
| 10 | |||
| 11 | /**  | 
            ||
| 12 | * @var string  | 
            ||
| 13 | */  | 
            ||
| 14 | private $password;  | 
            ||
| 15 | |||
| 16 | /**  | 
            ||
| 17 | * @param string $identifier  | 
            ||
| 18 | * @param string $password  | 
            ||
| 19 | */  | 
            ||
| 20 | 3 | public function __construct($identifier, $password)  | 
            |
| 25 | |||
| 26 | /**  | 
            ||
| 27 | * @return string  | 
            ||
| 28 | */  | 
            ||
| 29 | 3 | public function getIdentifier()  | 
            |
| 33 | |||
| 34 | /**  | 
            ||
| 35 | * @return string  | 
            ||
| 36 | */  | 
            ||
| 37 | 3 | public function getPassword()  | 
            |
| 41 | }  | 
            ||
| 42 | 
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.