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 ( 1803f5...01bff6 )
by Constantin
04:15
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 3 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.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
             }
66 66
         }
67 67
 
68
-         return $this->allEventsListeners;
68
+            return $this->allEventsListeners;
69 69
     }
70 70
 
71 71
     /**
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/Shared/ClassSorter/ByConstructorDependencySorter.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -68,6 +68,9 @@
 block discarded – undo
68 68
         return $dependencies;
69 69
     }
70 70
 
71
+    /**
72
+     * @param string[] $classes
73
+     */
71 74
     private function isParentClassOfAny(\ReflectionClass $parentClass, $classes): bool
72 75
     {
73 76
         $comparator = new SubclassComparator();
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
     {
73 73
         $comparator = new SubclassComparator();
74 74
 
75
-        $isASubClassOrSameClass = function (\ReflectionClass $class) use ($parentClass, $comparator) {
75
+        $isASubClassOrSameClass = function(\ReflectionClass $class) use ($parentClass, $comparator) {
76 76
             return $comparator->isASubClassOrSameClass($class, $parentClass->name);
77 77
         };
78 78
 
@@ -93,11 +93,11 @@  discard block
 block discarded – undo
93 93
      */
94 94
     private function classNameFromParameters(array $parameters)
95 95
     {
96
-        $strings = array_map(function (\ReflectionParameter $parameter) {
96
+        $strings = array_map(function(\ReflectionParameter $parameter) {
97 97
             return $this->classNameFromParameter($parameter);
98 98
         }, $parameters);
99 99
 
100
-        return array_filter($strings, function ($s) {
100
+        return array_filter($strings, function($s) {
101 101
             return !!$s;
102 102
         });
103 103
     }
Please login to merge, or discard this patch.
src/Gica/CodeAnalysis/Shared/BubbleArraySorter.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -8,10 +8,10 @@
 block discarded – undo
8 8
 {
9 9
     public function sort($arr, callable $isBefore) {
10 10
         $size = count($arr);
11
-        for ($i=0; $i<$size; $i++) {
12
-            for ($j=0; $j<$size-1-$i; $j++) {
13
-                if ($isBefore($arr[$j+1], $arr[$j])) {
14
-                    $this->swap($arr, $j, $j+1);
11
+        for ($i = 0; $i < $size; $i++) {
12
+            for ($j = 0; $j < $size - 1 - $i; $j++) {
13
+                if ($isBefore($arr[$j + 1], $arr[$j])) {
14
+                    $this->swap($arr, $j, $j + 1);
15 15
                 }
16 16
             }
17 17
         }
Please login to merge, or discard this patch.
src/Gica/CodeAnalysis/MethodListenerDiscovery/MapGrouper/GrouperByEvent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     {
41 41
         $classSorter = new ByConstructorDependencySorter();
42 42
 
43
-        return (new BubbleArraySorter)->sort($listeners, function (ListenerMethod $a, ListenerMethod $b) use ($classSorter) {
43
+        return (new BubbleArraySorter)->sort($listeners, function(ListenerMethod $a, ListenerMethod $b) use ($classSorter) {
44 44
             return $classSorter->__invoke($a->getClass(), $b->getClass());
45 45
         });
46 46
     }
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.