Completed
Pull Request — master (#1275)
by
unknown
03:05
created

ServiceProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 13
rs 10
c 0
b 0
f 0
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 5 2
1
<?php
2
3
namespace EasyWeChat\OpenWork\Provider;
4
5
use Pimple\Container;
6
use Pimple\ServiceProviderInterface;
7
8
class ServiceProvider implements ServiceProviderInterface
9
{
10
11
    protected $app;
12
13
    /**
14
     * @param Container $app
15
     */
16
    public function register(Container $app)
17
    {
18
        $this->app = $app;
0 ignored issues
show
Coding Style introduced by
Equals sign not aligned with surrounding assignments; expected 34 spaces but found 1 space

This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.

To visualize

$a = "a";
$ab = "ab";
$abc = "abc";

will produce issues in the first and second line, while this second example

$a   = "a";
$ab  = "ab";
$abc = "abc";

will produce no issues.

Loading history...
19
        isset($app['provider']) || $app['provider'] = function ($app) {
20
            return new Client($app);
21
        };
22
    }
23
24
25
}