for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Canvas;
use Phalcon\Traits\EventManagerAwareTrait;
/**
* New event Manager to allow use to use fireToQueue.
*/
class EventsManager
{
use EventManagerAwareTrait;
* Checking if event manager is defined - fire event.
*
* @param string $event
* @param object $source
* @param mixed $data
* @param boolean $cancelable
public function fireToQueue($event, $source, $data = null, $cancelable = true)
$event
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function fireToQueue(/** @scrutinizer ignore-unused */ $event, $source, $data = null, $cancelable = true)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
$cancelable
public function fireToQueue($event, $source, $data = null, /** @scrutinizer ignore-unused */ $cancelable = true)
$data
public function fireToQueue($event, $source, /** @scrutinizer ignore-unused */ $data = null, $cancelable = true)
$source
public function fireToQueue($event, /** @scrutinizer ignore-unused */ $source, $data = null, $cancelable = true)
if ($manager = $this->getEventsManager()) {
$manager
* @todo add the the event manager to send to queue
}
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.