Completed
Push — master ( b8ee44...86e435 )
by Jim
02:27
created

ApiAliasServiceProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 4 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: lenovo
5
 * Date: 6/23/2018
6
 * Time: 7:37 PM
7
 */
8
9
namespace TimSDK\Core\ServiceProviders;
10
11
use Pimple\Container;
12
use TimSDK\Core\ApiAlias;
13
use TimSDK\Foundation\ServiceProviders\ServiceProvider;
14
15
class ApiAliasServiceProvider extends ServiceProvider
16
{
17
    /**
18
     * Registers services on the given container.
19
     *
20
     * This method should only be used to configure services and parameters.
21
     * It should not get services.
22
     *
23
     * @param Container $pimple A container instance
24
     */
25
    public function register(Container $pimple)
26
    {
27
        $pimple['apiAlias'] = function ($pimple) {
0 ignored issues
show
Unused Code introduced by
The parameter $pimple is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

27
        $pimple['apiAlias'] = function (/** @scrutinizer ignore-unused */ $pimple) {

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

Loading history...
28
            return new ApiAlias();
29
        };
30
    }
31
}
32