Passed
Push — master ( eda005...2d3321 )
by Andrey
02:01
created

SwaggerService   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 3 1
1
<?php
2
3
namespace JDesrosiers\Silex\Provider;
4
5
use Silex\Application;
6
use Swagger\Swagger;
7
8
class SwaggerService
9
{
10 12
    public function __invoke(Application $app)
11
    {
12 12
        return new Swagger($app["swagger.servicePath"], $app["swagger.excludePath"]);
13
    }
14
}
15