@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | class ClassWithSelfTypeHint |
3 | 3 | { |
4 | - public function foo(self $foo) |
|
5 | - { |
|
6 | - } |
|
4 | + public function foo(self $foo) |
|
5 | + { |
|
6 | + } |
|
7 | 7 | } |
@@ -1,28 +1,28 @@ |
||
1 | 1 | <?php |
2 | 2 | class Mockable |
3 | 3 | { |
4 | - public $constructorArgs; |
|
5 | - public $cloned; |
|
4 | + public $constructorArgs; |
|
5 | + public $cloned; |
|
6 | 6 | |
7 | - public function __construct($arg1 = null, $arg2 = null) |
|
8 | - { |
|
9 | - $this->constructorArgs = [$arg1, $arg2]; |
|
10 | - } |
|
7 | + public function __construct($arg1 = null, $arg2 = null) |
|
8 | + { |
|
9 | + $this->constructorArgs = [$arg1, $arg2]; |
|
10 | + } |
|
11 | 11 | |
12 | - public function mockableMethod() |
|
13 | - { |
|
14 | - // something different from NULL |
|
15 | - return true; |
|
16 | - } |
|
12 | + public function mockableMethod() |
|
13 | + { |
|
14 | + // something different from NULL |
|
15 | + return true; |
|
16 | + } |
|
17 | 17 | |
18 | - public function anotherMockableMethod() |
|
19 | - { |
|
20 | - // something different from NULL |
|
21 | - return true; |
|
22 | - } |
|
18 | + public function anotherMockableMethod() |
|
19 | + { |
|
20 | + // something different from NULL |
|
21 | + return true; |
|
22 | + } |
|
23 | 23 | |
24 | - public function __clone() |
|
25 | - { |
|
26 | - $this->cloned = true; |
|
27 | - } |
|
24 | + public function __clone() |
|
25 | + { |
|
26 | + $this->cloned = true; |
|
27 | + } |
|
28 | 28 | } |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | 2 | interface AnInterfaceWithReturnType |
3 | 3 | { |
4 | - public function returnAnArray(): array; |
|
4 | + public function returnAnArray(): array; |
|
5 | 5 | } |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | class Foo |
3 | 3 | { |
4 | - public function doSomething(Bar $bar) |
|
5 | - { |
|
6 | - return $bar->doSomethingElse(); |
|
7 | - } |
|
4 | + public function doSomething(Bar $bar) |
|
5 | + { |
|
6 | + return $bar->doSomethingElse(); |
|
7 | + } |
|
8 | 8 | } |
@@ -1,15 +1,15 @@ |
||
1 | 1 | <?php |
2 | 2 | trait AbstractTrait |
3 | 3 | { |
4 | - abstract public function doSomething(); |
|
4 | + abstract public function doSomething(); |
|
5 | 5 | |
6 | - public function mockableMethod() |
|
7 | - { |
|
8 | - return true; |
|
9 | - } |
|
6 | + public function mockableMethod() |
|
7 | + { |
|
8 | + return true; |
|
9 | + } |
|
10 | 10 | |
11 | - public function anotherMockableMethod() |
|
12 | - { |
|
13 | - return true; |
|
14 | - } |
|
11 | + public function anotherMockableMethod() |
|
12 | + { |
|
13 | + return true; |
|
14 | + } |
|
15 | 15 | } |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | 2 | interface InterfaceWithSemiReservedMethodName |
3 | 3 | { |
4 | - public function unset(); |
|
4 | + public function unset(); |
|
5 | 5 | } |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | interface MockTestInterface |
3 | 3 | { |
4 | - public function returnAnything(); |
|
5 | - public function returnAnythingElse(); |
|
4 | + public function returnAnything(); |
|
5 | + public function returnAnythingElse(); |
|
6 | 6 | } |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | abstract class AbstractMockTestClass implements MockTestInterface |
3 | 3 | { |
4 | - abstract public function doSomething(); |
|
4 | + abstract public function doSomething(); |
|
5 | 5 | |
6 | - public function returnAnything() |
|
7 | - { |
|
8 | - return 1; |
|
9 | - } |
|
6 | + public function returnAnything() |
|
7 | + { |
|
8 | + return 1; |
|
9 | + } |
|
10 | 10 | } |
@@ -1,3 +1,3 @@ |
||
1 | 1 | <?php |
2 | -require __DIR__ . '/_fixture/FunctionCallback.php'; |
|
3 | -require __DIR__ . '/../vendor/autoload.php'; |
|
2 | +require __DIR__.'/_fixture/FunctionCallback.php'; |
|
3 | +require __DIR__.'/../vendor/autoload.php'; |