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.
Completed
Push — master ( fa9233...7f89d9 )
by Tomas
06:55
created

SimpleCommand::execute()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 22
Code Lines 13

Duplication

Lines 0
Ratio 0 %

Importance

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