Completed
Push — master ( 85853a...5df06c )
by James
20s queued 12s
created
test/unit/DetectChanges/BCBreak/MethodBased/MethodVisibilityReducedTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
108 108
         return array_combine(
109 109
             array_keys($properties),
110 110
             array_map(
111
-                static function (string $method, array $errorMessages) use ($fromClass, $toClass) : array {
111
+                static function(string $method, array $errorMessages) use ($fromClass, $toClass) : array {
112 112
                     return [
113 113
                         $fromClass->getMethod($method),
114 114
                         $toClass->getMethod($method),
Please login to merge, or discard this patch.
DetectChanges/BCBreak/ClassConstantBased/ClassConstantValueChangedTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 
38 38
         self::assertSame(
39 39
             $expectedMessages,
40
-            array_map(static function (Change $change) : string {
40
+            array_map(static function(Change $change) : string {
41 41
                 return $change->__toString();
42 42
             }, iterator_to_array($changes))
43 43
         );
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
         return array_combine(
122 122
             array_keys($properties),
123 123
             array_map(
124
-                static function (string $constant, array $errorMessages) use ($fromClass, $toClass) : array {
124
+                static function(string $constant, array $errorMessages) use ($fromClass, $toClass) : array {
125 125
                     return [
126 126
                         $fromClass->getReflectionConstant($constant),
127 127
                         $toClass->getReflectionConstant($constant),
Please login to merge, or discard this patch.
src/Git/GetVersionCollectionFromGitRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
             ->getOutput();
33 33
 
34 34
         return new VersionsCollection(...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 (InvalidVersionStringException $e) {
Please login to merge, or discard this patch.
src/Formatter/MarkdownPipedToSymfonyConsoleFormatter.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -31,21 +31,21 @@  discard block
 block discarded – undo
31 31
         $this->output->writeln(
32 32
             "# Added\n"
33 33
             . implode('', $this->convertFilteredChangesToMarkdownBulletList(
34
-                static function (Change $change) : bool {
34
+                static function(Change $change) : bool {
35 35
                     return $change->isAdded();
36 36
                 },
37 37
                 ...$arrayOfChanges
38 38
             ))
39 39
             . "\n# Changed\n"
40 40
             . implode('', $this->convertFilteredChangesToMarkdownBulletList(
41
-                static function (Change $change) : bool {
41
+                static function(Change $change) : bool {
42 42
                     return $change->isChanged();
43 43
                 },
44 44
                 ...$arrayOfChanges
45 45
             ))
46 46
             . "\n# Removed\n"
47 47
             . implode('', $this->convertFilteredChangesToMarkdownBulletList(
48
-                static function (Change $change) : bool {
48
+                static function(Change $change) : bool {
49 49
                     return $change->isRemoved();
50 50
                 },
51 51
                 ...$arrayOfChanges
@@ -57,8 +57,8 @@  discard block
 block discarded – undo
57 57
     private function convertFilteredChangesToMarkdownBulletList(callable $filterFunction, Change ...$changes) : array
58 58
     {
59 59
         return array_map(
60
-            static function (Change $change) : string {
61
-                return ' - ' . str_replace(['ADDED: ', 'CHANGED: ', 'REMOVED: '], '', trim($change->__toString())) . "\n";
60
+            static function(Change $change) : string {
61
+                return ' - '.str_replace(['ADDED: ', 'CHANGED: ', 'REMOVED: '], '', trim($change->__toString()))."\n";
62 62
             },
63 63
             array_filter($changes, $filterFunction)
64 64
         );
Please login to merge, or discard this patch.
src/DetectChanges/BCBreak/ClassBased/MethodChanged.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
         $methods = $class->getMethods();
50 50
 
51 51
         return array_combine(
52
-            array_map(static function (ReflectionMethod $method) : string {
52
+            array_map(static function(ReflectionMethod $method) : string {
53 53
                 return strtolower($method->getName());
54 54
             }, $methods),
55 55
             $methods
Please login to merge, or discard this patch.
src/DetectChanges/BCBreak/ClassBased/ConstantRemoved.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
             $this->accessibleConstants($toClass)
24 24
         );
25 25
 
26
-        return Changes::fromList(...array_values(array_map(static function (ReflectionClassConstant $constant) use ($fromClass) : Change {
26
+        return Changes::fromList(...array_values(array_map(static function(ReflectionClassConstant $constant) use ($fromClass) : Change {
27 27
             return Change::removed(
28 28
                 sprintf('Constant %s::%s was removed', $fromClass->getName(), $constant->getName()),
29 29
                 true
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     /** @return ReflectionClassConstant[] */
35 35
     private function accessibleConstants(ReflectionClass $class) : array
36 36
     {
37
-        return array_filter($class->getReflectionConstants(), static function (ReflectionClassConstant $constant) : bool {
37
+        return array_filter($class->getReflectionConstants(), static function(ReflectionClassConstant $constant) : bool {
38 38
             return $constant->isPublic() || $constant->isProtected();
39 39
         });
40 40
     }
Please login to merge, or discard this patch.
src/DetectChanges/BCBreak/InterfaceBased/MethodAdded.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,11 +23,11 @@  discard block
 block discarded – undo
23 23
         $toMethods   = $this->methods($toInterface);
24 24
         $newMethods  = array_diff_key($toMethods, $fromMethods);
25 25
 
26
-        if (! $newMethods) {
26
+        if (!$newMethods) {
27 27
             return Changes::empty();
28 28
         }
29 29
 
30
-        return Changes::fromList(...array_values(array_map(static function (ReflectionMethod $method) use (
30
+        return Changes::fromList(...array_values(array_map(static function(ReflectionMethod $method) use (
31 31
             $fromInterface
32 32
         ) : Change {
33 33
             return Change::added(
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         $methods = $interface->getMethods();
48 48
 
49 49
         return array_combine(
50
-            array_map(static function (ReflectionMethod $method) : string {
50
+            array_map(static function(ReflectionMethod $method) : string {
51 51
                 return strtolower($method->getName());
52 52
             }, $methods),
53 53
             $methods
Please login to merge, or discard this patch.
bin/roave-backward-compatibility-check.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -32,11 +32,11 @@  discard block
 block discarded – undo
32 32
 use Symfony\Component\Console\Output\ConsoleOutput;
33 33
 use function file_exists;
34 34
 
35
-(static function () : void {
36
-    (static function () : void {
35
+(static function() : void {
36
+    (static function() : void {
37 37
         $autoloaderLocations = [
38
-            __DIR__ . '/../vendor/autoload.php', // Installed by cloning the project and running `composer install`
39
-            __DIR__ . '/../../../autoload.php',  // Installed via `composer require`
38
+            __DIR__.'/../vendor/autoload.php', // Installed by cloning the project and running `composer install`
39
+            __DIR__.'/../../../autoload.php', // Installed via `composer require`
40 40
         ];
41 41
 
42 42
         foreach ($autoloaderLocations as $autoload) {
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
         new GetVersionCollectionFromGitRepository(),
66 66
         new PickLastMinorVersionFromCollection(),
67 67
         new LocateDependenciesViaComposer(
68
-            static function (string $installationPath) use ($composerIo) : Installer {
68
+            static function(string $installationPath) use ($composerIo) : Installer {
69 69
                 return Installer::create(
70 70
                     $composerIo,
71 71
                     (new Factory())->createComposer(
Please login to merge, or discard this patch.
test/unit/LocateSources/LocateSourcesViaComposerJsonTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     {
30 30
         $reflector = new ClassReflector(
31 31
             $this->locateSources
32
-                ->__invoke(__DIR__ . '/../../asset/located-sources/composer-definition-with-everything')
32
+                ->__invoke(__DIR__.'/../../asset/located-sources/composer-definition-with-everything')
33 33
         );
34 34
 
35 35
         self::assertSame(
Please login to merge, or discard this patch.