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.
Cancelled
Push — master ( 7f9786...657102 )
by Constantin
02:41
created
Gica/CodeAnalysis/MethodListenerDiscovery/MethodListenerMapperWriter.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -36,6 +36,9 @@  discard block
 block discarded – undo
36 36
         return implode("\n\n", $eventEntries);
37 37
     }
38 38
 
39
+    /**
40
+     * @param integer $spacesCount
41
+     */
39 42
     private function spaces($spacesCount)
40 43
     {
41 44
         return str_repeat(' ', $spacesCount);
@@ -57,6 +60,9 @@  discard block
 block discarded – undo
57 60
         }, $listeners);
58 61
     }
59 62
 
63
+    /**
64
+     * @param integer $eventClass
65
+     */
60 66
     private function generateEventItem($eventClass, array $listeners)
61 67
     {
62 68
         return $this->spaces(self::SPACES_AT_MESSAGES) . $this->prependSlash($eventClass) . "::class => [\n" .
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
      */
53 53
     private function addClassToListeners(array $listeners)
54 54
     {
55
-        return array_map(function (ListenerMethod $listener) {
55
+        return array_map(function(ListenerMethod $listener) {
56 56
             return $this->spaces(self::SPACES_AT_HANDLERS) . '[' . $this->prependSlash($listener->getClassName()) . '::class' . ', \'' . $listener->getMethodName() . '\'],';
57 57
         }, $listeners);
58 58
     }
Please login to merge, or discard this patch.
src/Gica/CodeAnalysis/MethodListenerDiscovery/ReadModelMapperWriter.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -36,6 +36,9 @@  discard block
 block discarded – undo
36 36
         return implode("\n\n", $eventEntries);
37 37
     }
38 38
 
39
+    /**
40
+     * @param integer $spacesCount
41
+     */
39 42
     private function spaces($spacesCount)
40 43
     {
41 44
         return str_repeat(' ', $spacesCount);
@@ -57,6 +60,9 @@  discard block
 block discarded – undo
57 60
         }, $eventListenerMethods);
58 61
     }
59 62
 
63
+    /**
64
+     * @param integer $listenerClass
65
+     */
60 66
     private function generateReadItem($listenerClass, array $listeners)
61 67
     {
62 68
         return $this->spaces(self::SPACES_AT_MESSAGES) . $this->prependSlash($listenerClass) . "::class => [\n" .
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
      */
53 53
     private function addClassToEvents(array $eventListenerMethods)
54 54
     {
55
-        return array_map(function (ListenerMethod $listener) {
55
+        return array_map(function(ListenerMethod $listener) {
56 56
             return $this->spaces(self::SPACES_AT_HANDLERS) . '[' . $this->prependSlash($listener->getEventClassName()) . '::class' . ', \'' . $listener->getMethodName() . '\'],';
57 57
         }, $eventListenerMethods);
58 58
     }
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
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
 
109 109
     protected function filterFiles(array $files)
110 110
     {
111
-        return array_filter($files, function ($file) {
111
+        return array_filter($files, function($file) {
112 112
             return $this->isListenerFileName($file);
113 113
         });
114 114
     }
Please login to merge, or discard this patch.
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
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
      */
117 117
     private function sortListeners($listeners)
118 118
     {
119
-        usort($listeners, function (ListenerMethod $a, ListenerMethod $b) {
119
+        usort($listeners, function(ListenerMethod $a, ListenerMethod $b) {
120 120
             return $this->classSorter->__invoke($a->getClass(), $b->getClass());
121 121
         });
122 122
 
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
 
139 139
     protected function filterFiles(array $files)
140 140
     {
141
-        return array_filter($files, function ($file) {
141
+        return array_filter($files, function($file) {
142 142
             return $this->isListenerFileName($file);
143 143
         });
144 144
     }
Please login to merge, or discard this patch.
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.
MethodListenerDiscovery/ClassSorter/ByConstructorDependencySorter.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -52,6 +52,9 @@
 block discarded – undo
52 52
     }
53 53
 
54 54
 
55
+    /**
56
+     * @param string[] $classes
57
+     */
55 58
     private function isParentClassOfAny(\ReflectionClass $parentClass, $classes)
56 59
     {
57 60
         $isSubClassOf = function ($class) use ($parentClass) {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 
55 55
     private function isParentClassOfAny(\ReflectionClass $parentClass, $classes)
56 56
     {
57
-        $isSubClassOf = function ($class) use ($parentClass) {
57
+        $isSubClassOf = function($class) use ($parentClass) {
58 58
             return $parentClass->name === $class || is_subclass_of($class, $parentClass->name, true);
59 59
         };
60 60
 
@@ -75,11 +75,11 @@  discard block
 block discarded – undo
75 75
      */
76 76
     private function classNameFromParameters(array $parameters)
77 77
     {
78
-        $strings = array_map(function (\ReflectionParameter $parameter) {
78
+        $strings = array_map(function(\ReflectionParameter $parameter) {
79 79
             return $this->classNameFromParameter($parameter);
80 80
         }, $parameters);
81 81
 
82
-        return array_filter($strings, function ($s) {
82
+        return array_filter($strings, function($s) {
83 83
             return !!$s;
84 84
         });
85 85
     }
Please login to merge, or discard this patch.