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 ( 2441e9...bd6cbe )
by Андрей
05:34
created
src/AbstractWorkflow.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
     public function initialize($workflowName, $initialAction, TransientVarsInterface $inputs = null)
120 120
     {
121 121
         try {
122
-            $initialAction = (integer)$initialAction;
122
+            $initialAction = (integer) $initialAction;
123 123
 
124 124
             $wf = $this->getConfiguration()->getWorkflow($workflowName);
125 125
 
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
         $theResult = null;
298 298
 
299 299
 
300
-        $currentStepId = null !== $step ? $step->getStepId()  : -1;
300
+        $currentStepId = null !== $step ? $step->getStepId() : -1;
301 301
         foreach ($conditionalResults as $conditionalResult) {
302 302
             if ($this->passesConditionsWithType(null, $conditionalResult->getConditions(), $transientVars, $ps, $currentStepId)) {
303 303
                 $theResult = $conditionalResult;
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
         }
316 316
 
317 317
 
318
-        if (null ===  $theResult) {
318
+        if (null === $theResult) {
319 319
             $theResult = $action->getUnconditionalResult();
320 320
             $this->verifyInputs($entry, $theResult->getValidators(), $transientVars, $ps);
321 321
             $extraPreFunctions = $theResult->getPreFunctions();
@@ -696,15 +696,15 @@  discard block
 block discarded – undo
696 696
 
697 697
             if (null !== $owner) {
698 698
                 $o = $variableResolver->translateVariables($owner, $transientVars, $ps);
699
-                $owner = null !== $o ? (string)$o : null;
699
+                $owner = null !== $o ? (string) $o : null;
700 700
             }
701 701
 
702 702
 
703 703
             $oldStatus = $theResult->getOldStatus();
704
-            $oldStatus = (string)$variableResolver->translateVariables($oldStatus, $transientVars, $ps);
704
+            $oldStatus = (string) $variableResolver->translateVariables($oldStatus, $transientVars, $ps);
705 705
 
706 706
             $status = $theResult->getStatus();
707
-            $status = (string)$variableResolver->translateVariables($status, $transientVars, $ps);
707
+            $status = (string) $variableResolver->translateVariables($status, $transientVars, $ps);
708 708
 
709 709
 
710 710
             if (null !== $currentStep) {
@@ -715,7 +715,7 @@  discard block
 block discarded – undo
715 715
             $startDate = new DateTime();
716 716
             $dueDate = null;
717 717
 
718
-            $theResultDueDate = (string)$theResult->getDueDate();
718
+            $theResultDueDate = (string) $theResult->getDueDate();
719 719
             $theResultDueDate = trim($theResultDueDate);
720 720
             if (strlen($theResultDueDate) > 0) {
721 721
                 $dueDateObject = $variableResolver->translateVariables($theResultDueDate, $transientVars, $ps);
@@ -733,15 +733,15 @@  discard block
 block discarded – undo
733 733
             }
734 734
 
735 735
             $newStep = $store->createCurrentStep($entry->getId(), $nextStep, $owner, $startDate, $dueDate, $status, $previousIds);
736
-            $transientVars['createdStep'] =  $newStep;
736
+            $transientVars['createdStep'] = $newStep;
737 737
 
738 738
             if (null === $currentStep && 0 === count($previousIds)) {
739 739
                 $currentSteps = [];
740 740
                 $currentSteps[] = $newStep;
741
-                $transientVars['currentSteps'] =  $currentSteps;
741
+                $transientVars['currentSteps'] = $currentSteps;
742 742
             }
743 743
 
744
-            if (! $transientVars->offsetExists('descriptor')) {
744
+            if (!$transientVars->offsetExists('descriptor')) {
745 745
                 $errMsg = 'Ошибка при получение дескриптора workflow из transientVars';
746 746
                 throw new InternalWorkflowException($errMsg);
747 747
             }
@@ -801,7 +801,7 @@  discard block
 block discarded – undo
801 801
      */
802 802
     public function doAction($id, $actionId, TransientVarsInterface $inputs = null)
803 803
     {
804
-        $actionId = (integer)$actionId;
804
+        $actionId = (integer) $actionId;
805 805
         if (null === $inputs) {
806 806
             $inputs = $this->transientVarsFactory();
807 807
         }
@@ -1242,7 +1242,7 @@  discard block
 block discarded – undo
1242 1242
         }
1243 1243
 
1244 1244
 
1245
-        $result = (boolean)$result;
1245
+        $result = (boolean) $result;
1246 1246
 
1247 1247
         return $result;
1248 1248
     }
@@ -1629,9 +1629,9 @@  discard block
 block discarded – undo
1629 1629
             return $l;
1630 1630
         }
1631 1631
 
1632
-        $actions  = $s->getActions();
1632
+        $actions = $s->getActions();
1633 1633
 
1634
-        if (null === $actions || 0  === $actions->count()) {
1634
+        if (null === $actions || 0 === $actions->count()) {
1635 1635
             return $l;
1636 1636
         }
1637 1637
 
@@ -1938,7 +1938,7 @@  discard block
 block discarded – undo
1938 1938
      */
1939 1939
     public function setDefaultTypeResolverClass($defaultTypeResolverClass)
1940 1940
     {
1941
-        $this->defaultTypeResolverClass = (string)$defaultTypeResolverClass;
1941
+        $this->defaultTypeResolverClass = (string) $defaultTypeResolverClass;
1942 1942
 
1943 1943
         return $this;
1944 1944
     }
@@ -2042,7 +2042,7 @@  discard block
 block discarded – undo
2042 2042
         }
2043 2043
 
2044 2044
         if (-1 !== $currentStepId) {
2045
-            $stepId = array_key_exists('stepId', $args) ? (integer)$args['stepId'] : null;
2045
+            $stepId = array_key_exists('stepId', $args) ? (integer) $args['stepId'] : null;
2046 2046
 
2047 2047
             if (null !== $stepId && -1 === $stepId) {
2048 2048
                 $args['stepId'] = $currentStepId;
Please login to merge, or discard this patch.