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 ( 88ddda...b22d9d )
by Constantin
03:36
created
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.
src/Gica/CodeAnalysis/MethodListenerDiscovery/MapGrouper/GrouperByEvent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
     {
40 40
         $classSorter = new ByConstructorDependencySorter();
41 41
 
42
-        usort($listeners, function (ListenerMethod $a, ListenerMethod $b) use ($classSorter) {
42
+        usort($listeners, function(ListenerMethod $a, ListenerMethod $b) use ($classSorter) {
43 43
             return $classSorter->__invoke($a->getClass(), $b->getClass());
44 44
         });
45 45
 
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/Shared/ClassSorter/ByConstructorDependencySorter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     {
52 52
         $comparator = new SubclassComparator();
53 53
 
54
-        $isASubClassOrSameClass = function ($class) use ($parentClass, $comparator) {
54
+        $isASubClassOrSameClass = function($class) use ($parentClass, $comparator) {
55 55
 
56 56
             return $comparator->isASubClassOrSameClass($class, $parentClass->name);
57 57
         };
@@ -73,11 +73,11 @@  discard block
 block discarded – undo
73 73
      */
74 74
     private function classNameFromParameters(array $parameters)
75 75
     {
76
-        $strings = array_map(function (\ReflectionParameter $parameter) {
76
+        $strings = array_map(function(\ReflectionParameter $parameter) {
77 77
             return $this->classNameFromParameter($parameter);
78 78
         }, $parameters);
79 79
 
80
-        return array_filter($strings, function ($s) {
80
+        return array_filter($strings, function($s) {
81 81
             return !!$s;
82 82
         });
83 83
     }
Please login to merge, or discard this patch.