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::configure()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
namespace Clients\RpcEncoded;
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_encoded:simple');
14
    }
15
16
    protected function execute(InputInterface $input, OutputInterface $output)
17
    {
18
        $this->output = $output;
19
        $this->soapClient = new SoapClient('http://localhost/wsdl-creator/examples/rpc_encoded/SimpleExampleSoapServer.php?wsdl', array(
20
            'trace' => true, 'cache_wsdl' => WSDL_CACHE_NONE
21
        ));
22
23
        $this->serviceInfo('Client Simple - rpc/encoded');
24
25
        $this->renderMethodsTable();
26
27
        $response = $this->soapClient->getNameWithAge('john', 5);
28
        $this->method('getNameWithAge', array('john', 5), $response);
29
30
        $response = $this->soapClient->getNameForUsers(array('john', 'billy', 'peter'));
31
        $this->method('getNameForUser', array(array('john', 'billy', 'peter')), $response);
32
33
        $response = $this->soapClient->countTo(5);
34
        $this->method('countTo', array(5), $response);
35
    }
36
}