Completed
Push — master ( 85853a...5df06c )
by James
20s queued 12s
created
src/DetectChanges/BCBreak/ClassBased/PropertyRemoved.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
             array_keys($this->accessibleProperties($toClass))
35 35
         );
36 36
 
37
-        return Changes::fromList(...array_map(function (string $property) use ($fromProperties) : Change {
37
+        return Changes::fromList(...array_map(function(string $property) use ($fromProperties) : Change {
38 38
             return Change::removed(
39 39
                 sprintf('Property %s was removed', $this->formatProperty->__invoke($fromProperties[$property])),
40 40
                 true
@@ -45,10 +45,10 @@  discard block
 block discarded – undo
45 45
     /** @return ReflectionProperty[] */
46 46
     private function accessibleProperties(ReflectionClass $class) : array
47 47
     {
48
-        return array_filter($class->getProperties(), function (ReflectionProperty $property) : bool {
48
+        return array_filter($class->getProperties(), function(ReflectionProperty $property) : bool {
49 49
             return ($property->isPublic()
50 50
                 || $property->isProtected())
51
-                && ! $this->isInternalDocComment($property->getDocComment());
51
+                && !$this->isInternalDocComment($property->getDocComment());
52 52
         });
53 53
     }
54 54
 
Please login to merge, or discard this patch.
src/DetectChanges/BCBreak/ClassBased/MethodRemoved.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
             array_change_key_case($this->accessibleMethods($toClass), CASE_UPPER)
37 37
         );
38 38
 
39
-        return Changes::fromList(...array_values(array_map(function (ReflectionMethod $method) : Change {
39
+        return Changes::fromList(...array_values(array_map(function(ReflectionMethod $method) : Change {
40 40
             return Change::removed(
41 41
                 sprintf('Method %s was removed', $this->formatFunction->__invoke($method)),
42 42
                 true
@@ -47,14 +47,14 @@  discard block
 block discarded – undo
47 47
     /** @return ReflectionMethod[] */
48 48
     private function accessibleMethods(ReflectionClass $class) : array
49 49
     {
50
-        $methods = array_filter($class->getMethods(), function (ReflectionMethod $method) : bool {
50
+        $methods = array_filter($class->getMethods(), function(ReflectionMethod $method) : bool {
51 51
             return ($method->isPublic()
52 52
                 || $method->isProtected())
53
-                && ! $this->isInternalDocComment($method->getDocComment());
53
+                && !$this->isInternalDocComment($method->getDocComment());
54 54
         });
55 55
 
56 56
         return array_combine(
57
-            array_map(static function (ReflectionMethod $method) : string {
57
+            array_map(static function(ReflectionMethod $method) : string {
58 58
                 return $method->getName();
59 59
             }, $methods),
60 60
             $methods
Please login to merge, or discard this patch.
src/DetectChanges/BCBreak/ClassBased/ClassBecameInternal.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 (! $this->isInternalDocComment($fromClass->getDocComment())
20
+        if (!$this->isInternalDocComment($fromClass->getDocComment())
21 21
             && $this->isInternalDocComment($toClass->getDocComment())
22 22
         ) {
23 23
             return Changes::fromList(Change::changed(
Please login to merge, or discard this patch.
src/DetectChanges/BCBreak/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 __invoke(ReflectionClass $fromInterface, ReflectionClass $toInterface) : Changes
19 19
     {
20
-        if (! $this->isClass($toInterface) || ! $fromInterface->isInterface()) {
20
+        if (!$this->isClass($toInterface) || !$fromInterface->isInterface()) {
21 21
             // checking whether a class became an interface is done in `ClassBecameInterface`
22 22
             return Changes::empty();
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/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 $fromInterface, ReflectionClass $toInterface) : Changes
19 19
     {
20
-        if (! $toInterface->isTrait() || ! $fromInterface->isInterface()) {
20
+        if (!$toInterface->isTrait() || !$fromInterface->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.
src/DetectChanges/BCBreak/InterfaceBased/AncestorRemoved.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
             array_diff($fromInterface->getInterfaceNames(), $toInterface->getInterfaceNames())
24 24
         );
25 25
 
26
-        if (! $removedAncestors) {
26
+        if (!$removedAncestors) {
27 27
             return Changes::empty();
28 28
         }
29 29
 
Please login to merge, or discard this patch.
src/DetectChanges/BCBreak/FunctionBased/FunctionBecameInternal.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     public function __invoke(ReflectionFunctionAbstract $fromFunction, ReflectionFunctionAbstract $toFunction) : Changes
28 28
     {
29 29
         if ($this->isInternalDocComment($toFunction->getDocComment())
30
-            && ! $this->isInternalDocComment($fromFunction->getDocComment())
30
+            && !$this->isInternalDocComment($fromFunction->getDocComment())
31 31
         ) {
32 32
             return Changes::fromList(Change::changed(
33 33
                 sprintf(
Please login to merge, or discard this patch.
src/DetectChanges/BCBreak/PropertyBased/PropertyBecameInternal.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     public function __invoke(ReflectionProperty $fromProperty, ReflectionProperty $toProperty) : Changes
28 28
     {
29 29
         if ($this->isInternalDocComment($toProperty->getDocComment())
30
-            && ! $this->isInternalDocComment($fromProperty->getDocComment())
30
+            && !$this->isInternalDocComment($fromProperty->getDocComment())
31 31
         ) {
32 32
             return Changes::fromList(Change::changed(
33 33
                 sprintf(
Please login to merge, or discard this patch.