Completed
Push — master ( 85853a...5df06c )
by James
20s queued 12s
created
test/unit/DetectChanges/Variance/TypeIsCovariantTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
         return array_merge(
244 244
             [[null]],
245 245
             array_merge(...array_map(
246
-                static function (string $type) use ($reflector) : array {
246
+                static function(string $type) use ($reflector) : array {
247 247
                     return [
248 248
                         [ReflectionType::createFromTypeAndReflector($type, false, $reflector)],
249 249
                         [ReflectionType::createFromTypeAndReflector($type, true, $reflector)],
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
      */
270 270
     public function testCovarianceConsidersNullability(string $type) : void
271 271
     {
272
-        $reflector   = new ClassReflector(new StringSourceLocator(
272
+        $reflector = new ClassReflector(new StringSourceLocator(
273 273
             <<<'PHP'
274 274
 <?php
275 275
 
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
-        $repositoryPath = realpath(__DIR__ . '/../../../');
78
+        $repositoryPath = realpath(__DIR__.'/../../../');
79 79
 
80 80
         $this->sourceRepository = CheckedOutRepository::fromPath($repositoryPath);
81 81
 
@@ -290,8 +290,8 @@  discard block
 block discarded – undo
290 290
         $this->output
291 291
             ->expects(self::once())
292 292
             ->method('writeln')
293
-            ->willReturnCallback(static function (string $output) use ($changeToExpect) : void {
294
-                self::assertStringContainsString(' [BC] ' . $changeToExpect, $output);
293
+            ->willReturnCallback(static function(string $output) use ($changeToExpect) : void {
294
+                self::assertStringContainsString(' [BC] '.$changeToExpect, $output);
295 295
             });
296 296
 
297 297
         $this->compare->execute($this->input, $this->output);
@@ -378,7 +378,7 @@  discard block
 block discarded – undo
378 378
 
379 379
         $this->getVersions->expects(self::once())
380 380
             ->method('fromRepository')
381
-            ->with(self::callback(function (CheckedOutRepository $checkedOutRepository) : bool {
381
+            ->with(self::callback(function(CheckedOutRepository $checkedOutRepository) : bool {
382 382
                 self::assertEquals($this->sourceRepository, $checkedOutRepository);
383 383
 
384 384
                 return true;
Please login to merge, or discard this patch.
src/Git/CheckedOutRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 
18 18
     public static function fromPath(string $path) : self
19 19
     {
20
-        Assert::that($path . '/.git')->directory();
20
+        Assert::that($path.'/.git')->directory();
21 21
         $instance       = new self();
22 22
         $instance->path = $path;
23 23
 
Please login to merge, or discard this patch.
src/LocateDependencies/LocateDependenciesViaComposer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,9 +37,9 @@
 block discarded – undo
37 37
 
38 38
     public function __invoke(string $installationPath) : SourceLocator
39 39
     {
40
-        Assert::that($installationPath . '/composer.json')->file();
40
+        Assert::that($installationPath.'/composer.json')->file();
41 41
 
42
-        $this->runInDirectory(function () use ($installationPath) : void {
42
+        $this->runInDirectory(function() use ($installationPath) : void {
43 43
             $installer = ($this->makeComposerInstaller)($installationPath);
44 44
 
45 45
             assert($installer instanceof Installer);
Please login to merge, or discard this patch.
src/DetectChanges/Variance/TypeIsCovariant.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
             return false;
32 32
         }
33 33
 
34
-        if ($comparedType->allowsNull() && ! $type->allowsNull()) {
34
+        if ($comparedType->allowsNull() && !$type->allowsNull()) {
35 35
             return false;
36 36
         }
37 37
 
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
             return false;
48 48
         }
49 49
 
50
-        if ($typeAsString === 'object' && ! $comparedType->isBuiltin()) {
50
+        if ($typeAsString === 'object' && !$comparedType->isBuiltin()) {
51 51
             // `object` is not covariant to a defined class type
52 52
             return true;
53 53
         }
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
             return true;
58 58
         }
59 59
 
60
-        if ($typeAsString === 'iterable' && ! $comparedType->isBuiltin()) {
60
+        if ($typeAsString === 'iterable' && !$comparedType->isBuiltin()) {
61 61
             if ($comparedType->targetReflectionClass()->implementsInterface(Traversable::class)) {
62 62
                 // `iterable` can be restricted via any `Iterator` implementation
63 63
                 return true;
Please login to merge, or discard this patch.
src/DetectChanges/Variance/TypeIsContravariant.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
             return false;
30 30
         }
31 31
 
32
-        if ($type->allowsNull() && ! $comparedType->allowsNull()) {
32
+        if ($type->allowsNull() && !$comparedType->allowsNull()) {
33 33
             return false;
34 34
         }
35 35
 
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
             return true;
46 46
         }
47 47
 
48
-        if ($comparedTypeAsString === 'object' && ! $type->isBuiltin()) {
48
+        if ($comparedTypeAsString === 'object' && !$type->isBuiltin()) {
49 49
             // `object` is always contravariant to any object type
50 50
             return true;
51 51
         }
Please login to merge, or discard this patch.
src/DetectChanges/BCBreak/FunctionBased/ParameterDefaultValueChanged.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
     {
67 67
         return array_filter(
68 68
             $function->getParameters(),
69
-            static function (ReflectionParameter $parameter) : bool {
69
+            static function(ReflectionParameter $parameter) : bool {
70 70
                 return $parameter->isDefaultValueAvailable();
71 71
             }
72 72
         );
Please login to merge, or discard this patch.
test/unit/Git/RevisionTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     {
28 28
         $sha1 = sha1(uniqid('sha1', true));
29 29
 
30
-        self::assertSame($sha1, (string) Revision::fromSha1($sha1 . "\n"));
30
+        self::assertSame($sha1, (string) Revision::fromSha1($sha1."\n"));
31 31
     }
32 32
 
33 33
     /**
@@ -40,8 +40,8 @@  discard block
 block discarded – undo
40 40
             ['a'],
41 41
             [str_repeat('a', 39)],
42 42
             [str_repeat('a', 41)],
43
-            [' ' . str_repeat('a', 42)],
44
-            [str_repeat('a', 42) . ' '],
43
+            [' '.str_repeat('a', 42)],
44
+            [str_repeat('a', 42).' '],
45 45
         ];
46 46
     }
47 47
 
Please login to merge, or discard this patch.
test/unit/SourceLocator/StaticClassMapSourceLocatorTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
             ->astLocator
78 78
             ->expects(self::once())
79 79
             ->method('findReflection')
80
-            ->with($this->reflector, self::callback(static function (LocatedSource $source) : bool {
80
+            ->with($this->reflector, self::callback(static function(LocatedSource $source) : bool {
81 81
                 self::assertSame(file_get_contents(__FILE__), $source->getSource());
82 82
                 self::assertSame(__FILE__, $source->getFileName());
83 83
                 self::assertNull($source->getExtensionName());
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
     {
98 98
         return [
99 99
             [__FILE__],
100
-            [__DIR__ . '/../SourceLocator/StaticClassMapSourceLocatorTest.php'],
100
+            [__DIR__.'/../SourceLocator/StaticClassMapSourceLocatorTest.php'],
101 101
         ];
102 102
     }
103 103
 
Please login to merge, or discard this patch.