Completed
Push — master ( 0e78db...3af8bc )
by Marco
18s queued 11s
created
src/DetectChanges/BCBreak/InterfaceBased/AncestorRemoved.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Changes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/DetectChanges/BCBreak/ClassBased/AncestorRemoved.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Git/PickLastMinorVersionFromCollection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.
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
-            static function (Version $version) {
52
+            static 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.
test/unit/Git/GitCheckoutRevisionToTemporaryPathTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 
49 49
     public function testExceptionIsThrownWhenTwoPathsCollide() : void
50 50
     {
51
-        $git              = new GitCheckoutRevisionToTemporaryPath(static function () : string {
51
+        $git              = new GitCheckoutRevisionToTemporaryPath(static function() : string {
52 52
             return 'foo';
53 53
         });
54 54
         $sourceRepository = $this->sourceRepository();
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 
77 77
     private function sourceRepository() : CheckedOutRepository
78 78
     {
79
-        $repositoryPath = realpath(__DIR__ . '/../../..');
79
+        $repositoryPath = realpath(__DIR__.'/../../..');
80 80
 
81 81
         self::assertInternalType('string', $repositoryPath);
82 82
 
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
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
         self::assertSame(
47 47
             $expectedVersion,
48 48
             (new PickLastMinorVersionFromCollection())->forVersions(
49
-                new VersionsCollection(...array_map(static function (string $version) : Version {
49
+                new VersionsCollection(...array_map(static function(string $version) : Version {
50 50
                     return Version::fromString($version);
51 51
                 }, $collectionOfVersions))
52 52
             )->getVersionString()
Please login to merge, or discard this patch.
test/unit/Formatter/ReflectionPropertyNameTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
         return array_combine(
64 64
             array_keys($properties),
65 65
             array_map(
66
-                static function (string $expectedMessage, ReflectionProperty $property) : array {
66
+                static function(string $expectedMessage, ReflectionProperty $property) : array {
67 67
                     return [$property, $expectedMessage];
68 68
                 },
69 69
                 array_keys($properties),
Please login to merge, or discard this patch.
test/unit/Formatter/MarkdownPipedToSymfonyConsoleFormatterTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
 
37 37
         $output->expects(self::any())
38 38
             ->method('writeln')
39
-            ->willReturnCallback(static function (string $output) use ($changeToExpect) : void {
39
+            ->willReturnCallback(static function(string $output) use ($changeToExpect) : void {
40 40
                 self::assertContains($changeToExpect, $output);
41 41
             });
42 42
 
Please login to merge, or discard this patch.