for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Equip;
use Equip\Adr\PayloadInterface;
class Payload implements PayloadInterface
{
/**
* @var integer
*/
private $status;
* @var array
private $input;
private $output;
private $messages;
* @inheritDoc
public function withStatus($code)
$copy = clone $this;
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.
$copy->status = $code;
return $copy;
}
public function getStatus()
return $this->status;
public function withInput(array $input)
$copy->input = $input;
public function getInput()
return $this->input;
public function withOutput(array $output)
$copy->output = $output;
public function getOutput()
return $this->output;
public function withMessages(array $messages)
$copy->messages = $messages;
public function getMessages()
return $this->messages;
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.