Passed
Push — master ( bc2264...443d60 )
by Marco
06:52 queued 04:20
created
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.
src/DetectChanges/BCBreak/ClassBased/PropertyRemoved.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
             array_keys($this->accessibleProperties($toClass))
35 35
         );
36 36
 
37
-        return Changes::fromList(...array_map(function (string $property) use ($fromProperties) : Change {
37
+        return Changes::fromList(...array_map(function(string $property) use ($fromProperties) : Change {
38 38
             return Change::removed(
39 39
                 sprintf('Property %s was removed', $this->formatProperty->__invoke($fromProperties[$property])),
40 40
                 true
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     /** @return ReflectionProperty[] */
46 46
     private function accessibleProperties(ReflectionClass $class) : array
47 47
     {
48
-        return array_filter($class->getProperties(), static function (ReflectionProperty $property) : bool {
48
+        return array_filter($class->getProperties(), static function(ReflectionProperty $property) : bool {
49 49
             return $property->isPublic() || $property->isProtected();
50 50
         });
51 51
     }
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.