Passed
Pull Request — master (#49)
by Marco
02:55
created
Comparator/BackwardsCompatibility/InterfaceBased/InterfaceBecameClass.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 compare(ReflectionClass $fromClass, ReflectionClass $toClass) : Changes
19 19
     {
20
-        if (! $this->isClass($toClass) || ! $fromClass->isInterface()) {
20
+        if (!$this->isClass($toClass) || !$fromClass->isInterface()) {
21 21
             // checking whether a class became an interface is done in `ClassBecameInterface`
22 22
             return Changes::new();
23 23
         }
@@ -34,6 +34,6 @@  discard block
 block discarded – undo
34 34
      */
35 35
     private function isClass(ReflectionClass $class) : bool
36 36
     {
37
-        return ! ($class->isTrait() || $class->isInterface());
37
+        return !($class->isTrait() || $class->isInterface());
38 38
     }
39 39
 }
Please login to merge, or discard this patch.
src/Comparator/BackwardsCompatibility/InterfaceBased/MethodAdded.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,11 +23,11 @@  discard block
 block discarded – undo
23 23
         $toMethods   = $this->methods($toInterface);
24 24
         $newMethods  = array_diff_key($toMethods, $fromMethods);
25 25
 
26
-        if (! $newMethods) {
26
+        if (!$newMethods) {
27 27
             return Changes::new();
28 28
         }
29 29
 
30
-        return Changes::fromArray(array_values(array_map(function (ReflectionMethod $method) use (
30
+        return Changes::fromArray(array_values(array_map(function(ReflectionMethod $method) use (
31 31
             $fromInterface
32 32
         ) : Change {
33 33
             return Change::added(
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         $methods = $interface->getMethods();
48 48
 
49 49
         return array_combine(
50
-            array_map(function (ReflectionMethod $method) : string {
50
+            array_map(function(ReflectionMethod $method) : string {
51 51
                 return strtolower($method->getName());
52 52
             }, $methods),
53 53
             $methods
Please login to merge, or discard this patch.
Comparator/BackwardsCompatibility/InterfaceBased/InterfaceBecameTrait.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 compare(ReflectionClass $fromClass, ReflectionClass $toClass) : Changes
19 19
     {
20
-        if (! $toClass->isTrait() || ! $fromClass->isInterface()) {
20
+        if (!$toClass->isTrait() || !$fromClass->isInterface()) {
21 21
             // checking whether an interface became an class is done in `InterfaceBecameClass`
22 22
             return Changes::new();
23 23
         }
Please login to merge, or discard this patch.
BackwardsCompatibility/InterfaceBased/MultipleChecksOnAnInterface.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, InterfaceBased $check) use ($fromClass, $toClass) : Changes {
25
+            function(Changes $changes, InterfaceBased $check) use ($fromClass, $toClass) : Changes {
26 26
                 return $changes->mergeWith($check->compare($fromClass, $toClass));
27 27
             },
28 28
             Changes::new()
Please login to merge, or discard this patch.
src/Comparator/BackwardsCompatibility/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->compare($fromTrait, $toTrait));
27 27
             },
28 28
             Changes::new()
Please login to merge, or discard this patch.
src/Comparator/BackwardsCompatibility/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 compare(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::new();
22 22
         }
23 23
 
@@ -33,6 +33,6 @@  discard block
 block discarded – undo
33 33
      */
34 34
     private function isClass(ReflectionClass $class) : bool
35 35
     {
36
-        return ! ($class->isTrait() || $class->isInterface());
36
+        return !($class->isTrait() || $class->isInterface());
37 37
     }
38 38
 }
Please login to merge, or discard this patch.
src/Comparator/BackwardsCompatibility/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 compare(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::new();
22 22
         }
23 23
 
Please login to merge, or discard this patch.
BackwardsCompatibility/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 compare(ReflectionProperty $fromProperty, ReflectionProperty $toProperty) : Changes
21 21
     {
22
-        if (! $fromProperty->isProtected()) {
22
+        if (!$fromProperty->isProtected()) {
23 23
             return Changes::new();
24 24
         }
25 25
 
Please login to merge, or discard this patch.
BackwardsCompatibility/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->compare($fromProperty, $toProperty));
27 27
             },
28 28
             Changes::new()
Please login to merge, or discard this patch.