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   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 1
dl 0
loc 35
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A configure() 0 4 1
B execute() 0 27 1
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
}