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: 10:25 AM
*/
namespace sonrac\WAMP\Routers;
use sonrac\WAMP\Contracts\RPCRouterInterface;
* Class RPCRouterInterface
* WAMP RPC router.
class RPCRouter implements RPCRouterInterface
{
use RouterTrait;
public function addRoute($path, $publisher, $callback) {
$callback
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, $publisher, /** @scrutinizer ignore-unused */ $callback) {
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
$path
public function addRoute(/** @scrutinizer ignore-unused */ $path, $publisher, $callback) {
$publisher
public function addRoute($path, /** @scrutinizer ignore-unused */ $publisher, $callback) {
}
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.