Passed
Pull Request — master (#38)
by Marco
02:19
created
test/unit/Git/CheckedOutRepositoryTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace RoaveTest\ApiCompare\Git;
6 6
 
@@ -18,14 +18,14 @@  discard block
 block discarded – undo
18 18
 {
19 19
     public function testFromPath() : void
20 20
     {
21
-        $path = sys_get_temp_dir() . '/' . uniqid('testPath', true);
21
+        $path = sys_get_temp_dir().'/'.uniqid('testPath', true);
22 22
         mkdir($path, 0777, true);
23
-        mkdir($path . '/.git');
23
+        mkdir($path.'/.git');
24 24
 
25 25
         $checkedOutRepository = CheckedOutRepository::fromPath($path);
26 26
         self::assertSame($path, (string) $checkedOutRepository);
27 27
 
28
-        rmdir($path . '/.git');
28
+        rmdir($path.'/.git');
29 29
         rmdir($path);
30 30
     }
31 31
 }
Please login to merge, or discard this patch.
test/unit/Git/RevisionTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace RoaveTest\ApiCompare\Git;
5 5
 
Please login to merge, or discard this patch.
test/unit/Git/GetVersionCollectionFromGitRepositoryTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace RoaveTest\ApiCompare\Git;
6 6
 
@@ -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);
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
         self::assertSame(
53 53
             ['1.0.0'],
54 54
             array_map(
55
-                function (Version $version) {
55
+                function(Version $version) {
56 56
                     return $version->getVersionString();
57 57
                 },
58 58
                 iterator_to_array((new GetVersionCollectionFromGitRepository())->fromRepository($this->repoPath))
Please login to merge, or discard this patch.
src/Comparator/Variance/TypeIsContravariant.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Roave\ApiCompare\Comparator\Variance;
6 6
 
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
             return false;
33 33
         }
34 34
 
35
-        if ($type->allowsNull() && ! $comparedType->allowsNull()) {
35
+        if ($type->allowsNull() && !$comparedType->allowsNull()) {
36 36
             return false;
37 37
         }
38 38
 
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
             return true;
49 49
         }
50 50
 
51
-        if (strtolower($comparedTypeAsString) === 'object' && ! $type->isBuiltin()) {
51
+        if (strtolower($comparedTypeAsString) === 'object' && !$type->isBuiltin()) {
52 52
             // `object` is always contravariant to any object type
53 53
             return true;
54 54
         }
Please login to merge, or discard this patch.
BackwardsCompatibility/FunctionBased/ParameterDefaultValueChangedTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace RoaveTest\ApiCompare\Comparator\BackwardsCompatibility\FunctionBased;
6 6
 
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 
36 36
         self::assertSame(
37 37
             $expectedMessages,
38
-            array_map(function (Change $change) : string {
38
+            array_map(function(Change $change) : string {
39 39
                 return $change->__toString();
40 40
             }, iterator_to_array($changes))
41 41
         );
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
             array_combine(
117 117
                 array_keys($functions),
118 118
                 array_map(
119
-                    function (string $function, array $errorMessages) use ($fromReflector, $toReflector) : array {
119
+                    function(string $function, array $errorMessages) use ($fromReflector, $toReflector) : array {
120 120
                         return [
121 121
                             $fromReflector->reflect($function),
122 122
                             $toReflector->reflect($function),
Please login to merge, or discard this patch.
unit/Comparator/BackwardsCompatibility/InterfaceBased/MethodAddedTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace RoaveTest\ApiCompare\Comparator\BackwardsCompatibility\InterfaceBased;
6 6
 
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 
32 32
         self::assertSame(
33 33
             $expectedMessages,
34
-            array_map(function (Change $change) : string {
34
+            array_map(function(Change $change) : string {
35 35
                 return $change->__toString();
36 36
             }, iterator_to_array($changes))
37 37
         );
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
         return array_combine(
105 105
             array_keys($properties),
106 106
             array_map(
107
-                function (string $className, array $errorMessages) use ($fromClassReflector, $toClassReflector
107
+                function(string $className, array $errorMessages) use ($fromClassReflector, $toClassReflector
108 108
                 ) : array {
109 109
                     return [
110 110
                         $fromClassReflector->reflect($className),
Please login to merge, or discard this patch.
BackwardsCompatibility/PropertyBased/PropertyDefaultValueChangedTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace RoaveTest\ApiCompare\Comparator\BackwardsCompatibility\PropertyBased;
6 6
 
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
         self::assertSame(
36 36
             $expectedMessages,
37
-            array_map(function (Change $change) : string {
37
+            array_map(function(Change $change) : string {
38 38
                 return $change->__toString();
39 39
             }, iterator_to_array($changes))
40 40
         );
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
         return array_combine(
145 145
             array_keys($properties),
146 146
             array_map(
147
-                function (string $property, array $errorMessages) use ($fromClass, $toClass) : array {
147
+                function(string $property, array $errorMessages) use ($fromClass, $toClass) : array {
148 148
                     return [
149 149
                         $fromClass->getProperty($property),
150 150
                         $toClass->getProperty($property),
Please login to merge, or discard this patch.
Comparator/BackwardsCompatibility/MethodBased/MethodScopeChangedTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace RoaveTest\ApiCompare\Comparator\BackwardsCompatibility\MethodBased;
6 6
 
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
         self::assertSame(
36 36
             $expectedMessages,
37
-            array_map(function (Change $change) : string {
37
+            array_map(function(Change $change) : string {
38 38
                 return $change->__toString();
39 39
             }, iterator_to_array($changes))
40 40
         );
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
         return array_combine(
129 129
             array_keys($properties),
130 130
             array_map(
131
-                function (string $methodName, array $errorMessages) use ($fromClass, $toClass) : array {
131
+                function(string $methodName, array $errorMessages) use ($fromClass, $toClass) : array {
132 132
                     return [
133 133
                         $fromClass->getMethod($methodName),
134 134
                         $toClass->getMethod($methodName),
Please login to merge, or discard this patch.
BackwardsCompatibility/MethodBased/MethodVisibilityReducedTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace RoaveTest\ApiCompare\Comparator\BackwardsCompatibility\MethodBased;
6 6
 
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
         self::assertSame(
36 36
             $expectedMessages,
37
-            array_map(function (Change $change) : string {
37
+            array_map(function(Change $change) : string {
38 38
                 return $change->__toString();
39 39
             }, iterator_to_array($changes))
40 40
         );
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
         return array_combine(
113 113
             array_keys($properties),
114 114
             array_map(
115
-                function (string $method, array $errorMessages) use ($fromClass, $toClass) : array {
115
+                function(string $method, array $errorMessages) use ($fromClass, $toClass) : array {
116 116
                     return [
117 117
                         $fromClass->getMethod($method),
118 118
                         $toClass->getMethod($method),
Please login to merge, or discard this patch.