for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Equip;
use Arbiter\Action as Arbiter;
class Action extends Arbiter
{
protected $input = 'Equip\Input';
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.
protected $responder = 'Equip\Responder\ChainedResponder';
/**
* @inheritDoc
*/
public function __construct(
$domain,
$responder = null,
$input = null
) {
$this->domain = $domain;
if ($responder) {
$this->responder = $responder;
}
if ($input) {
$this->input = $input;
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.