for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Equip\Auth;
class Token
{
/**
* @var string
*/
private $token;
* @var array
private $metadata;
* @param string $token
* @param array $metadata
public function __construct($token, array $metadata)
$this->token = $token;
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.
$this->metadata = $metadata;
}
* @return string
public function getToken()
return $this->token;
* @param string|null $key
* @return mixed
public function getMetadata($key = null)
if ($key !== null) {
return isset($this->metadata[$key]) ? $this->metadata[$key] : null;
return $this->metadata;
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.