GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( dd4d58...aecc92 )
by Constantin
02:23
created
src/Gica/CodeAnalysis/PhpClassInFileInspector.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,8 +80,9 @@
 block discarded – undo
80 80
         }
81 81
 
82 82
         $namespace = $m['namespace'];
83
-        if ($namespace)
84
-            $namespace = '\\' . $namespace;
83
+        if ($namespace) {
84
+                    $namespace = '\\' . $namespace;
85
+        }
85 86
 
86 87
 
87 88
         $fqn = $namespace . '\\' . $unqualifiedClassName;
Please login to merge, or discard this patch.
src/Gica/CodeAnalysis/MethodListenerDiscovery.php 2 patches
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -194,8 +194,9 @@
 block discarded – undo
194 194
 
195 195
     private function isValidListenerMethod(\ReflectionMethod $reflectionMethod)
196 196
     {
197
-        if ($reflectionMethod->getNumberOfParameters() == 0)
198
-            return false;
197
+        if ($reflectionMethod->getNumberOfParameters() == 0) {
198
+                    return false;
199
+        }
199 200
 
200 201
         return true;
201 202
     }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
 
65 65
     protected function filterFiles(\Iterator $files)
66 66
     {
67
-        return new \CallbackFilterIterator($files, function ($file) {
67
+        return new \CallbackFilterIterator($files, function($file) {
68 68
             return $this->isListenerFileName($file);
69 69
         });
70 70
     }
Please login to merge, or discard this patch.
MethodListenerDiscovery/MapCodeGenerator/MapCodeGeneratorBase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
 
50 50
     protected function generateLevel1Item(array $eventListenerMethods)
51 51
     {
52
-        return array_map(function (ListenerMethod $listener) {
52
+        return array_map(function(ListenerMethod $listener) {
53 53
             return $this->spaces(self::SPACES_AT_HANDLERS) .
54 54
                 '[' . $this->prependSlash($this->getLevel1FirstItem($listener)) . '::class' . ', \'' . $this->getLevel1SecondItem($listener) . '\'],';
55 55
         }, $eventListenerMethods);
Please login to merge, or discard this patch.
src/Gica/CodeAnalysis/AggregateEventHandlersValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
 
65 65
     protected function filterFiles(\Iterator $files)
66 66
     {
67
-        return new \CallbackFilterIterator($files, function ($file) {
67
+        return new \CallbackFilterIterator($files, function($file) {
68 68
             return $this->isListenerFileName($file);
69 69
         });
70 70
     }
Please login to merge, or discard this patch.
src/Gica/CodeAnalysis/Shared/ClassComparison/SubclassComparator.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -14,6 +14,9 @@
 block discarded – undo
14 14
         return $parent->isInterface() ? $child->implementsInterface($parentClass) : $child->isSubclassOf($parentClass);
15 15
     }
16 16
 
17
+    /**
18
+     * @param \ReflectionClass $object
19
+     */
17 20
     public function isASubClassOrSameClass($object, string $parentClass)
18 21
     {
19 22
         return $this->getObjectClass($object) === $parentClass || $this->isASubClass($object, $parentClass);
Please login to merge, or discard this patch.
src/Gica/CodeAnalysis/ClassDiscovery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
 
65 65
     protected function filterFiles(\Iterator $files)
66 66
     {
67
-        return new \CallbackFilterIterator($files, function ($file) {
67
+        return new \CallbackFilterIterator($files, function($file) {
68 68
             return $this->isListenerFileName($file);
69 69
         });
70 70
     }
Please login to merge, or discard this patch.
Gica/CodeAnalysis/Shared/ClassSorter/ByClassConstantDependencySorter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
      */
35 35
     public function sortClasses($classes)
36 36
     {
37
-        usort($classes, function (\ReflectionClass $a, \ReflectionClass $b) {
37
+        usort($classes, function(\ReflectionClass $a, \ReflectionClass $b) {
38 38
             return $this->getClassConstant($a) <=> $this->getClassConstant($b);
39 39
         });
40 40
 
Please login to merge, or discard this patch.
src/Gica/CodeAnalysis/Shared/ClassSorter/AlphabeticalClassSorter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
      */
13 13
     public function sortClasses($classes)
14 14
     {
15
-        usort($classes, function (\ReflectionClass $a, \ReflectionClass $b) {
15
+        usort($classes, function(\ReflectionClass $a, \ReflectionClass $b) {
16 16
             return $a->name <=> $b->name;
17 17
         });
18 18
 
Please login to merge, or discard this patch.
src/Gica/CodeAnalysis/Shared/ClassSorter/TopologySorter.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 
26 26
         $sortedClassNames = array_reverse($sortedClassNames);
27 27
 
28
-        usort($classes, function (\ReflectionClass $a, \ReflectionClass $b) use ($sortedClassNames) {
28
+        usort($classes, function(\ReflectionClass $a, \ReflectionClass $b) use ($sortedClassNames) {
29 29
             return array_search($a->name, $sortedClassNames) <=> array_search($b->name, $sortedClassNames);
30 30
         });
31 31
 
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     {
87 87
         $comparator = new SubclassComparator();
88 88
 
89
-        $isASubClassOrSameClass = function (\ReflectionClass $class) use ($parentClass, $comparator) {
89
+        $isASubClassOrSameClass = function(\ReflectionClass $class) use ($parentClass, $comparator) {
90 90
             return $comparator->isASubClassOrSameClass($class, $parentClass->name);
91 91
         };
92 92
 
@@ -111,11 +111,11 @@  discard block
 block discarded – undo
111 111
      */
112 112
     private function classFromParameters(array $parameters)
113 113
     {
114
-        $strings = array_map(function (\ReflectionParameter $parameter) {
114
+        $strings = array_map(function(\ReflectionParameter $parameter) {
115 115
             return $this->classFromParameter($parameter);
116 116
         }, $parameters);
117 117
 
118
-        return array_filter($strings, function ($s) {
118
+        return array_filter($strings, function($s) {
119 119
             return !!$s;
120 120
         });
121 121
     }
Please login to merge, or discard this patch.
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -99,6 +99,9 @@
 block discarded – undo
99 99
         return $dependencies;
100 100
     }
101 101
 
102
+    /**
103
+     * @param \ReflectionClass[] $classes
104
+     */
102 105
     private function isParentClassOfAny(\ReflectionClass $parentClass, $classes): bool
103 106
     {
104 107
         $comparator = new SubclassComparator();
Please login to merge, or discard this patch.