@@ -19,7 +19,7 @@ |
||
19 | 19 | |
20 | 20 | public function __invoke(ReflectionProperty $fromProperty, ReflectionProperty $toProperty) : Changes |
21 | 21 | { |
22 | - if (! $fromProperty->isPublic()) { |
|
22 | + if (!$fromProperty->isPublic()) { |
|
23 | 23 | return Changes::empty(); |
24 | 24 | } |
25 | 25 |
@@ -22,7 +22,7 @@ |
||
22 | 22 | { |
23 | 23 | return array_reduce( |
24 | 24 | $this->checks, |
25 | - function (Changes $changes, PropertyBased $check) use ($fromProperty, $toProperty) : Changes { |
|
25 | + function(Changes $changes, PropertyBased $check) use ($fromProperty, $toProperty) : Changes { |
|
26 | 26 | return $changes->mergeWith($check->__invoke($fromProperty, $toProperty)); |
27 | 27 | }, |
28 | 28 | Changes::empty() |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | return false; |
31 | 31 | } |
32 | 32 | |
33 | - if ($comparedType->allowsNull() && ! $type->allowsNull()) { |
|
33 | + if ($comparedType->allowsNull() && !$type->allowsNull()) { |
|
34 | 34 | return false; |
35 | 35 | } |
36 | 36 | |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | return false; |
47 | 47 | } |
48 | 48 | |
49 | - if (strtolower($typeAsString) === 'object' && ! $comparedType->isBuiltin()) { |
|
49 | + if (strtolower($typeAsString) === 'object' && !$comparedType->isBuiltin()) { |
|
50 | 50 | // `object` is not covariant to a defined class type |
51 | 51 | return true; |
52 | 52 | } |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | return true; |
57 | 57 | } |
58 | 58 | |
59 | - if (strtolower($typeAsString) === 'iterable' && ! $comparedType->isBuiltin()) { |
|
59 | + if (strtolower($typeAsString) === 'iterable' && !$comparedType->isBuiltin()) { |
|
60 | 60 | if ($comparedType->targetReflectionClass()->implementsInterface(\Traversable::class)) { |
61 | 61 | // `iterable` can be restricted via any `Iterator` implementation |
62 | 62 | return true; |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | return false; |
30 | 30 | } |
31 | 31 | |
32 | - if ($type->allowsNull() && ! $comparedType->allowsNull()) { |
|
32 | + if ($type->allowsNull() && !$comparedType->allowsNull()) { |
|
33 | 33 | return false; |
34 | 34 | } |
35 | 35 | |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | return true; |
46 | 46 | } |
47 | 47 | |
48 | - if (strtolower($comparedTypeAsString) === 'object' && ! $type->isBuiltin()) { |
|
48 | + if (strtolower($comparedTypeAsString) === 'object' && !$type->isBuiltin()) { |
|
49 | 49 | // `object` is always contravariant to any object type |
50 | 50 | return true; |
51 | 51 | } |
@@ -48,7 +48,7 @@ |
||
48 | 48 | ) : Changes { |
49 | 49 | $changelog = Changes::empty(); |
50 | 50 | |
51 | - $definedApiClassNames = array_map(function (ReflectionClass $class) : string { |
|
51 | + $definedApiClassNames = array_map(function(ReflectionClass $class) : string { |
|
52 | 52 | return $class->getName(); |
53 | 53 | }, $definedSymbols->getAllClasses()); |
54 | 54 |
@@ -124,23 +124,23 @@ |
||
124 | 124 | $toPath = $this->git->checkout($sourceRepo, $toRevision); |
125 | 125 | |
126 | 126 | try { |
127 | - $fromSources = $fromPath . '/' . $sourcesPath; |
|
128 | - $toSources = $toPath . '/' . $sourcesPath; |
|
127 | + $fromSources = $fromPath.'/'.$sourcesPath; |
|
128 | + $toSources = $toPath.'/'.$sourcesPath; |
|
129 | 129 | |
130 | 130 | Assert::that($fromSources)->directory(); |
131 | 131 | Assert::that($toSources)->directory(); |
132 | 132 | |
133 | 133 | $changes = $this->comparator->compare( |
134 | 134 | $this->reflectorFactory->__invoke( |
135 | - $fromPath . '/' . $sourcesPath, |
|
135 | + $fromPath.'/'.$sourcesPath, |
|
136 | 136 | new AggregateSourceLocator() // no dependencies |
137 | 137 | ), |
138 | 138 | $this->reflectorFactory->__invoke( |
139 | - $fromPath . '/' . $sourcesPath, |
|
139 | + $fromPath.'/'.$sourcesPath, |
|
140 | 140 | $this->locateDependencies->__invoke((string) $fromPath) |
141 | 141 | ), |
142 | 142 | $this->reflectorFactory->__invoke( |
143 | - $toPath . '/' . $sourcesPath, |
|
143 | + $toPath.'/'.$sourcesPath, |
|
144 | 144 | $this->locateDependencies->__invoke((string) $toPath) |
145 | 145 | ) |
146 | 146 | ); |
@@ -44,7 +44,7 @@ |
||
44 | 44 | |
45 | 45 | public function mergeWith(self $other) : self |
46 | 46 | { |
47 | - if (! $other->changes) { |
|
47 | + if (!$other->changes) { |
|
48 | 48 | return $this; |
49 | 49 | } |
50 | 50 |