for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Equip\Auth;
class Credentials
{
/**
* @var string
*/
private $identifier;
private $password;
* @param string $identifier
* @param string $password
public function __construct($identifier, $password)
$this->identifier = $identifier;
$this->password = $password;
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
$a = "a"; $ab = "ab"; $abc = "abc";
will produce issues in the first and second line, while this second example
will produce no issues.
}
* @return string
public function getIdentifier()
return $this->identifier;
public function getPassword()
return $this->password;
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.