ServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
lcom 1
cbo 0
dl 0
loc 24
rs 10
c 1
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A register() 0 6 1
1
<?php
2
3
namespace Taisiya\CoreBundle\Provider;
4
5
use Pimple\Container;
6
use Pimple\ServiceProviderInterface;
7
use Slim\App;
8
9
abstract class ServiceProvider implements ServiceProviderInterface
10
{
11
    /**
12
     * @var App
13
     */
14
    private $app;
15
16
    /**
17
     * CoreServiceProvider constructor.
18
     *
19
     * @param App $app
20
     */
21
    public function __construct(App $app)
22
    {
23
        $this->app = $app;
24
    }
25
26
    public function register(Container $pimple)
27
    {
28
        $pimple['app'] = function (Container $pimple) {
0 ignored issues
show
Unused Code introduced by
The parameter $pimple is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
29
            return $this->app;
30
        };
31
    }
32
}
33