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 — dev ( 0e2293...50b419 )
by Андрей
18:34 queued 08:01
created
src/TypeResolver/ServiceTypeResolver/AbstractWrapper.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @link https://github.com/old-town/workflow-zf2-service
4
- * @author  Malofeykin Andrey  <[email protected]>
5
- */
3
+     * @link https://github.com/old-town/workflow-zf2-service
4
+     * @author  Malofeykin Andrey  <[email protected]>
5
+     */
6 6
 namespace OldTown\Workflow\ZF2\Service\TypeResolver\ServiceTypeResolver;
7 7
 
8 8
 use OldTown\Workflow\ZF2\Service\TypeResolver\ServiceTypeResolver\Util\ServiceUtil;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@
 block discarded – undo
130 130
      */
131 131
     public function setServiceUtilClassName($serviceUtilClassName)
132 132
     {
133
-        $this->serviceUtilClassName = (string)$serviceUtilClassName;
133
+        $this->serviceUtilClassName = (string) $serviceUtilClassName;
134 134
         $this->serviceUtil = null;
135 135
 
136 136
         return $this;
Please login to merge, or discard this patch.
src/TypeResolver/ServiceTypeResolver/Util/ServiceUtilInterface.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @link https://github.com/old-town/workflow-zf2-service
4
- * @author  Malofeykin Andrey  <[email protected]>
5
- */
3
+     * @link https://github.com/old-town/workflow-zf2-service
4
+     * @author  Malofeykin Andrey  <[email protected]>
5
+     */
6 6
 namespace OldTown\Workflow\ZF2\Service\TypeResolver\ServiceTypeResolver\Util;
7 7
 
8 8
 use OldTown\Workflow\TransientVars\TransientVarsInterface;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,5 +33,5 @@
 block discarded – undo
33 33
      *
34 34
      * @return array
35 35
      */
36
-    public function buildArgumentsForService(callable $service, MetadataInterface $metadata, TransientVarsInterface $transientVars, array $args = []);
36
+    public function buildArgumentsForService(callable $service, MetadataInterface $metadata, TransientVarsInterface $transientVars, array $args = [ ]);
37 37
 }
Please login to merge, or discard this patch.
ServiceTypeResolver/Util/Exception/InvalidArgumentException.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @link https://github.com/old-town/workflow-zf2-service
4
- * @author  Malofeykin Andrey  <[email protected]>
5
- */
3
+     * @link https://github.com/old-town/workflow-zf2-service
4
+     * @author  Malofeykin Andrey  <[email protected]>
5
+     */
6 6
 namespace  OldTown\Workflow\ZF2\Service\TypeResolver\ServiceTypeResolver\Util\Exception;
7 7
 
8 8
 use \OldTown\Workflow\ZF2\Service\TypeResolver\ServiceTypeResolver\Exception\InvalidArgumentException as Exception;
Please login to merge, or discard this patch.
src/TypeResolver/ServiceTypeResolver/Util/Exception/RuntimeException.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @link https://github.com/old-town/workflow-zf2-service
4
- * @author  Malofeykin Andrey  <[email protected]>
5
- */
3
+     * @link https://github.com/old-town/workflow-zf2-service
4
+     * @author  Malofeykin Andrey  <[email protected]>
5
+     */
6 6
 namespace  OldTown\Workflow\ZF2\Service\TypeResolver\ServiceTypeResolver\Util\Exception;
7 7
 
8 8
 use \OldTown\Workflow\ZF2\Service\TypeResolver\ServiceTypeResolver\Exception\RuntimeException as Exception;
Please login to merge, or discard this patch.
Util/Exception/ArgumentNotFoundInTransientVarsException.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @link https://github.com/old-town/workflow-zf2-service
4
- * @author  Malofeykin Andrey  <[email protected]>
5
- */
3
+     * @link https://github.com/old-town/workflow-zf2-service
4
+     * @author  Malofeykin Andrey  <[email protected]>
5
+     */
6 6
 namespace  OldTown\Workflow\ZF2\Service\TypeResolver\ServiceTypeResolver\Util\Exception;
7 7
 
8 8
 /**
Please login to merge, or discard this patch.
src/TypeResolver/ServiceTypeResolver/Util/ServiceUtil.php 1 patch
Spacing   +14 added lines, -14 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
 
@@ -112,30 +112,30 @@  discard block
 block discarded – undo
112 112
 //        }
113 113
 
114 114
 
115
-        $arguments = [];
115
+        $arguments = [ ];
116 116
         foreach ($listArgument as $name => $defaultValue) {
117 117
             if (array_key_exists($name, $argumentsMap)) {
118
-                $argName = $argumentsMap[$name];
118
+                $argName = $argumentsMap[ $name ];
119 119
                 if (array_key_exists($argName, $args)) {
120
-                    $key = $args[$argName];
120
+                    $key = $args[ $argName ];
121 121
                     if ($transientVars->offsetExists($key)) {
122
-                        $arguments[$name] = $transientVars[$key];
122
+                        $arguments[ $name ] = $transientVars[ $key ];
123 123
                         continue;
124 124
                     }
125 125
                 }
126 126
             }
127 127
 
128 128
             if ($transientVars->offsetExists($name)) {
129
-                $arguments[$name] = $transientVars[$name];
129
+                $arguments[ $name ] = $transientVars[ $name ];
130 130
                 continue;
131 131
             }
132 132
 
133 133
             if (array_key_exists($name, $args)) {
134
-                $arguments[$name] = $args[$name];
134
+                $arguments[ $name ] = $args[ $name ];
135 135
                 continue;
136 136
             }
137 137
 
138
-            $arguments[$name] = $defaultValue;
138
+            $arguments[ $name ] = $defaultValue;
139 139
         }
140 140
 
141 141
         return $arguments;
Please login to merge, or discard this patch.
src/TypeResolver/ServiceTypeResolver.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @link https://github.com/old-town/workflow-zf2-service
4
- * @author  Malofeykin Andrey  <[email protected]>
5
- */
3
+     * @link https://github.com/old-town/workflow-zf2-service
4
+     * @author  Malofeykin Andrey  <[email protected]>
5
+     */
6 6
 namespace OldTown\Workflow\ZF2\Service\TypeResolver;
