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 — 3.x ( 854d93...81f322 )
by Jindřich
01:52
created

WebServiceStub::call()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
1
<?php
2
3
namespace Test\Skautis;
4
5
use Skautis\Wsdl\WebServiceFactory;
6
use Skautis\Wsdl\WebServiceInterface;
7
8
class WebServiceFactoryTest extends \PHPUnit_Framework_TestCase
9
{
10
11
    public function testCallback()
12
    {
13
        $factory = new WebServiceFactory('Test\Skautis\WebServiceStub');
14
        $args = ['cache' => false];
15
        $webService = $factory->createWebService("http://moje-wsdl.xml", $args);
16
17
        $this->assertEquals("http://moje-wsdl.xml", $webService->getWsdl());
18
        $this->assertEquals($args, $webService->getSoapArgs());
19
    }
20
}
21
22
23
class WebServiceStub implements  WebServiceInterface
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class should be in its own file to aid autoloaders.

Having each class in a dedicated file usually plays nice with PSR autoloaders and is therefore a well established practice. If you use other autoloaders, you might not want to follow this rule.

Loading history...
Coding Style introduced by
Expected 1 space before "WebServiceInterface"; 2 found
Loading history...
24
{
25
26
    protected $wsdl;
27
28
    protected $soapArgs;
29
30
    public function __construct($wsdl, $soapArgs)
31
    {
32
        $this->wsdl = $wsdl;
33
        $this->soapArgs = $soapArgs;
34
    }
35
36
    public function getWsdl()
37
    {
38
        return $this->wsdl;
39
    }
40
41
    public function getSoapArgs()
42
    {
43
        return $this->soapArgs;
44
    }
45
46
  /**
47
   * Přidá listener na událost.
48
   */
49
  public function subscribe(
50
    string $eventName,
0 ignored issues
show
Coding Style introduced by
Multi-line function declaration not indented correctly; expected 6 spaces but found 4
Loading history...
51
    callable $callback
0 ignored issues
show
Coding Style introduced by
Multi-line function declaration not indented correctly; expected 6 spaces but found 4
Loading history...
52
  ): void {
53
    // Empty
54
  }
55
56
  /**
57
   * Zavola funkci na Skautisu
58
   *
59
   * @param string $functionName Jmeno funkce volane na skautisu
60
   * @param array $arguments Argumenty funkce volane na skautisu
61
   *
62
   * @return mixed
63
   */
64
  public function call(
65
    string $functionName,
0 ignored issues
show
Coding Style introduced by
Multi-line function declaration not indented correctly; expected 6 spaces but found 4
Loading history...
66
    array $arguments = []
0 ignored issues
show
Coding Style introduced by
Multi-line function declaration not indented correctly; expected 6 spaces but found 4
Loading history...
67
  ) {
68
    return null;
69
  }
70
71
  /**
72
   * Zavola funkci na Skautisu
73
   *
74
   * @param string $functionName Jmeno funkce volane na skautisu
75
   * @param array $arguments Argumenty funkce volane na skautisu
76
   *
77
   * @return mixed
78
   */
79
  public function __call(
80
    string $functionName,
0 ignored issues
show
Coding Style introduced by
Multi-line function declaration not indented correctly; expected 6 spaces but found 4
Loading history...
81
    array $arguments
0 ignored issues
show
Coding Style introduced by
Multi-line function declaration not indented correctly; expected 6 spaces but found 4
Loading history...
82
  ) {
83
    return null;
84
  }
85
}
86