@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | 2 | interface AnInterface |
3 | 3 | { |
4 | - public function doSomething(); |
|
4 | + public function doSomething(); |
|
5 | 5 | } |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | class ClassWithStaticMethod |
3 | 3 | { |
4 | - public static function staticMethod() |
|
5 | - { |
|
6 | - } |
|
4 | + public static function staticMethod() |
|
5 | + { |
|
6 | + } |
|
7 | 7 | } |
@@ -2,27 +2,27 @@ |
||
2 | 2 | |
3 | 3 | class SingletonClass |
4 | 4 | { |
5 | - public static function getInstance() |
|
6 | - { |
|
7 | - } |
|
5 | + public static function getInstance() |
|
6 | + { |
|
7 | + } |
|
8 | 8 | |
9 | - public function doSomething() |
|
10 | - { |
|
11 | - } |
|
9 | + public function doSomething() |
|
10 | + { |
|
11 | + } |
|
12 | 12 | |
13 | - protected function __construct() |
|
14 | - { |
|
15 | - } |
|
13 | + protected function __construct() |
|
14 | + { |
|
15 | + } |
|
16 | 16 | |
17 | - final private function __sleep() |
|
18 | - { |
|
19 | - } |
|
17 | + final private function __sleep() |
|
18 | + { |
|
19 | + } |
|
20 | 20 | |
21 | - final private function __wakeup() |
|
22 | - { |
|
23 | - } |
|
21 | + final private function __wakeup() |
|
22 | + { |
|
23 | + } |
|
24 | 24 | |
25 | - final private function __clone() |
|
26 | - { |
|
27 | - } |
|
25 | + final private function __clone() |
|
26 | + { |
|
27 | + } |
|
28 | 28 | } |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | class StringableClass |
3 | 3 | { |
4 | - public function __toString() |
|
5 | - { |
|
6 | - return '12345'; |
|
7 | - } |
|
4 | + public function __toString() |
|
5 | + { |
|
6 | + return '12345'; |
|
7 | + } |
|
8 | 8 | } |
@@ -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 | } |