GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

SmsaManager::__call()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 9
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 2

Importance

Changes 0
Metric Value
cc 2
eloc 6
nc 2
nop 2
dl 0
loc 9
ccs 6
cts 6
cp 1
crap 2
rs 9.6666
c 0
b 0
f 0
1
<?php
2
3
namespace SmsaSDK;
4
5
use SmsaSDK\Concerns\Configurable;
6
use SmsaSDK\Concerns\ControlWsdl;
7
use SmsaSDK\Concerns\MapMethods;
8
use SmsaSDK\Concerns\PrepareClient;
9
use SmsaSDK\Concerns\UsesReflection;
10
use SmsaSDK\Concerns\ValidateData;
11
12
/**
13
 * SmsaManager.
14
 */
15
class SmsaManager
16
{
17
    private $uri;
0 ignored issues
show
Unused Code introduced by
The property $uri is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
18
    private $wsdlFilePath;
0 ignored issues
show
Unused Code introduced by
The property $wsdlFilePath is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
19
    private $passkey;
0 ignored issues
show
Unused Code introduced by
The property $passkey is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
20
    private $client;
0 ignored issues
show
Unused Code introduced by
The property $client is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
21
    private $nullValues = null;
0 ignored issues
show
Unused Code introduced by
The property $nullValues is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
22
    private $reflection;
0 ignored issues
show
Unused Code introduced by
The property $reflection is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
23
24
    use MapMethods;
25
    use ControlWsdl;
26
    use ValidateData;
27
    use Configurable;
28
    use PrepareClient;
29
    use UsesReflection;
30
31
    /**
32
     * __call
33
     * Insert description here.
34
     *
35
     * @param $method
36
     * @param $arguments
37
     *
38
     * @return
39
     */
40 6
    public function __call($method, $arguments)
41
    {
42 6
        $this->setUp();
43 6
        $class = __NAMESPACE__.'\\Methods\\'.$method;
44 6
        $arguments = empty($arguments) ? [] : $arguments[0];
45 6
        $methodHandler = $this->prepareMethodHandler($arguments, $class);
46
47 3
        return $this->client()->$method($methodHandler);
48
    }
49
}
50