Passed
Pull Request — master (#76)
by Marco
03:06
created
test/unit/Git/GetVersionCollectionFromGitRepositoryTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,10 +26,10 @@  discard block
 block discarded – undo
26 26
 
27 27
     public function setUp() : void
28 28
     {
29
-        $tmpGitRepo = sys_get_temp_dir() . '/api-compare-' . uniqid('tmpGitRepo', true);
29
+        $tmpGitRepo = sys_get_temp_dir().'/api-compare-'.uniqid('tmpGitRepo', true);
30 30
         mkdir($tmpGitRepo, 0777, true);
31 31
         (new Process(['git', 'init']))->setWorkingDirectory($tmpGitRepo)->mustRun();
32
-        file_put_contents($tmpGitRepo . '/test', uniqid('testContent', true));
32
+        file_put_contents($tmpGitRepo.'/test', uniqid('testContent', true));
33 33
         (new Process(['git', 'add', '.']))->setWorkingDirectory($tmpGitRepo)->mustRun();
34 34
         (new Process(['git', 'commit', '-m', '"whatever"']))->setWorkingDirectory($tmpGitRepo)->mustRun();
35 35
         $this->repoPath = CheckedOutRepository::fromPath($tmpGitRepo);
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     private function getTags() : array
50 50
     {
51 51
         return array_map(
52
-            function (Version $version) {
52
+            function(Version $version) {
53 53
                 return $version->getVersionString();
54 54
             },
55 55
             iterator_to_array((new GetVersionCollectionFromGitRepository())->fromRepository($this->repoPath))
Please login to merge, or discard this patch.
src/Git/GitCheckoutRevisionToTemporaryPath.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 
21 21
     public function __construct(?callable $uniquenessFunction = null)
22 22
     {
23
-        $this->uniquenessFunction = $uniquenessFunction ?? function (string $nonUniqueThing) : string {
23
+        $this->uniquenessFunction = $uniquenessFunction ?? function(string $nonUniqueThing) : string {
24 24
                 return uniqid($nonUniqueThing, true);
25 25
         };
26 26
     }
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     private function generateTemporaryPathFor(Revision $revision) : string
55 55
     {
56 56
         $uniquePathGenerator = $this->uniquenessFunction;
57
-        $checkoutDirectory   = sys_get_temp_dir() . '/api-compare-' . $uniquePathGenerator((string) $revision . '_');
57
+        $checkoutDirectory   = sys_get_temp_dir().'/api-compare-'.$uniquePathGenerator((string) $revision.'_');
58 58
 
59 59
         if (file_exists($checkoutDirectory) || is_dir($checkoutDirectory)) {
60 60
             throw new RuntimeException(sprintf(
Please login to merge, or discard this patch.
src/DetectChanges/BCBreak/FunctionBased/MultipleChecksOnAFunction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     {
23 23
         return array_reduce(
24 24
             $this->checks,
25
-            function (Changes $changes, FunctionBased $check) use ($fromFunction, $toFunction) : Changes {
25
+            function(Changes $changes, FunctionBased $check) use ($fromFunction, $toFunction) : Changes {
26 26
                 return $changes->mergeWith($check->__invoke($fromFunction, $toFunction));
27 27
             },
28 28
             Changes::empty()
Please login to merge, or discard this patch.
test/unit/Git/PickLastMinorVersionFromCollectionTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
         self::assertSame(
38 38
             $expectedVersion,
39 39
             (new PickLastMinorVersionFromCollection())->forVersions(
40
-                new VersionsCollection(...array_map(function (string $version) : Version {
40
+                new VersionsCollection(...array_map(function(string $version) : Version {
41 41
                     return Version::fromString($version);
42 42
                 }, $collectionOfVersions))
43 43
             )->getVersionString()
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
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
             ->getOutput();
32 32
 
33 33
         return new VersionsCollection(...array_filter(
34
-            array_map(function (string $maybeVersion) : ?Version {
34
+            array_map(function(string $maybeVersion) : ?Version {
35 35
                 try {
36 36
                     return Version::fromString($maybeVersion);
37 37
                 } catch (InvalidVersionStringException $e) {
Please login to merge, or discard this patch.
src/CompareClasses.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,13 +46,13 @@
 block discarded – undo
46 46
         $changelog = Changes::empty();
47 47
 
48 48
         $definedApiClassNames = array_map(
49
-            function (ReflectionClass $class) : string {
49
+            function(ReflectionClass $class) : string {
50 50
                 return $class->getName();
51 51
             },
52 52
             array_filter(
53 53
                 $definedSymbols->getAllClasses(),
54
-                function (ReflectionClass $class) : bool {
55
-                    return ! $class->isAnonymous();
54
+                function(ReflectionClass $class) : bool {
55
+                    return !$class->isAnonymous();
56 56
                 }
57 57
             )
58 58
         );
Please login to merge, or discard this patch.
bin/roave-backward-compatibility-check.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -32,13 +32,13 @@  discard block
 block discarded – undo
32 32
 use function file_exists;
33 33
 use function getcwd;
34 34
 
35
-(function () : void {
36
-    (function () : void {
35
+(function() : void {
36
+    (function() : void {
37 37
         $autoloaderLocations = [
38
-            __DIR__ . '/../vendor/autoload.php',
39
-            __DIR__ . '/../autoload.php',
40
-            __DIR__ . '/../../autoload.php',
41
-            getcwd() . '/vendor/autoload.php',
38
+            __DIR__.'/../vendor/autoload.php',
39
+            __DIR__.'/../autoload.php',
40
+            __DIR__.'/../../autoload.php',
41
+            getcwd().'/vendor/autoload.php',
42 42
         ];
43 43
 
44 44
         foreach ($autoloaderLocations as $autoload) {
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
         new GetVersionCollectionFromGitRepository(),
68 68
         new PickLastMinorVersionFromCollection(),
69 69
         new LocateDependenciesViaComposer(
70
-            function (string $installationPath) use ($composerIo) : Installer {
70
+            function(string $installationPath) use ($composerIo) : Installer {
71 71
                 return Installer::create(
72 72
                     $composerIo,
73 73
                     (new Factory())->createComposer(
Please login to merge, or discard this patch.
src/SourceLocator/StubClassSourceLocator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
test/unit/Command/AssertBackwardsCompatibleTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 
76 76
     public function setUp() : void
77 77
     {
78
-        $this->sourceRepository = CheckedOutRepository::fromPath(realpath(__DIR__ . '/../../../'));
78
+        $this->sourceRepository = CheckedOutRepository::fromPath(realpath(__DIR__.'/../../../'));
79 79
         chdir((string) $this->sourceRepository);
80 80
 
81 81
         $this->input              = $this->createMock(InputInterface::class);
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
 
270 270
         $this->output->expects(self::any())
271 271
             ->method('writeln')
272
-            ->willReturnCallback(function (string $output) use ($changeToExpect) : void {
272
+            ->willReturnCallback(function(string $output) use ($changeToExpect) : void {
273 273
                 self::assertContains($changeToExpect, $output);
274 274
             });
275 275
     }
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
         $this
292 292
             ->parseRevision
293 293
             ->expects(self::never())
294
-            ->method('fromStringForRepository');;
294
+            ->method('fromStringForRepository'); ;
295 295
 
296 296
         $this
297 297
             ->getVersions
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
 
354 354
         $this->getVersions->expects(self::once())
355 355
             ->method('fromRepository')
356
-            ->with(self::callback(function (CheckedOutRepository $checkedOutRepository) : bool {
356
+            ->with(self::callback(function(CheckedOutRepository $checkedOutRepository) : bool {
357 357
                 self::assertEquals($this->sourceRepository, $checkedOutRepository);
358 358
                 return true;
359 359
             }))
Please login to merge, or discard this patch.