7 7
 
8 8
 use OldTown\Workflow\ConditionInterface;
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -51,9 +51,9 @@  discard block
 block discarded – undo
51 51
     /**
52 52
      * @param array $options
53 53
      */
54
-    public function __construct(array $options = [])
54
+    public function __construct(array $options = [ ])
55 55
     {
56
-        call_user_func_array([$this, 'init'], $options);
56
+        call_user_func_array([ $this, 'init' ], $options);
57 57
     }
58 58
 
59 59
     /**
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      *
75 75
      * @throws Exception\ErrorCreatingValidatorException
76 76
      */
77
-    public function getValidator($type, array $args = [])
77
+    public function getValidator($type, array $args = [ ])
78 78
     {
79 79
         try {
80 80
             $wrapper = $this->wrapperFactory($type, $args, ServiceTypeResolver\ValidatorWrapper::class);
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
      *
93 93
      * @throws Exception\ErrorCreatingRegisterException
94 94
      */
95
-    public function getRegister($type, array $args = [])
95
+    public function getRegister($type, array $args = [ ])
96 96
     {
97 97
         try {
98 98
             $wrapper = $this->wrapperFactory($type, $args, ServiceTypeResolver\RegisterWrapper::class);
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
      *
111 111
      * @throws Exception\ErrorCreatingFunctionException
112 112
      */
113
-    public function getFunction($type, array $args = [])
113
+    public function getFunction($type, array $args = [ ])
114 114
     {
115 115
         try {
116 116
             $wrapper = $this->wrapperFactory($type, $args, ServiceTypeResolver\FunctionWrapper::class);
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
      *
129 129
      * @throws Exception\ErrorCreatingConditionException
130 130
      */
131
-    public function getCondition($type, array $args = [])
131
+    public function getCondition($type, array $args = [ ])
132 132
     {
133 133
         try {
134 134
             $wrapper = $this->wrapperFactory($type, $args, ServiceTypeResolver\ConditionWrapper::class);
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
      * @throws \Zend\ServiceManager\Exception\RuntimeException
168 168
      * @throws Exception\InvalidServiceException
169 169
      */
170
-    protected function wrapperFactory($type, array $args = [], $classWrapper)
170
+    protected function wrapperFactory($type, array $args = [ ], $classWrapper)
171 171
     {
172 172
         if (static::SERVICE_TYPE !== $type) {
173 173
             return null;
@@ -177,16 +177,16 @@  discard block
 block discarded – undo
177 177
             $errMsg = sprintf('Argument %s not found', static::SERVICE_NAME);
178 178
             throw new Exception\InvalidServiceNameException($errMsg);
179 179
         }
180
-        $serviceName = $args[static::SERVICE_NAME];
180
+        $serviceName = $args[ static::SERVICE_NAME ];
181 181
 
182 182
         if (!array_key_exists(static::SERVICE_METHOD, $args)) {
183 183
             $errMsg = sprintf('Argument %s not found', static::SERVICE_METHOD);
184 184
             throw new Exception\InvalidServiceNameException($errMsg);
185 185
         }
186
-        $serviceMethod = $args[static::SERVICE_METHOD];
186
+        $serviceMethod = $args[ static::SERVICE_METHOD ];
187 187
 
188 188
         $service = $this->getWorkflowServiceManager()->get($serviceName);
189
-        $serviceCallback = [$service, $serviceMethod];
189
+        $serviceCallback = [ $service, $serviceMethod ];
190 190
 
191 191
         if (!is_callable($serviceCallback)) {
192 192
             $errMsg = sprintf('Service name %s and method %s', $serviceName, $serviceMethod);
Please login to merge, or discard this patch.
src/TypeResolver/ChainTypeResolverInterface.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @link https://github.com/old-town/workflow-zf2-service
4
- * @author  Malofeykin Andrey  <[email protected]>
5
- */
3
+     * @link https://github.com/old-town/workflow-zf2-service
4
+     * @author  Malofeykin Andrey  <[email protected]>
5
+     */
6 6
 namespace OldTown\Workflow\ZF2\Service\TypeResolver;
7 7
 
8 8
 use OldTown\Workflow\TypeResolverInterface;
Please login to merge, or discard this patch.
src/TypeResolver/Exception/InvalidArgumentException.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @link https://github.com/old-town/workflow-zf2-service
4
- * @author  Malofeykin Andrey  <[email protected]>
5
- */
3
+     * @link https://github.com/old-town/workflow-zf2-service
4
+     * @author  Malofeykin Andrey  <[email protected]>
5
+     */
6 6
 namespace  OldTown\Workflow\ZF2\Service\TypeResolver\Exception;
7 7
 
8 8
 use OldTown\Workflow\ZF2\Service\Exception\InvalidArgumentException as Exception;
Please login to merge, or discard this patch.