Passed
Pull Request — master (#50)
by Marco
02:46
created
test/unit/DetectChanges/BCBreak/ClassBased/ConstantChangedTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
         $comparator
61 61
             ->expects(self::exactly(2))
62 62
             ->method('__invoke')
63
-            ->willReturnCallback(function (ReflectionClassConstant $from, ReflectionClassConstant $to) : Changes {
63
+            ->willReturnCallback(function(ReflectionClassConstant $from, ReflectionClassConstant $to) : Changes {
64 64
                 $propertyName = $from->getName();
65 65
 
66 66
                 self::assertSame($propertyName, $to->getName());
Please login to merge, or discard this patch.
test/unit/DetectChanges/BCBreak/ClassBased/PropertyChangedTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
         $comparator
61 61
             ->expects(self::exactly(2))
62 62
             ->method('__invoke')
63
-            ->willReturnCallback(function (ReflectionProperty $from, ReflectionProperty $to) : Changes {
63
+            ->willReturnCallback(function(ReflectionProperty $from, ReflectionProperty $to) : Changes {
64 64
                 $propertyName = $from->getName();
65 65
 
66 66
                 self::assertSame($propertyName, $to->getName());
Please login to merge, or discard this patch.
test/unit/DetectChanges/BCBreak/ClassBased/MethodChangedTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
         $comparator
62 62
             ->expects(self::exactly(3))
63 63
             ->method('__invoke')
64
-            ->willReturnCallback(function (ReflectionMethod $from, ReflectionMethod $to) : Changes {
64
+            ->willReturnCallback(function(ReflectionMethod $from, ReflectionMethod $to) : Changes {
65 65
                 $methodName = $from->getName();
66 66
 
67 67
                 self::assertSame(strtolower($methodName), strtolower($to->getName()));
Please login to merge, or discard this patch.
src/DetectChanges/BCBreak/MethodBased/MethodConcretenessChanged.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(ReflectionMethod $fromMethod, ReflectionMethod $toMethod) : Changes
19 19
     {
20
-        if ($fromMethod->isAbstract() || ! $toMethod->isAbstract()) {
20
+        if ($fromMethod->isAbstract() || !$toMethod->isAbstract()) {
21 21
             return Changes::empty();
22 22
         }
23 23
 
Please login to merge, or discard this patch.
src/DetectChanges/BCBreak/MethodBased/OnlyProtectedMethodChanged.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
     public function __invoke(ReflectionMethod $fromMethod, ReflectionMethod $toMethod) : Changes
24 24
     {
25
-        if (! $fromMethod->isProtected()) {
25
+        if (!$fromMethod->isProtected()) {
26 26
             return Changes::empty();
27 27
         }
28 28
 
Please login to merge, or discard this patch.
src/DetectChanges/BCBreak/MethodBased/MultipleChecksOnAMethod.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, MethodBased $check) use ($fromMethod, $toMethod) : Changes {
25
+            function(Changes $changes, MethodBased $check) use ($fromMethod, $toMethod) : Changes {
26 26
                 return $changes->mergeWith($check->__invoke($fromMethod, $toMethod));
27 27
             },
28 28
             Changes::empty()
Please login to merge, or discard this patch.
src/DetectChanges/BCBreak/MethodBased/MethodBecameFinal.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(ReflectionMethod $fromMethod, ReflectionMethod $toMethod) : Changes
19 19
     {
20
-        if ($fromMethod->isFinal() || ! $toMethod->isFinal()) {
20
+        if ($fromMethod->isFinal() || !$toMethod->isFinal()) {
21 21
             return Changes::empty();
22 22
         }
23 23
 
Please login to merge, or discard this patch.
src/DetectChanges/BCBreak/MethodBased/OnlyPublicMethodChanged.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
     public function __invoke(ReflectionMethod $fromMethod, ReflectionMethod $toMethod) : Changes
24 24
     {
25
-        if (! $fromMethod->isPublic()) {
25
+        if (!$fromMethod->isPublic()) {
26 26
             return Changes::empty();
27 27
         }
28 28
 
Please login to merge, or discard this patch.
src/DetectChanges/BCBreak/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 __invoke(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::empty();
23 23
         }
Please login to merge, or discard this patch.