for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Phloppy\Event;
use Symfony\Component\EventDispatcher\Event;
class JobsReceivedEvent extends Event
{
const ID = 'job.getjob';
/**
* @var Job[]
*/
private $jobs;
* @var string[]
private $queues;
* @param string[] $queues
* @param Job[] $jobs
public function __construct(array $queues, array $jobs)
$this->queues = $queues;
$this->jobs = $jobs;
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 Job[]
public function getJobs()
return $this->jobs;
* @return string[]
public function getQueues()
return $this->queues;
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.