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 ( 59446a...77a017 )
by Constantin
02:32
created
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.
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.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 
61 61
     /**
62 62
      * @param string $filePath
63
-     * @return bool
63
+     * @return integer
64 64
      */
65 65
     protected function isListenerFileName($filePath)
66 66
     {
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
     }
104 104
 
105 105
     /**
106
-     * @param $className
106
+     * @param string $className
107 107
      * @return \ReflectionClass|null
108 108
      */
109 109
     private function getClassIfAccepted($className)
Please login to merge, or discard this patch.
src/Gica/CodeAnalysis/AggregateEventHandlersValidator.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 
46 46
     /**
47 47
      * @param string $filePath
48
-     * @return bool
48
+     * @return integer
49 49
      */
50 50
     protected function isListenerFileName($filePath)
51 51
     {
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     }
76 76
 
77 77
     /**
78
-     * @param $className
78
+     * @param string $className
79 79
      * @throws \Exception
80 80
      */
81 81
     private function validateEventHandlersInClass($className)
Please login to merge, or discard this patch.
src/Gica/CodeAnalysis/MethodListenerDiscovery.php 3 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 
78 78
     /**
79 79
      * @param string $filePath
80
-     * @return bool
80
+     * @return integer
81 81
      */
82 82
     protected function isListenerFileName($filePath)
83 83
     {
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
     }
145 145
 
146 146
     /**
147
-     * @param $className
147
+     * @param string $className
148 148
      * @return ListenerMethod[]
149 149
      */
150 150
     private function findListenerMethodsInClass($className)
Please login to merge, or discard this patch.
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.
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.