Passed
Pull Request — master (#49)
by Marco
02:55
created
src/Comparator/BackwardsCompatibility/ClassBased/FinalClassChanged.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(ReflectionClass $fromClass, ReflectionClass $toClass) : Changes
21 21
     {
22
-        if (! $fromClass->isFinal()) {
22
+        if (!$fromClass->isFinal()) {
23 23
             return Changes::new();
24 24
         }
25 25
 
Please login to merge, or discard this patch.
Comparator/BackwardsCompatibility/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 compare(ReflectionMethod $fromMethod, ReflectionMethod $toMethod) : Changes
24 24
     {
25
-        if (! $fromMethod->isPublic()) {
25
+        if (!$fromMethod->isPublic()) {
26 26
             return Changes::new();
27 27
         }
28 28
 
Please login to merge, or discard this patch.
Comparator/BackwardsCompatibility/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->compare($fromMethod, $toMethod));
27 27
             },
28 28
             Changes::new()
Please login to merge, or discard this patch.
src/Comparator/BackwardsCompatibility/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 compare(ReflectionMethod $fromMethod, ReflectionMethod $toMethod) : Changes
19 19
     {
20
-        if ($fromMethod->isFinal() || ! $toMethod->isFinal()) {
20
+        if ($fromMethod->isFinal() || !$toMethod->isFinal()) {
21 21
             return Changes::new();
22 22
         }
23 23
 
Please login to merge, or discard this patch.
Comparator/BackwardsCompatibility/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 compare(ReflectionMethod $fromMethod, ReflectionMethod $toMethod) : Changes
19 19
     {
20
-        if ($fromMethod->isAbstract() || ! $toMethod->isAbstract()) {
20
+        if ($fromMethod->isAbstract() || !$toMethod->isAbstract()) {
21 21
             return Changes::new();
22 22
         }
23 23
 
Please login to merge, or discard this patch.
BackwardsCompatibility/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 compare(ReflectionMethod $fromMethod, ReflectionMethod $toMethod) : Changes
24 24
     {
25
-        if (! $fromMethod->isProtected()) {
25
+        if (!$fromMethod->isProtected()) {
26 26
             return Changes::new();
27 27
         }
28 28
 
Please login to merge, or discard this patch.
src/Formatter/ReflectionPropertyName.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,9 +11,9 @@
 block discarded – undo
11 11
     public function __invoke(ReflectionProperty $property) : string
12 12
     {
13 13
         if ($property->isStatic()) {
14
-            return $property->getDeclaringClass()->getName() . '::$' . $property->getName();
14
+            return $property->getDeclaringClass()->getName().'::$'.$property->getName();
15 15
         }
16 16
 
17
-        return $property->getDeclaringClass()->getName() . '#$' . $property->getName();
17
+        return $property->getDeclaringClass()->getName().'#$'.$property->getName();
18 18
     }
19 19
 }
Please login to merge, or discard this patch.
src/Formatter/MarkdownPipedToSymfonyConsoleFormatter.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -30,21 +30,21 @@  discard block
 block discarded – undo
30 30
         $this->output->writeln(
31 31
             "# Added\n"
32 32
             . implode('', $this->convertFilteredChangesToMarkdownBulletList(
33
-                function (Change $change) : bool {
33
+                function(Change $change) : bool {
34 34
                     return $change->isAdded();
35 35
                 },
36 36
                 ...$arrayOfChanges
37 37
             ))
38 38
             . "\n# Changed\n"
39 39
             . implode('', $this->convertFilteredChangesToMarkdownBulletList(
40
-                function (Change $change) : bool {
40
+                function(Change $change) : bool {
41 41
                     return $change->isChanged();
42 42
                 },
43 43
                 ...$arrayOfChanges
44 44
             ))
45 45
             . "\n# Removed\n"
46 46
             . implode('', $this->convertFilteredChangesToMarkdownBulletList(
47
-                function (Change $change) : bool {
47
+                function(Change $change) : bool {
48 48
                     return $change->isRemoved();
49 49
                 },
50 50
                 ...$arrayOfChanges
@@ -56,8 +56,8 @@  discard block
 block discarded – undo
56 56
     private function convertFilteredChangesToMarkdownBulletList(callable $filterFunction, Change ...$changes) : array
57 57
     {
58 58
         return array_map(
59
-            function (Change $change) : string {
60
-                return ' - ' . str_replace(['ADDED: ', 'CHANGED: ', 'REMOVED: '], '', trim((string) $change)) . "\n";
59
+            function(Change $change) : string {
60
+                return ' - '.str_replace(['ADDED: ', 'CHANGED: ', 'REMOVED: '], '', trim((string) $change))."\n";
61 61
             },
62 62
             array_filter($changes, $filterFunction)
63 63
         );
Please login to merge, or discard this patch.
src/Formatter/ReflectionFunctionAbstractName.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,12 +13,12 @@
 block discarded – undo
13 13
     {
14 14
         if ($function instanceof ReflectionMethod) {
15 15
             if ($function->isStatic()) {
16
-                return $function->getDeclaringClass()->getName() . '::' . $function->getName() . '()';
16
+                return $function->getDeclaringClass()->getName().'::'.$function->getName().'()';
17 17
             }
18 18
 
19
-            return $function->getDeclaringClass()->getName() . '#' . $function->getName() . '()';
19
+            return $function->getDeclaringClass()->getName().'#'.$function->getName().'()';
20 20
         }
21 21
 
22
-        return $function->getName() . '()';
22
+        return $function->getName().'()';
23 23
     }
24 24
 }
Please login to merge, or discard this patch.