@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | array_keys($this->accessibleProperties($toClass)) |
28 | 28 | ); |
29 | 29 | |
30 | - return Changes::fromArray(array_values(array_map(function (string $property) use ($fromClass) : Change { |
|
30 | + return Changes::fromArray(array_values(array_map(function(string $property) use ($fromClass) : Change { |
|
31 | 31 | return Change::removed( |
32 | 32 | sprintf('Property %s#%s was removed', $fromClass->getName(), $property), |
33 | 33 | true |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | /** @return ReflectionProperty[] */ |
39 | 39 | private function accessibleProperties(ReflectionClass $class) : array |
40 | 40 | { |
41 | - return array_filter($class->getProperties(), function (ReflectionProperty $property) : bool { |
|
41 | + return array_filter($class->getProperties(), function(ReflectionProperty $property) : bool { |
|
42 | 42 | return $property->isPublic() || $property->isProtected(); |
43 | 43 | }); |
44 | 44 | } |
@@ -26,21 +26,21 @@ discard block |
||
26 | 26 | $this->output->writeln( |
27 | 27 | "# Added\n" |
28 | 28 | . implode('', $this->convertFilteredChangesToMarkdownBulletList( |
29 | - function (Change $change) : bool { |
|
29 | + function(Change $change) : bool { |
|
30 | 30 | return $change->isAdded(); |
31 | 31 | }, |
32 | 32 | ...$arrayOfChanges |
33 | 33 | )) |
34 | 34 | . "\n# Changed\n" |
35 | 35 | . implode('', $this->convertFilteredChangesToMarkdownBulletList( |
36 | - function (Change $change) : bool { |
|
36 | + function(Change $change) : bool { |
|
37 | 37 | return $change->isChanged(); |
38 | 38 | }, |
39 | 39 | ...$arrayOfChanges |
40 | 40 | )) |
41 | 41 | . "\n# Removed\n" |
42 | 42 | . implode('', $this->convertFilteredChangesToMarkdownBulletList( |
43 | - function (Change $change) : bool { |
|
43 | + function(Change $change) : bool { |
|
44 | 44 | return $change->isRemoved(); |
45 | 45 | }, |
46 | 46 | ...$arrayOfChanges |
@@ -51,8 +51,8 @@ discard block |
||
51 | 51 | private function convertFilteredChangesToMarkdownBulletList(callable $filterFunction, Change ...$changes) : array |
52 | 52 | { |
53 | 53 | return array_map( |
54 | - function (Change $change) : string { |
|
55 | - return ' - ' . str_replace(['ADDED: ', 'CHANGED: ', 'REMOVED: '], '', trim((string)$change)) . "\n"; |
|
54 | + function(Change $change) : string { |
|
55 | + return ' - '.str_replace(['ADDED: ', 'CHANGED: ', 'REMOVED: '], '', trim((string) $change))."\n"; |
|
56 | 56 | }, |
57 | 57 | array_filter($changes, $filterFunction) |
58 | 58 | ); |
@@ -34,7 +34,7 @@ |
||
34 | 34 | */ |
35 | 35 | protected function createLocatedSource(Identifier $identifier) : ?LocatedSource |
36 | 36 | { |
37 | - if (! $identifier->isClass()) { |
|
37 | + if (!$identifier->isClass()) { |
|
38 | 38 | return null; |
39 | 39 | } |
40 | 40 |
@@ -20,9 +20,9 @@ |
||
20 | 20 | use Symfony\Component\Console\Application; |
21 | 21 | use function file_exists; |
22 | 22 | |
23 | -(function () : void { |
|
24 | - foreach ([__DIR__ . '/../vendor/autoload.php', __DIR__ . '/../autoload.php'] as $autoload) { |
|
25 | - if (! file_exists($autoload)) { |
|
23 | +(function() : void { |
|
24 | + foreach ([__DIR__.'/../vendor/autoload.php', __DIR__.'/../autoload.php'] as $autoload) { |
|
25 | + if (!file_exists($autoload)) { |
|
26 | 26 | continue; |
27 | 27 | } |
28 | 28 |