Passed
Pull Request — master (#50)
by Marco
02:46
created
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/Comparator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
     ) : Changes {
49 49
         $changelog = Changes::empty();
50 50
 
51
-        $definedApiClassNames = array_map(function (ReflectionClass $class) : string {
51
+        $definedApiClassNames = array_map(function(ReflectionClass $class) : string {
52 52
             return $class->getName();
53 53
         }, $definedSymbols->getAllClasses());
54 54
 
Please login to merge, or discard this patch.
src/Changes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
 
45 45
     public function mergeWith(self $other) : self
46 46
     {
47
-        if (! $other->changes) {
47
+        if (!$other->changes) {
48 48
             return $this;
49 49
         }
50 50
 
Please login to merge, or discard this patch.