Completed
Push — master ( c12270...10319f )
by Sergii
04:52
created

RPCRouter   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 0
cts 1
cp 0
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A addRoute() 0 1 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 *
5
 * @author Donii Sergii <[email protected]>
6
 * Date: 10/24/17
7
 * Time: 10:25 AM
8
 */
9
10
namespace sonrac\WAMP\Routers;
11
12
use sonrac\WAMP\Contracts\RPCRouterInterface;
13
14
/**
15
 * Class RPCRouterInterface
16
 * WAMP RPC router.
17
 */
18
class RPCRouter implements RPCRouterInterface
19
{
20
    use RouterTrait;
21
22
    public function addRoute($path, $publisher, $callback) {
0 ignored issues
show
Unused Code introduced by
The parameter $callback is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

22
    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.

Loading history...
Unused Code introduced by
The parameter $path is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

22
    public function addRoute(/** @scrutinizer ignore-unused */ $path, $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.

Loading history...
Unused Code introduced by
The parameter $publisher is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

22
    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.

Loading history...
23
24
    }
25
}
26