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

SwaggerService::__invoke()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
ccs 2
cts 2
cp 1
crap 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