Completed
Pull Request — master (#108)
by Marco
04:12
created
src/CompareClasses.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,18 +44,18 @@
 block discarded – undo
44 44
         ClassReflector $newSourcesWithDependencies
45 45
     ) : Changes {
46 46
         $definedApiClassNames = array_map(
47
-            function (ReflectionClass $class) : string {
47
+            function(ReflectionClass $class) : string {
48 48
                 return $class->getName();
49 49
             },
50 50
             array_filter(
51 51
                 $definedSymbols->getAllClasses(),
52
-                function (ReflectionClass $class) : bool {
53
-                    return ! $class->isAnonymous();
52
+                function(ReflectionClass $class) : bool {
53
+                    return !$class->isAnonymous();
54 54
                 }
55 55
             )
56 56
         );
57 57
 
58
-        return Changes::fromIterator((function () use ($definedApiClassNames, $pastSourcesWithDependencies, $newSourcesWithDependencies) {
58
+        return Changes::fromIterator((function() use ($definedApiClassNames, $pastSourcesWithDependencies, $newSourcesWithDependencies) {
59 59
             foreach ($definedApiClassNames as $apiClassName) {
60 60
                 /** @var ReflectionClass $oldSymbol */
61 61
                 $oldSymbol = $pastSourcesWithDependencies->reflect($apiClassName);
Please login to merge, or discard this patch.
src/Changes.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
         $instance = new self();
44 44
 
45 45
         $instance->changes   = [];
46
-        $instance->generator = (function () use ($changes) : Generator {
46
+        $instance->generator = (function() use ($changes) : Generator {
47 47
             foreach ($changes as $change) {
48 48
                 yield $change;
49 49
             }
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
         $instance = new self();
59 59
 
60 60
         $instance->changes   = [];
61
-        $instance->generator = (function () use ($changes) : Generator {
61
+        $instance->generator = (function() use ($changes) : Generator {
62 62
             foreach ($this as $change) {
63 63
                 yield $change;
64 64
             }
Please login to merge, or discard this patch.
DetectChanges/BCBreak/ClassConstantBased/MultipleChecksOnAClassConstant.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(ReflectionClassConstant $fromConstant, ReflectionClassConstant $toConstant) : Changes
21 21
     {
22
-        return Changes::fromIterator((function () use ($fromConstant, $toConstant) {
22
+        return Changes::fromIterator((function() use ($fromConstant, $toConstant) {
23 23
             foreach ($this->checks as $check) {
24 24
                 yield from $check->__invoke($fromConstant, $toConstant);
25 25
             }
Please login to merge, or discard this patch.
src/DetectChanges/BCBreak/FunctionBased/MultipleChecksOnAFunction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 
21 21
     public function __invoke(ReflectionFunctionAbstract $fromFunction, ReflectionFunctionAbstract $toFunction) : Changes
22 22
     {
23
-        return Changes::fromIterator((function () use ($fromFunction, $toFunction) {
23
+        return Changes::fromIterator((function() use ($fromFunction, $toFunction) {
24 24
             foreach ($this->checks as $check) {
25 25
                 yield from $check->__invoke($fromFunction, $toFunction);
26 26
             }
Please login to merge, or discard this patch.
src/DetectChanges/BCBreak/FunctionBased/ParameterTypeChanged.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         /** @var ReflectionParameter[] $toParameters */
38 38
         $toParameters = array_values($toFunction->getParameters());
39 39
 
40
-        return Changes::fromIterator((function () use ($fromParameters, $toParameters) {
40
+        return Changes::fromIterator((function() use ($fromParameters, $toParameters) {
41 41
             foreach (array_intersect_key($fromParameters, $toParameters) as $parameterIndex => $commonParameter) {
42 42
                 yield from $this->compareParameter($commonParameter, $toParameters[$parameterIndex]);
43 43
             }
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 
68 68
     private function typeToString(?ReflectionType $type) : string
69 69
     {
70
-        if (! $type) {
70
+        if (!$type) {
71 71
             return 'no type';
72 72
         }
73 73
 
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
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 
20 20
     public function __invoke(ReflectionClass $fromTrait, ReflectionClass $toTrait) : Changes
21 21
     {
22
-        return Changes::fromIterator((function () use ($fromTrait, $toTrait) {
22
+        return Changes::fromIterator((function() use ($fromTrait, $toTrait) {
23 23
             foreach ($this->checks as $check) {
24 24
                 yield from $check->__invoke($fromTrait, $toTrait);
25 25
             }
Please login to merge, or discard this patch.
src/DetectChanges/BCBreak/ClassBased/PropertyChanged.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
         $propertiesTo     = $toClass->getProperties();
27 27
         $commonProperties = array_keys(array_intersect_key($propertiesFrom, $propertiesTo));
28 28
 
29
-        return Changes::fromIterator((function () use ($propertiesFrom, $propertiesTo, $commonProperties) {
29
+        return Changes::fromIterator((function() use ($propertiesFrom, $propertiesTo, $commonProperties) {
30 30
             foreach ($commonProperties as $propertyName) {
31 31
                 yield from $this->checkProperty->__invoke($propertiesFrom[$propertyName], $propertiesTo[$propertyName]);
32 32
             }
Please login to merge, or discard this patch.
src/DetectChanges/BCBreak/ClassBased/MultipleChecksOnAClass.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(ReflectionClass $fromClass, ReflectionClass $toClass) : Changes
21 21
     {
22
-        return Changes::fromIterator((function () use ($fromClass, $toClass) {
22
+        return Changes::fromIterator((function() use ($fromClass, $toClass) {
23 23
             foreach ($this->checks as $check) {
24 24
                 yield from $check->__invoke($fromClass, $toClass);
25 25
             }
Please login to merge, or discard this patch.
src/DetectChanges/BCBreak/ClassBased/ConstantChanged.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
         $constantsTo     = $toClass->getReflectionConstants();
27 27
         $commonConstants = array_keys(array_intersect_key($constantsFrom, $constantsTo));
28 28
 
29
-        return Changes::fromIterator((function () use ($constantsFrom, $constantsTo, $commonConstants) {
29
+        return Changes::fromIterator((function() use ($constantsFrom, $constantsTo, $commonConstants) {
30 30
             foreach ($commonConstants as $constantName) {
31 31
                 yield from $this->checkConstant->__invoke($constantsFrom[$constantName], $constantsTo[$constantName]);
32 32
             }
Please login to merge, or discard this patch.