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 ( a469da...7bd346 )
by Андрей
02:47
created
src/ServiceEngine/Workflow.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -76,13 +76,13 @@  discard block
 block discarded – undo
76 76
             $errMsg = 'Argument serviceLocator not found';
77 77
             throw new Exception\InvalidArgumentException($errMsg);
78 78
         }
79
-        $this->setServiceLocator($options['serviceLocator']);
79
+        $this->setServiceLocator($options[ 'serviceLocator' ]);
80 80
 
81 81
         if (!array_key_exists('moduleOptions', $options)) {
82 82
             $errMsg = 'Argument moduleOptions not found';
83 83
             throw new Exception\InvalidArgumentException($errMsg);
84 84
         }
85
-        $this->setModuleOptions($options['moduleOptions']);
85
+        $this->setModuleOptions($options[ 'moduleOptions' ]);
86 86
     }
87 87
 
88 88
     /**
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
 
177 177
         $wf = $manager->getConfiguration()->getWorkflow($workflowName);
178 178
 
179
-        $findActions = [];
179
+        $findActions = [ ];
180 180
         foreach ($currentSteps as $currentStep) {
181 181
             $stepId = $currentStep->getStepId();
182 182
             $step = $wf->getStep($stepId);
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
 
185 185
             foreach ($actions as $action) {
186 186
                 if ($actionName === $action->getName()) {
187
-                    $findActions[] = $action;
187
+                    $findActions[ ] = $action;
188 188
                 }
189 189
             }
190 190
         }
@@ -196,8 +196,8 @@  discard block
 block discarded – undo
196 196
                 $managerName,
197 197
                 $workflowName,
198 198
                 $actionName,
199
-                implode(',', array_map(function ($action) {
200
-                    return is_object($action) && method_exists($action, 'getId') ? call_user_func([$action, 'getId']) : '';
199
+                implode(',', array_map(function($action) {
200
+                    return is_object($action) && method_exists($action, 'getId') ? call_user_func([ $action, 'getId' ]) : '';
201 201
                 }, $findActions))
202 202
             );
203 203
 
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
         }
325 325
         $workflowManagerServiceName = $this->getWorkflowManagerServiceName($managerName);
326 326
 
327
-        $manager =  $this->getServiceLocator()->get($workflowManagerServiceName);
327
+        $manager = $this->getServiceLocator()->get($workflowManagerServiceName);
328 328
 
329 329
         if (!$manager instanceof WorkflowInterface) {
330 330
             $errMsg = sprintf('Workflow manager not implement %s', WorkflowInterface::class);
@@ -345,7 +345,7 @@  discard block
 block discarded – undo
345 345
      */
346 346
     public function getActionByName(WorkflowDescriptor $wf, $actionName)
347 347
     {
348
-        $actionName = (string)$actionName;
348
+        $actionName = (string) $actionName;
349 349
 
350 350
         foreach ($wf->getGlobalActions() as $actionDescriptor) {
351 351
             if ($actionName === $actionDescriptor->getName()) {
@@ -412,7 +412,7 @@  discard block
 block discarded – undo
412 412
      */
413 413
     public function setWorkflowManagerServiceNamePattern($workflowManagerServiceNamePattern)
414 414
     {
415
-        $this->workflowManagerServiceNamePattern = (string)$workflowManagerServiceNamePattern;
415
+        $this->workflowManagerServiceNamePattern = (string) $workflowManagerServiceNamePattern;
416 416
 
417 417
         return $this;
418 418
     }
@@ -434,7 +434,7 @@  discard block
 block discarded – undo
434 434
             throw new Exception\InvalidWorkflowManagerAliasException($errMsg);
435 435
         }
436 436
 
437
-        return $aliasMap[$alias];
437
+        return $aliasMap[ $alias ];
438 438
     }
439 439
 
440 440
 
Please login to merge, or discard this patch.