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 ( 7335de...98e7aa )
by Андрей
02:22
created
src/ServiceEngine/Workflow.php 1 patch
Spacing   +12 added lines, -12 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
     /**
@@ -173,14 +173,14 @@  discard block
 block discarded – undo
173 173
 
174 174
         $wf = $manager->getConfiguration()->getWorkflow($workflowName);
175 175
 
176
-        $findActions = [];
176
+        $findActions = [ ];
177 177
         foreach ($currentSteps as $currentStep) {
178 178
             $stepId = $currentStep->getStepId();
179 179
             $step = $wf->getStep($stepId);
180 180
             $actions = $step->getActions();
181 181
 
182 182
             foreach ($actions as $action) {
183
-                $findActions[] = $action;
183
+                $findActions[ ] = $action;
184 184
             }
185 185
         }
186 186
 
@@ -207,10 +207,10 @@  discard block
 block discarded – undo
207 207
     public function findActionByNameForEntry($managerName, $entryId, $actionName)
208 208
     {
209 209
         $actions = $this->getAvailableActions($managerName, $entryId);
210
-        $findActions = [];
210
+        $findActions = [ ];
211 211
         foreach ($actions as $action) {
212 212
             if ($actionName === $action->getName()) {
213
-                $findActions[] = $action;
213
+                $findActions[ ] = $action;
214 214
             }
215 215
         }
216 216
 
@@ -221,8 +221,8 @@  discard block
 block discarded – undo
221 221
                 'Found more than one action workflow. Manager name: %s. Name action: %s. Ids: %s',
222 222
                 $managerName,
223 223
                 $actionName,
224
-                implode(',', array_map(function ($action) {
225
-                    return is_object($action) && method_exists($action, 'getId') ? call_user_func([$action, 'getId']) : '';
224
+                implode(',', array_map(function($action) {
225
+                    return is_object($action) && method_exists($action, 'getId') ? call_user_func([ $action, 'getId' ]) : '';
226 226
                 }, $findActions))
227 227
             );
228 228
 
@@ -349,7 +349,7 @@  discard block
 block discarded – undo
349 349
         }
350 350
         $workflowManagerServiceName = $this->getWorkflowManagerServiceName($managerName);
351 351
 
352
-        $manager =  $this->getServiceLocator()->get($workflowManagerServiceName);
352
+        $manager = $this->getServiceLocator()->get($workflowManagerServiceName);
353 353
 
354 354
         if (!$manager instanceof WorkflowInterface) {
355 355
             $errMsg = sprintf('Workflow manager not implement %s', WorkflowInterface::class);
@@ -370,7 +370,7 @@  discard block
 block discarded – undo
370 370
      */
371 371
     public function getActionByName(WorkflowDescriptor $wf, $actionName)
372 372
     {
373
-        $actionName = (string)$actionName;
373
+        $actionName = (string) $actionName;
374 374
 
375 375
         foreach ($wf->getGlobalActions() as $actionDescriptor) {
376 376
             if ($actionName === $actionDescriptor->getName()) {
@@ -437,7 +437,7 @@  discard block
 block discarded – undo
437 437
      */
438 438
     public function setWorkflowManagerServiceNamePattern($workflowManagerServiceNamePattern)
439 439
     {
440
-        $this->workflowManagerServiceNamePattern = (string)$workflowManagerServiceNamePattern;
440
+        $this->workflowManagerServiceNamePattern = (string) $workflowManagerServiceNamePattern;
441 441
 
442 442
         return $this;
443 443
     }
@@ -459,7 +459,7 @@  discard block
 block discarded – undo
459 459
             throw new Exception\InvalidWorkflowManagerAliasException($errMsg);
460 460
         }
461 461
 
462
-        return $aliasMap[$alias];
462
+        return $aliasMap[ $alias ];
463 463
     }
464 464
 
465 465
 
Please login to merge, or discard this patch.