for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Created by PhpStorm.
* @author Donii Sergii <[email protected]>
* Date: 10/24/17
* Time: 11:05 AM
*/
namespace sonrac\WAMP\Routers;
use sonrac\WAMP\Contracts\PubSubRouterInterface;
* Class PubSubRouter
* Publisher/subscribers router
*
* @package sonrac\WAMP
class PubSubRouter implements PubSubRouterInterface
{
use RouterTrait;
* @param string $path Route path
* @param \Closure|string $callback Callback
* @param string $eventName Event name in dispatcher
public function addRoute($path, $callback, $eventName)
$eventName
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function addRoute($path, $callback, /** @scrutinizer ignore-unused */ $eventName)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
$callback
public function addRoute($path, /** @scrutinizer ignore-unused */ $callback, $eventName)
$path
public function addRoute(/** @scrutinizer ignore-unused */ $path, $callback, $eventName)
}
* @inheritDoc
public function dispatch()
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.