MoltenServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 60%

Importance

Changes 0
Metric Value
dl 0
loc 14
rs 10
c 0
b 0
f 0
ccs 3
cts 5
cp 0.6
wmc 2
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 6 2
1
<?php
2
/**
3
 * @author    jan huang <[email protected]>
4
 * @copyright 2017
5
 *
6
 * @see      https://www.github.com/janhuang
7
 * @see      https://fastdlabs.com
8
 */
9
10
namespace FastD\ServiceProvider;
11
12
use FastD\Container\Container;
13
use FastD\Container\ServiceProviderInterface;
14
15
class MoltenServiceProvider implements ServiceProviderInterface
16
{
17
    /**
18
     * @param Container $container
19
     *
20
     * @return mixed
21
     */
22 32
    public function register(Container $container)
23
    {
24 32
        if (function_exists('molten_set_service_name')) {
25
            molten_set_service_name(app()->getName());
26
        }
27 32
    }
28
}
29