Passed
Pull Request — master (#1750)
by
unknown
03:42
created

Application   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 9
c 1
b 0
f 0
dl 0
loc 32
ccs 0
cts 3
cp 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __call() 0 3 1
1
<?php
2
3
/*
4
 * This file is part of the overtrue/wechat.
5
 *
6
 * (c) overtrue <[email protected]>
7
 *
8
 * This source file is subject to the MIT license that is bundled
9
 * with this source code in the file LICENSE.
10
 */
11
12
namespace EasyWeChat\QQMiniProgram;
13
14
use EasyWeChat\BasicService;
15
use EasyWeChat\Kernel\ServiceContainer;
16
17
/**
18
 * Class Application.
19
 *
20
 * @author mingyoung <[email protected]>
21
 *
22
 * @property \EasyWeChat\MiniProgram\Auth\Client                $auth
23
 */
24
class Application extends ServiceContainer
25
{
26
    /**
27
     * @var array
28
     */
29
    protected $providers = [
30
        Auth\ServiceProvider::class,
31
        // Base services
32
        BasicService\Media\ServiceProvider::class,
33
        BasicService\ContentSecurity\ServiceProvider::class,
34
    ];
35
36
    /**
37
     * @var array
38
     */
39
    protected $defaultConfig = [
40
        'http' => [
41
            'base_uri' => 'https://api.q.qq.com/',
42
        ],
43
    ];
44
45
    /**
46
     * Handle dynamic calls.
47
     *
48
     * @param string $method
49
     * @param array  $args
50
     *
51
     * @return mixed
52
     */
53
    public function __call($method, $args)
54
    {
55
        return $this->base->$method(...$args);
0 ignored issues
show
Bug Best Practice introduced by
The property base does not exist on EasyWeChat\QQMiniProgram\Application. Since you implemented __get, consider adding a @property annotation.
Loading history...
56
    }
57
}
58