@@ -32,9 +32,9 @@ |
||
32 | 32 | |
33 | 33 | $check = $this->createMock(TraitBased::class); |
34 | 34 | $check->expects(self::once()) |
35 | - ->method('__invoke') |
|
36 | - ->with($reflection, $reflection) |
|
37 | - ->willReturn(Changes::fromList(Change::removed('foo', true))); |
|
35 | + ->method('__invoke') |
|
36 | + ->with($reflection, $reflection) |
|
37 | + ->willReturn(Changes::fromList(Change::removed('foo', true))); |
|
38 | 38 | |
39 | 39 | self::assertEquals( |
40 | 40 | Changes::fromList(Change::removed('foo', true)), |
@@ -35,9 +35,9 @@ |
||
35 | 35 | /** @var ClassBased&MockObject $check */ |
36 | 36 | $check = $this->createMock(ClassBased::class); |
37 | 37 | $check->expects(self::once()) |
38 | - ->method('__invoke') |
|
39 | - ->with($fromReflection, $toReflection) |
|
40 | - ->willReturn(Changes::fromList(Change::removed('foo', true))); |
|
38 | + ->method('__invoke') |
|
39 | + ->with($fromReflection, $toReflection) |
|
40 | + ->willReturn(Changes::fromList(Change::removed('foo', true))); |
|
41 | 41 | |
42 | 42 | self::assertEquals( |
43 | 43 | Changes::fromList(Change::removed('foo', true)), |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | |
32 | 32 | self::assertSame( |
33 | 33 | $expectedMessages, |
34 | - array_map(static function (Change $change) : string { |
|
34 | + array_map(static function(Change $change) : string { |
|
35 | 35 | return $change->__toString(); |
36 | 36 | }, iterator_to_array($changes)) |
37 | 37 | ); |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | , |
54 | 54 | $locator |
55 | 55 | )); |
56 | - $toReflector = new ClassReflector(new StringSourceLocator( |
|
56 | + $toReflector = new ClassReflector(new StringSourceLocator( |
|
57 | 57 | <<<'PHP' |
58 | 58 | <?php |
59 | 59 |
@@ -32,9 +32,9 @@ |
||
32 | 32 | |
33 | 33 | $check = $this->createMock(InterfaceBased::class); |
34 | 34 | $check->expects(self::once()) |
35 | - ->method('__invoke') |
|
36 | - ->with($reflection, $reflection) |
|
37 | - ->willReturn(Changes::fromList(Change::removed('foo', true))); |
|
35 | + ->method('__invoke') |
|
36 | + ->with($reflection, $reflection) |
|
37 | + ->willReturn(Changes::fromList(Change::removed('foo', true))); |
|
38 | 38 | |
39 | 39 | self::assertEquals( |
40 | 40 | Changes::fromList(Change::removed('foo', true)), |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | |
36 | 36 | self::assertSame( |
37 | 37 | $expectedMessages, |
38 | - array_map(static function (Change $change) : string { |
|
38 | + array_map(static function(Change $change) : string { |
|
39 | 39 | return $change->__toString(); |
40 | 40 | }, iterator_to_array($changes)) |
41 | 41 | ); |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | return array_combine( |
97 | 97 | array_keys($functions), |
98 | 98 | array_map( |
99 | - static function (string $function, array $errorMessages) use ($fromReflector, $toReflector) : array { |
|
99 | + static function(string $function, array $errorMessages) use ($fromReflector, $toReflector) : array { |
|
100 | 100 | return [ |
101 | 101 | $fromReflector->reflect($function), |
102 | 102 | $toReflector->reflect($function), |
@@ -33,9 +33,9 @@ discard block |
||
33 | 33 | |
34 | 34 | $check = $this->createMock(FunctionBased::class); |
35 | 35 | $check->expects(self::once()) |
36 | - ->method('__invoke') |
|
37 | - ->with($function, $function) |
|
38 | - ->willReturn(Changes::fromList(Change::removed('foo', true))); |
|
36 | + ->method('__invoke') |
|
37 | + ->with($function, $function) |
|
38 | + ->willReturn(Changes::fromList(Change::removed('foo', true))); |
|
39 | 39 | |
40 | 40 | self::assertEquals( |
41 | 41 | Changes::fromList(Change::removed('foo', true)), |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | |
62 | 62 | $check = $this->createMock(FunctionBased::class); |
63 | 63 | $check->expects(self::never()) |
64 | - ->method('__invoke'); |
|
64 | + ->method('__invoke'); |
|
65 | 65 | |
66 | 66 | self::assertEquals( |
67 | 67 | Changes::empty(), |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | { |
20 | 20 | public function testNormalFunctionsAreNotExcluded() : void |
21 | 21 | { |
22 | - $source = new StringSourceLocator( |
|
22 | + $source = new StringSourceLocator( |
|
23 | 23 | <<<'PHP' |
24 | 24 | <?php |
25 | 25 | |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | |
47 | 47 | public function testInternalFunctionsAreExcluded() : void |
48 | 48 | { |
49 | - $source = new StringSourceLocator( |
|
49 | + $source = new StringSourceLocator( |
|
50 | 50 | <<<'PHP' |
51 | 51 | <?php |
52 | 52 |
@@ -36,9 +36,9 @@ discard block |
||
36 | 36 | |
37 | 37 | $check = $this->createMock(PropertyBased::class); |
38 | 38 | $check->expects(self::once()) |
39 | - ->method('__invoke') |
|
40 | - ->with($property, $property) |
|
41 | - ->willReturn(Changes::fromList(Change::removed('foo', true))); |
|
39 | + ->method('__invoke') |
|
40 | + ->with($property, $property) |
|
41 | + ->willReturn(Changes::fromList(Change::removed('foo', true))); |
|
42 | 42 | |
43 | 43 | self::assertEquals( |
44 | 44 | Changes::fromList(Change::removed('foo', true)), |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | |
69 | 69 | $check = $this->createMock(PropertyBased::class); |
70 | 70 | $check->expects(self::never()) |
71 | - ->method('__invoke'); |
|
71 | + ->method('__invoke'); |
|
72 | 72 | |
73 | 73 | self::assertEquals( |
74 | 74 | Changes::empty(), |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | |
37 | 37 | self::assertSame( |
38 | 38 | $expectedMessages, |
39 | - array_map(static function (Change $change) : string { |
|
39 | + array_map(static function(Change $change) : string { |
|
40 | 40 | return $change->__toString(); |
41 | 41 | }, iterator_to_array($changes)) |
42 | 42 | ); |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | return array_combine( |
109 | 109 | array_keys($properties), |
110 | 110 | array_map( |
111 | - static function (string $property, array $errorMessages) use ($fromClass, $toClass) : array { |
|
111 | + static function(string $property, array $errorMessages) use ($fromClass, $toClass) : array { |
|
112 | 112 | return [ |
113 | 113 | $fromClass->getProperty($property), |
114 | 114 | $toClass->getProperty($property), |
@@ -34,9 +34,9 @@ discard block |
||
34 | 34 | |
35 | 35 | $check = $this->createMock(MethodBased::class); |
36 | 36 | $check->expects(self::once()) |
37 | - ->method('__invoke') |
|
38 | - ->with($method, $method) |
|
39 | - ->willReturn(Changes::fromList(Change::removed('foo', true))); |
|
37 | + ->method('__invoke') |
|
38 | + ->with($method, $method) |
|
39 | + ->willReturn(Changes::fromList(Change::removed('foo', true))); |
|
40 | 40 | |
41 | 41 | self::assertEquals( |
42 | 42 | Changes::fromList(Change::removed('foo', true)), |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | |
65 | 65 | $check = $this->createMock(MethodBased::class); |
66 | 66 | $check->expects(self::never()) |
67 | - ->method('__invoke'); |
|
67 | + ->method('__invoke'); |
|
68 | 68 | |
69 | 69 | self::assertEquals( |
70 | 70 | Changes::empty(), |