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 ( d2ff93...4b56a1 )
by Constantin
02:26
created
src/Gica/CodeAnalysis/AggregateEventHandlersValidator.php 2 patches
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 
40 40
     /**
41 41
      * @param string $filePath
42
-     * @return bool
42
+     * @return integer
43 43
      */
44 44
     protected function isListenerFileName($filePath)
45 45
     {
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
     }
89 89
 
90 90
     /**
91
-     * @param $className
91
+     * @param string $className
92 92
      * @throws \Exception
93 93
      */
94 94
     private function validateEventHandlersInClass($className)
@@ -143,6 +143,9 @@  discard block
 block discarded – undo
143 143
         return 0 === stripos($reflectionMethod->getName(), 'apply');
144 144
     }
145 145
 
146
+    /**
147
+     * @param string $content
148
+     */
146 149
     private function evaluateCode($content)
147 150
     {
148 151
         $content = str_replace('<?php', '', $content);
Please login to merge, or discard this 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
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 
72 72
     /**
73 73
      * @param string $filePath
74
-     * @return bool
74
+     * @return integer
75 75
      */
76 76
     protected function isListenerFileName($filePath)
77 77
     {
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
     }
154 154
 
155 155
     /**
156
-     * @param $className
156
+     * @param string $className
157 157
      * @return ListenerMethod[]
158 158
      */
159 159
     private function findListenerMethodsInClass($className)
@@ -214,6 +214,9 @@  discard block
 block discarded – undo
214 214
         return $this->messageClassDetector->isMessageClass($typeHintedClass);
215 215
     }
216 216
 
217
+    /**
218
+     * @param string $content
219
+     */
217 220
     private function evaluateCode($content)
218 221
     {
219 222
         $content = str_replace('<?php', '', $content);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
127 127
      */
128 128
     private function sortListeners($listeners)
129 129
     {
130
-        usort($listeners, function (ListenerMethod $a, ListenerMethod $b) {
130
+        usort($listeners, function(ListenerMethod $a, ListenerMethod $b) {
131 131
             return $this->classSorter->__invoke($a->getClass(), $b->getClass());
132 132
         });
133 133
 
Please login to merge, or discard this patch.
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -97,8 +97,9 @@  discard block
 block discarded – undo
97 97
         }
98 98
 
99 99
         $namespace = $m['namespace'];
100
-        if ($namespace)
101
-            $namespace = '\\' . $namespace;
100
+        if ($namespace) {
101
+                    $namespace = '\\' . $namespace;
102
+        }
102 103
 
103 104
 
104 105
         $fqn = $namespace . '\\' . $unqualifiedClassName;
@@ -203,8 +204,9 @@  discard block
 block discarded – undo
203 204
 
204 205
     private function isValidListenerMethod(\ReflectionMethod $reflectionMethod)
205 206
     {
206
-        if ($reflectionMethod->getNumberOfParameters() == 0)
207
-            return false;
207
+        if ($reflectionMethod->getNumberOfParameters() == 0) {
208
+                    return false;
209
+        }
208 210
 
209 211
         return true;
210 212
     }
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 searchClass(\ReflectionClass $a, $classes)
56 59
     {
57 60
         foreach ($classes as $class) {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,11 +74,11 @@
 block discarded – undo
74 74
      */
75 75
     private function classNameFromParameters(array $parameters)
76 76
     {
77
-        $strings = array_map(function (\ReflectionParameter $parameter) {
77
+        $strings = array_map(function(\ReflectionParameter $parameter) {
78 78
             return $this->classNameFromParameter($parameter);
79 79
         }, $parameters);
80 80
 
81
-        return array_filter($strings, function ($s) {
81
+        return array_filter($strings, function($s) {
82 82
             return !!$s;
83 83
         });
84 84
     }
Please login to merge, or discard this patch.
src/Gica/CodeAnalysis/MethodListenerDiscovery/ListenerMethod.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -17,6 +17,9 @@
 block discarded – undo
17 17
      */
18 18
     private $class;
19 19
 
20
+    /**
21
+     * @param string $methodName
22
+     */
20 23
     public function __construct(
21 24
         \ReflectionClass
22 25
         $class, $methodName, $eventClassName
Please login to merge, or discard this patch.
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 2 patches
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.
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.