Passed
Pull Request — master (#60)
by James
03:22
created
src/DetectChanges/BCBreak/FunctionBased/ReturnTypeChanged.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
 
75 75
     private function typeToString(?ReflectionType $type) : string
76 76
     {
77
-        if (! $type) {
77
+        if (!$type) {
78 78
             return 'no type';
79 79
         }
80 80
 
Please login to merge, or discard this patch.
src/DetectChanges/BCBreak/TraitBased/MultipleChecksOnATrait.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, TraitBased $check) use ($fromTrait, $toTrait) : Changes {
25
+            function(Changes $changes, TraitBased $check) use ($fromTrait, $toTrait) : Changes {
26 26
                 return $changes->mergeWith($check->__invoke($fromTrait, $toTrait));
27 27
             },
28 28
             Changes::empty()
Please login to merge, or discard this patch.
src/DetectChanges/BCBreak/TraitBased/TraitBecameInterface.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 function __invoke(ReflectionClass $fromTrait, ReflectionClass $toTrait) : Changes
19 19
     {
20
-        if ($toTrait->isTrait() || ! $toTrait->isInterface() || ! $fromTrait->isTrait()) {
20
+        if ($toTrait->isTrait() || !$toTrait->isInterface() || !$fromTrait->isTrait()) {
21 21
             return Changes::empty();
22 22
         }
23 23
 
Please login to merge, or discard this patch.
src/DetectChanges/BCBreak/TraitBased/TraitBecameClass.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 {
18 18
     public function __invoke(ReflectionClass $fromTrait, ReflectionClass $toTrait) : Changes
19 19
     {
20
-        if ($this->isClass($fromTrait) || ! $this->isClass($toTrait)) {
20
+        if ($this->isClass($fromTrait) || !$this->isClass($toTrait)) {
21 21
             return Changes::empty();
22 22
         }
23 23
 
@@ -32,6 +32,6 @@  discard block
 block discarded – undo
32 32
      */
33 33
     private function isClass(ReflectionClass $class) : bool
34 34
     {
35
-        return ! ($class->isTrait() || $class->isInterface());
35
+        return !($class->isTrait() || $class->isInterface());
36 36
     }
37 37
 }
Please login to merge, or discard this patch.
src/DetectChanges/BCBreak/PropertyBased/OnlyProtectedPropertyChanged.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 
20 20
     public function __invoke(ReflectionProperty $fromProperty, ReflectionProperty $toProperty) : Changes
21 21
     {
22
-        if (! $fromProperty->isProtected()) {
22
+        if (!$fromProperty->isProtected()) {
23 23
             return Changes::empty();
24 24
         }
25 25
 
Please login to merge, or discard this patch.
src/DetectChanges/BCBreak/PropertyBased/OnlyPublicPropertyChanged.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 
20 20
     public function __invoke(ReflectionProperty $fromProperty, ReflectionProperty $toProperty) : Changes
21 21
     {
22
-        if (! $fromProperty->isPublic()) {
22
+        if (!$fromProperty->isPublic()) {
23 23
             return Changes::empty();
24 24
         }
25 25
 
Please login to merge, or discard this patch.
src/DetectChanges/BCBreak/PropertyBased/MultipleChecksOnAProperty.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, PropertyBased $check) use ($fromProperty, $toProperty) : Changes {
25
+            function(Changes $changes, PropertyBased $check) use ($fromProperty, $toProperty) : Changes {
26 26
                 return $changes->mergeWith($check->__invoke($fromProperty, $toProperty));
27 27
             },
28 28
             Changes::empty()
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
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
             return false;
31 31
         }
32 32
 
33
-        if ($comparedType->allowsNull() && ! $type->allowsNull()) {
33
+        if ($comparedType->allowsNull() && !$type->allowsNull()) {
34 34
             return false;
35 35
         }
36 36
 
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
             return false;
47 47
         }
48 48
 
49
-        if (strtolower($typeAsString) === 'object' && ! $comparedType->isBuiltin()) {
49
+        if (strtolower($typeAsString) === 'object' && !$comparedType->isBuiltin()) {
50 50
             // `object` is not covariant to a defined class type
51 51
             return true;
52 52
         }
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
             return true;
57 57
         }
58 58
 
59
-        if (strtolower($typeAsString) === 'iterable' && ! $comparedType->isBuiltin()) {
59
+        if (strtolower($typeAsString) === 'iterable' && !$comparedType->isBuiltin()) {
60 60
             if ($comparedType->targetReflectionClass()->implementsInterface(\Traversable::class)) {
61 61
                 // `iterable` can be restricted via any `Iterator` implementation
62 62
                 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 (strtolower($comparedTypeAsString) === 'object' && ! $type->isBuiltin()) {
48
+        if (strtolower($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.