NextHandlerFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 16
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getHandler() 0 13 1
1
<?php
2
3
namespace Softonic\Laravel\Middleware\Psr15Bridge;
4
5
use Closure;
6
use Symfony\Bridge\PsrHttpMessage\Factory\HttpFoundationFactory;
7
use Symfony\Bridge\PsrHttpMessage\Factory\PsrHttpFactory;
8
use Symfony\Component\HttpFoundation\Request;
9
10
class NextHandlerFactory
11
{
12
    public function getHandler(
13
        HttpFoundationFactory $httpFoundationFactory,
14
        PsrHttpFactory $psrHttpFactory,
15
        Request $request,
16
        Closure $next
17
    ): NextHandlerAdapter {
18
        return new NextHandlerAdapter(
19
            $httpFoundationFactory,
20
            $psrHttpFactory,
21
            $request,
22
            $next
23
        );
24
    }
25
}
26