Failed Conditions
Pull Request — experimental/3.1 (#2159)
by Kentaro
39:20
created

MobileDetectServiceProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 9
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 6 1
1
<?php
2
/*
3
* This file is part of MobileDetectServiceProvider.
4
*
5
* (c) Lhassan Baazzi <[email protected]>
6
*
7
* For the full copyright and license information, please view the LICENSE
8
* file that was distributed with this source code.
9
*/
10
namespace Eccube\ServiceProvider;
11
12
use Pimple\ServiceProviderInterface;
13
use Pimple\Container;
14
/**
15
 * @see https://github.com/jbinfo/MobileDetectServiceProvider/pull/4
16
 */
17
class MobileDetectServiceProvider implements ServiceProviderInterface
18
{
19
    public function register(Container $container)
0 ignored issues
show
introduced by
Missing function doc comment
Loading history...
20
    {
21
        $container['mobile_detect'] = function($c) {
0 ignored issues
show
Unused Code introduced by
The parameter $c 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...
Coding Style introduced by
Expected 1 space after FUNCTION keyword; 0 found
Loading history...
22
            return new \Mobile_Detect();
23
        };
24
    }
25
}
26