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.

SimpleCommand::execute()   B
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 27
Code Lines 19

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 27
rs 8.8571
c 0
b 0
f 0
cc 1
eloc 19
nc 1
nop 2
1
<?php
2
namespace Clients\DocumentLiteralWrapped;
3
4
use Clients\InitCommand;
5
use SoapClient;
6
use stdClass;
7
use Symfony\Component\Console\Input\InputInterface;
8
use Symfony\Component\Console\Output\OutputInterface;
9
10
class SimpleCommand extends InitCommand
11
{
12
    protected function configure()
13
    {
14
        $this->setName('document_literal:simple');
15
    }
16
17
    protected function execute(InputInterface $input, OutputInterface $output)
18
    {
19
        $this->output = $output;
20
        $this->soapClient = new SoapClient('http://localhost/wsdl-creator/examples/document_literal_wrapped/SimpleExampleSoapServer.php?wsdl', array(
21
            'trace' => true, 'cache_wsdl' => WSDL_CACHE_NONE
22
        ));
23
24
        $this->serviceInfo('Client Simple - document/literal wrapped');
25
26
        $this->renderMethodsTable();
27
28
        $params = new stdClass();
29
        $params->name = 'john';
30
        $params->age = 5;
31
        $response = $this->soapClient->getNameWithAge($params);
32
        $this->method('getNameWithAge', array($params), $response);
33
34
        $params = new stdClass();
35
        $params->names = array('john', 'billy', 'peter');
36
        $response = $this->soapClient->getNameForUsers($params);
37
        $this->method('getNameForUser', array($params), $response);
38
39
        $params = new stdClass();
40
        $params->max = 5;
41
        $response = $this->soapClient->countTo($params);
42
        $this->method('countTo', array($params), $response);
43
    }
44
}