@@ -17,7 +17,7 @@ |
||
17 | 17 | { |
18 | 18 | public function __invoke(ReflectionClass $fromClass, ReflectionClass $toClass) : Changes |
19 | 19 | { |
20 | - if (! $this->isInternalDocComment($fromClass->getDocComment()) |
|
20 | + if (!$this->isInternalDocComment($fromClass->getDocComment()) |
|
21 | 21 | && $this->isInternalDocComment($toClass->getDocComment()) |
22 | 22 | ) { |
23 | 23 | return Changes::fromList(Change::changed( |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | { |
18 | 18 | public function __invoke(ReflectionClass $fromInterface, ReflectionClass $toInterface) : Changes |
19 | 19 | { |
20 | - if (! $this->isClass($toInterface) || ! $fromInterface->isInterface()) { |
|
20 | + if (!$this->isClass($toInterface) || !$fromInterface->isInterface()) { |
|
21 | 21 | // checking whether a class became an interface is done in `ClassBecameInterface` |
22 | 22 | return Changes::empty(); |
23 | 23 | } |
@@ -33,6 +33,6 @@ discard block |
||
33 | 33 | */ |
34 | 34 | private function isClass(ReflectionClass $class) : bool |
35 | 35 | { |
36 | - return ! ($class->isTrait() || $class->isInterface()); |
|
36 | + return !($class->isTrait() || $class->isInterface()); |
|
37 | 37 | } |
38 | 38 | } |
@@ -17,7 +17,7 @@ |
||
17 | 17 | { |
18 | 18 | public function __invoke(ReflectionClass $fromInterface, ReflectionClass $toInterface) : Changes |
19 | 19 | { |
20 | - if (! $toInterface->isTrait() || ! $fromInterface->isInterface()) { |
|
20 | + if (!$toInterface->isTrait() || !$fromInterface->isInterface()) { |
|
21 | 21 | // checking whether an interface became an class is done in `InterfaceBecameClass` |
22 | 22 | return Changes::empty(); |
23 | 23 | } |
@@ -23,7 +23,7 @@ |
||
23 | 23 | array_diff($fromInterface->getInterfaceNames(), $toInterface->getInterfaceNames()) |
24 | 24 | ); |
25 | 25 | |
26 | - if (! $removedAncestors) { |
|
26 | + if (!$removedAncestors) { |
|
27 | 27 | return Changes::empty(); |
28 | 28 | } |
29 | 29 |
@@ -27,7 +27,7 @@ |
||
27 | 27 | public function __invoke(ReflectionFunctionAbstract $fromFunction, ReflectionFunctionAbstract $toFunction) : Changes |
28 | 28 | { |
29 | 29 | if ($this->isInternalDocComment($toFunction->getDocComment()) |
30 | - && ! $this->isInternalDocComment($fromFunction->getDocComment()) |
|
30 | + && !$this->isInternalDocComment($fromFunction->getDocComment()) |
|
31 | 31 | ) { |
32 | 32 | return Changes::fromList(Change::changed( |
33 | 33 | sprintf( |
@@ -27,7 +27,7 @@ |
||
27 | 27 | public function __invoke(ReflectionProperty $fromProperty, ReflectionProperty $toProperty) : Changes |
28 | 28 | { |
29 | 29 | if ($this->isInternalDocComment($toProperty->getDocComment()) |
30 | - && ! $this->isInternalDocComment($fromProperty->getDocComment()) |
|
30 | + && !$this->isInternalDocComment($fromProperty->getDocComment()) |
|
31 | 31 | ) { |
32 | 32 | return Changes::fromList(Change::changed( |
33 | 33 | sprintf( |
@@ -32,7 +32,7 @@ |
||
32 | 32 | ->getOutput(); |
33 | 33 | |
34 | 34 | return new VersionCollection(...array_filter( |
35 | - array_map(static function (string $maybeVersion) : ?Version { |
|
35 | + array_map(static function(string $maybeVersion) : ?Version { |
|
36 | 36 | try { |
37 | 37 | return Version::fromString($maybeVersion); |
38 | 38 | } catch (InvalidVersionString $e) { |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | $stableVersions = $versions->matching(new class implements Constraint { |
30 | 30 | public function assert(Version $version) : bool |
31 | 31 | { |
32 | - return ! $version->isPreRelease(); |
|
32 | + return !$version->isPreRelease(); |
|
33 | 33 | } |
34 | 34 | }); |
35 | 35 | |
@@ -38,9 +38,9 @@ discard block |
||
38 | 38 | $lastVersion = $versionsSortedDescending->first(); |
39 | 39 | |
40 | 40 | $matchingMinorVersions = $stableVersions |
41 | - ->matching(CompositeConstraint::and( |
|
41 | + ->matching(CompositeConstraint:: and ( |
|
42 | 42 | OperationConstraint::lessOrEqualTo($lastVersion), |
43 | - OperationConstraint::greaterOrEqualTo(Version::fromString($lastVersion->getMajor() . '.' . $lastVersion->getMinor() . '.0')) |
|
43 | + OperationConstraint::greaterOrEqualTo(Version::fromString($lastVersion->getMajor().'.'.$lastVersion->getMinor().'.0')) |
|
44 | 44 | )) |
45 | 45 | ->sortedAscending(); |
46 | 46 |
@@ -48,7 +48,7 @@ |
||
48 | 48 | self::assertSame( |
49 | 49 | $expectedVersion, |
50 | 50 | (new PickLastMinorVersionFromCollection())->forVersions( |
51 | - new VersionCollection(...array_map(static function (string $version) : Version { |
|
51 | + new VersionCollection(...array_map(static function(string $version) : Version { |
|
52 | 52 | return Version::fromString($version); |
53 | 53 | }, $collectionOfVersions)) |
54 | 54 | )->toString() |