@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | |
34 | 34 | self::assertSame( |
35 | 35 | $expectedMessages, |
36 | - array_map(function (Change $change) : string { |
|
36 | + array_map(function(Change $change) : string { |
|
37 | 37 | return $change->__toString(); |
38 | 38 | }, iterator_to_array($changes)) |
39 | 39 | ); |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | , |
64 | 64 | $locator |
65 | 65 | )); |
66 | - $toReflector = new ClassReflector(new StringSourceLocator( |
|
66 | + $toReflector = new ClassReflector(new StringSourceLocator( |
|
67 | 67 | <<<'PHP' |
68 | 68 | <?php |
69 | 69 | |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | return array_combine( |
103 | 103 | array_keys($classes), |
104 | 104 | array_map( |
105 | - function (string $className, array $errors) use ($fromReflector, $toReflector) : array { |
|
105 | + function(string $className, array $errors) use ($fromReflector, $toReflector) : array { |
|
106 | 106 | return [ |
107 | 107 | $fromReflector->reflect($className), |
108 | 108 | $toReflector->reflect($className), |
@@ -62,7 +62,7 @@ |
||
62 | 62 | $instance = new self(); |
63 | 63 | |
64 | 64 | $instance->bufferedChanges = []; |
65 | - $instance->unBufferedChanges = (function () use ($other) : Generator { |
|
65 | + $instance->unBufferedChanges = (function() use ($other) : Generator { |
|
66 | 66 | foreach ($this as $change) { |
67 | 67 | yield $change; |
68 | 68 | } |
@@ -23,7 +23,7 @@ |
||
23 | 23 | array_diff($fromClass->getInterfaceNames(), $toClass->getInterfaceNames()) |
24 | 24 | ); |
25 | 25 | |
26 | - if (! $removedAncestors) { |
|
26 | + if (!$removedAncestors) { |
|
27 | 27 | return Changes::empty(); |
28 | 28 | } |
29 | 29 |
@@ -49,7 +49,7 @@ |
||
49 | 49 | $methods = $class->getMethods(); |
50 | 50 | |
51 | 51 | return array_combine( |
52 | - array_map(function (ReflectionMethod $method) : string { |
|
52 | + array_map(function(ReflectionMethod $method) : string { |
|
53 | 53 | return strtolower($method->getName()); |
54 | 54 | }, $methods), |
55 | 55 | $methods |
@@ -45,13 +45,13 @@ |
||
45 | 45 | ClassReflector $newSourcesWithDependencies |
46 | 46 | ) : Changes { |
47 | 47 | $definedApiClassNames = array_map( |
48 | - function (ReflectionClass $class) : string { |
|
48 | + function(ReflectionClass $class) : string { |
|
49 | 49 | return $class->getName(); |
50 | 50 | }, |
51 | 51 | array_filter( |
52 | 52 | $definedSymbols->getAllClasses(), |
53 | - function (ReflectionClass $class) : bool { |
|
54 | - return ! $class->isAnonymous(); |
|
53 | + function(ReflectionClass $class) : bool { |
|
54 | + return !$class->isAnonymous(); |
|
55 | 55 | } |
56 | 56 | ) |
57 | 57 | ); |
@@ -48,7 +48,7 @@ |
||
48 | 48 | public function testFromIteratorBuffersAllChangesWithoutLoadingThemEagerly() : void |
49 | 49 | { |
50 | 50 | $producedValues = 0; |
51 | - $changesProvider = function () use (& $producedValues) { |
|
51 | + $changesProvider = function() use (& $producedValues) { |
|
52 | 52 | $producedValues += 1; |
53 | 53 | |
54 | 54 | yield Change::changed('a', true); |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | $stableVersions = $versions->matching(new class implements ConstraintInterface { |
31 | 31 | public function assert(Version $version) : bool |
32 | 32 | { |
33 | - return ! $version->isPreRelease(); |
|
33 | + return !$version->isPreRelease(); |
|
34 | 34 | } |
35 | 35 | }); |
36 | 36 | |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | new ComparisonConstraint(ComparisonConstraint::OPERATOR_LTE, $lastVersion), |
46 | 46 | new ComparisonConstraint( |
47 | 47 | ComparisonConstraint::OPERATOR_GTE, |
48 | - Version::fromString($lastVersion->getMajor() . '.' . $lastVersion->getMinor() . '.0') |
|
48 | + Version::fromString($lastVersion->getMajor().'.'.$lastVersion->getMinor().'.0') |
|
49 | 49 | ) |
50 | 50 | )) |
51 | 51 | ->sortedAscending(); |
@@ -43,9 +43,9 @@ discard block |
||
43 | 43 | public function __invoke(string $installationPath) : SourceLocator |
44 | 44 | { |
45 | 45 | Assert::that($installationPath)->directory(); |
46 | - Assert::that($installationPath . '/composer.json')->file(); |
|
46 | + Assert::that($installationPath.'/composer.json')->file(); |
|
47 | 47 | |
48 | - $this->runInDirectory(function () use ($installationPath) : void { |
|
48 | + $this->runInDirectory(function() use ($installationPath) : void { |
|
49 | 49 | $installer = ($this->makeComposerInstaller)($installationPath); |
50 | 50 | |
51 | 51 | Assert::that($installer)->isInstanceOf(Installer::class); |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | (new LocatorForInstalledJson())->__invoke($installationPath, $this->astLocator), |
68 | 68 | new PhpInternalSourceLocator($this->astLocator), |
69 | 69 | ]); |
70 | - $autoloadStatic = $installationPath . '/vendor/composer/autoload_static.php'; |
|
70 | + $autoloadStatic = $installationPath.'/vendor/composer/autoload_static.php'; |
|
71 | 71 | |
72 | 72 | Assert::that($autoloadStatic)->file(); |
73 | 73 | |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | { |
110 | 110 | $filesMapProperty = $autoloadStatic->getProperty('files'); |
111 | 111 | |
112 | - if (! $filesMapProperty) { |
|
112 | + if (!$filesMapProperty) { |
|
113 | 113 | return new AggregateSourceLocator(); |
114 | 114 | } |
115 | 115 | |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | ->file(); |
125 | 125 | |
126 | 126 | return new AggregateSourceLocator(array_values(array_map( |
127 | - function (string $path) : SourceLocator { |
|
127 | + function(string $path) : SourceLocator { |
|
128 | 128 | $realPath = realpath($path); |
129 | 129 | |
130 | 130 | Assert::that($realPath)->string(); |