Passed
Pull Request — master (#109)
by Marco
05:58 queued 03:28
created
src/DetectChanges/BCBreak/ClassBased/ClassBecameTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 {
19 19
     public function __invoke(ReflectionClass $fromClass, ReflectionClass $toClass) : Changes
20 20
     {
21
-        if ($fromClass->isTrait() || ! $toClass->isTrait()) {
21
+        if ($fromClass->isTrait() || !$toClass->isTrait()) {
22 22
             return Changes::empty();
23 23
         }
24 24
 
Please login to merge, or discard this patch.
src/DetectChanges/BCBreak/FunctionBased/ParameterDefaultValueChanged.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,13 +71,13 @@
 block discarded – undo
71 71
     {
72 72
         $optionalParameters = array_values(array_filter(
73 73
             $function->getParameters(),
74
-            function (ReflectionParameter $parameter) : bool {
74
+            function(ReflectionParameter $parameter) : bool {
75 75
                 return $parameter->isDefaultValueAvailable();
76 76
             }
77 77
         ));
78 78
 
79 79
         return array_combine(
80
-            array_map(function (ReflectionParameter $parameter) : int {
80
+            array_map(function(ReflectionParameter $parameter) : int {
81 81
                 return $parameter->getPosition();
82 82
             }, $optionalParameters),
83 83
             $optionalParameters
Please login to merge, or discard this patch.
src/DetectChanges/BCBreak/FunctionBased/ReturnTypeCovarianceChanged.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.
DetectChanges/BCBreak/FunctionBased/ParameterTypeContravarianceChanged.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/FunctionBased/ParameterTypeChanged.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/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.