Completed
Push — master ( 95e46b...dd0453 )
by Edgar
04:26 queued 01:47
created

Inbounder::gateway()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4286
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
3
namespace Inbounder;
4
5
class Inbounder
6
{
7
    public static function gateway($gateway, Request $request)
8
    {
9
        // get the gateway handler
10
        $handler = App::make(config('inbounder::gateways.' . $gateway));
11
        return new Gateway($request, $handler);
0 ignored issues
show
Unused Code introduced by
The call to Gateway::__construct() has too many arguments starting with $request.

This check compares calls to functions or methods with their respective definitions. If the call has more arguments than are defined, it raises an issue.

If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress.

In this case you can add the @ignore PhpDoc annotation to the duplicate definition and it will be ignored.

Loading history...
12
    }
13
}
14