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 ( 73ae4f...2677a8 )
by Андрей
02:47
created
src/TypeResolver/ServiceTypeResolver/Util/ServiceUtil.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
     /**
20 20
      * @var array
21 21
      */
22
-    protected static $listArgumentForMethodCache = [];
22
+    protected static $listArgumentForMethodCache = [ ];
23 23
 
24 24
     /**
25 25
      * @param callable $service
@@ -54,17 +54,17 @@  discard block
 block discarded – undo
54 54
         $key = get_class($serviceObject) . '--' . $serviceMethod;
55 55
 
56 56
         if (array_key_exists($key, static::$listArgumentForMethodCache)) {
57
-            return static::$listArgumentForMethodCache[$key];
57
+            return static::$listArgumentForMethodCache[ $key ];
58 58
         }
59 59
 
60 60
         $r = new ReflectionObject($serviceObject);
61 61
         $rParameters = $r->getMethod($serviceMethod)->getParameters();
62 62
 
63
-        $arguments = [];
63
+        $arguments = [ ];
64 64
         foreach ($rParameters as $rParameter) {
65 65
             $position = $rParameter->getPosition();
66 66
 
67
-            $arguments[$position] = [
67
+            $arguments[ $position ] = [
68 68
                 'name' => $rParameter->getName(),
69 69
                 'defaultValue' => $rParameter->isDefaultValueAvailable() ? $rParameter->getDefaultValue() : null
70 70
             ];
@@ -72,9 +72,9 @@  discard block
 block discarded – undo
72 72
 
73 73
         ksort($arguments, SORT_NUMERIC);
74 74
 
75
-        $listArgument = [];
75
+        $listArgument = [ ];
76 76
         foreach ($arguments as $argument) {
77
-            $listArgument[$argument['name']] = $argument['defaultValue'];
77
+            $listArgument[ $argument[ 'name' ] ] = $argument[ 'defaultValue' ];
78 78
         }
79 79
 
80 80
         return $listArgument;
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      * @throws Exception\FunctionArgumentNotFoundException
95 95
      * @throws Exception\ArgumentNotFoundInTransientVarsException
96 96
      */
97
-    public function buildArgumentsForService(callable $service, MetadataInterface $metadata, TransientVarsInterface $transientVars, array $args = [])
97
+    public function buildArgumentsForService(callable $service, MetadataInterface $metadata, TransientVarsInterface $transientVars, array $args = [ ])
98 98
     {
99 99
         $listArgument = $this->getListArgumentForService($service);
100 100
 
@@ -110,14 +110,14 @@  discard block
 block discarded – undo
110 110
 //        }
111 111
 
112 112
 
113
-        $arguments = [];
113
+        $arguments = [ ];
114 114
         foreach ($listArgument as $name => $defaultValue) {
115 115
             if (array_key_exists($name, $args)) {
116
-                $arguments[$name] = $args[$name];
116
+                $arguments[ $name ] = $args[ $name ];
117 117
                 continue;
118 118
             }
119 119
 
120
-            $arguments[$name] = $defaultValue;
120
+            $arguments[ $name ] = $defaultValue;
121 121
         }
122 122
 
123 123
         return $arguments;
Please login to merge, or discard this patch.
src/Metadata/Storage/Metadata.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -38,14 +38,14 @@  discard block
 block discarded – undo
38 38
      *
39 39
      * @var array
40 40
      */
41
-    protected $resultMap = [];
41
+    protected $resultMap = [ ];
42 42
 
43 43
     /**
44 44
      * Хеши обеспечивающие уникальность данных используемых для маппинга результатов работы сервиса
45 45
      *
46 46
      * @var array
47 47
      */
48
-    protected $resultMapHash = [];
48
+    protected $resultMapHash = [ ];
49 49
 
50 50
     /**
51 51
      * Имя переменной в transientVars, в которую нужно сохранить результаты сервиса
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      */
67 67
     public function setResultVariableName($resultVariableName)
68 68
     {
69
-        $this->resultVariableName = (string)$resultVariableName;
69
+        $this->resultVariableName = (string) $resultVariableName;
70 70
 
71 71
         return $this;
72 72
     }
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      */
91 91
     public function setAllowOverrideResult($allowOverrideResult)
92 92
     {
93
-        $this->allowOverrideResult = (boolean)$allowOverrideResult;
93
+        $this->allowOverrideResult = (boolean) $allowOverrideResult;
94 94
 
95 95
         return $this;
96 96
     }
@@ -123,8 +123,8 @@  discard block
 block discarded – undo
123 123
         }
124 124
 
125 125
 
126
-        $this->resultMap[$item->getFrom()] = $item;
127
-        $this->resultMapHash[$key] = $key;
126
+        $this->resultMap[ $item->getFrom() ] = $item;
127
+        $this->resultMapHash[ $key ] = $key;
128 128
         $this->flagUseResultMap = true;
129 129
 
130 130
         return $this;
@@ -158,6 +158,6 @@  discard block
 block discarded – undo
158 158
             $errMsg = sprintf('Map for key %s not found', $from);
159 159
             throw new Exception\InvalidResultMapException($errMsg);
160 160
         }
161
-        return $this->resultMap[$from];
161
+        return $this->resultMap[ $from ];
162 162
     }
163 163
 }
Please login to merge, or discard this patch.