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 ( 1461e3...b6a35f )
by Андрей
06:11
created
src/AbstractWorkflow.php 1 patch
Spacing   +17 added lines, -17 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
 
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
         $theResult = null;
303 303
 
304 304
 
305
-        $currentStepId = null !== $step ? $step->getStepId()  : -1;
305
+        $currentStepId = null !== $step ? $step->getStepId() : -1;
306 306
         foreach ($conditionalResults as $conditionalResult) {
307 307
             if ($this->passesConditionsWithType(null, $conditionalResult->getConditions(), $transientVars, $ps, $currentStepId)) {
308 308
                 $theResult = $conditionalResult;
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
         }
321 321
 
322 322
 
323
-        if (null ===  $theResult) {
323
+        if (null === $theResult) {
324 324
             $theResult = $action->getUnconditionalResult();
325 325
             $this->verifyInputs($entry, $theResult->getValidators(), $transientVars, $ps);
326 326
             $extraPreFunctions = $theResult->getPreFunctions();
@@ -707,15 +707,15 @@  discard block
 block discarded – undo
707 707
 
708 708
             if (null !== $owner) {
709 709
                 $o = $variableResolver->translateVariables($owner, $transientVars, $ps);
710
-                $owner = null !== $o ? (string)$o : null;
710
+                $owner = null !== $o ? (string) $o : null;
711 711
             }
712 712
 
713 713
 
714 714
             $oldStatus = $theResult->getOldStatus();
715
-            $oldStatus = (string)$variableResolver->translateVariables($oldStatus, $transientVars, $ps);
715
+            $oldStatus = (string) $variableResolver->translateVariables($oldStatus, $transientVars, $ps);
716 716
 
717 717
             $status = $theResult->getStatus();
718
-            $status = (string)$variableResolver->translateVariables($status, $transientVars, $ps);
718
+            $status = (string) $variableResolver->translateVariables($status, $transientVars, $ps);
719 719
 
720 720
 
721 721
             if (null !== $currentStep) {
@@ -726,7 +726,7 @@  discard block
 block discarded – undo
726 726
             $startDate = new DateTime();
727 727
             $dueDate = null;
728 728
 
729
-            $theResultDueDate = (string)$theResult->getDueDate();
729
+            $theResultDueDate = (string) $theResult->getDueDate();
730 730
             $theResultDueDate = trim($theResultDueDate);
731 731
             if (strlen($theResultDueDate) > 0) {
732 732
                 $dueDateObject = $variableResolver->translateVariables($theResultDueDate, $transientVars, $ps);
@@ -744,15 +744,15 @@  discard block
 block discarded – undo
744 744
             }
745 745
 
746 746
             $newStep = $store->createCurrentStep($entry->getId(), $nextStep, $owner, $startDate, $dueDate, $status, $previousIds);
747
-            $transientVars['createdStep'] =  $newStep;
747
+            $transientVars['createdStep'] = $newStep;
748 748
 
749 749
             if (null === $currentStep && 0 === count($previousIds)) {
750 750
                 $currentSteps = [];
751 751
                 $currentSteps[] = $newStep;
752
-                $transientVars['currentSteps'] =  $currentSteps;
752
+                $transientVars['currentSteps'] = $currentSteps;
753 753
             }
754 754
 
755
-            if (! $transientVars->offsetExists('descriptor')) {
755
+            if (!$transientVars->offsetExists('descriptor')) {
756 756
                 $errMsg = 'Ошибка при получение дескриптора workflow из transientVars';
757 757
                 throw new InternalWorkflowException($errMsg);
758 758
             }
@@ -813,7 +813,7 @@  discard block
 block discarded – undo
813 813
      */
814 814
     public function doAction($id, $actionId, TransientVarsInterface $inputs = null)
815 815
     {
816
-        $actionId = (integer)$actionId;
816
+        $actionId = (integer) $actionId;
817 817
         if (null === $inputs) {
818 818
             $inputs = $this->transientVarsFactory();
819 819
         }
@@ -1258,7 +1258,7 @@  discard block
 block discarded – undo
1258 1258
         }
1259 1259
 
1260 1260
 
1261
-        $result = (boolean)$result;
1261
+        $result = (boolean) $result;
1262 1262
 
1263 1263
         return $result;
1264 1264
     }
@@ -1645,9 +1645,9 @@  discard block
 block discarded – undo
1645 1645
             return $l;
1646 1646
         }
1647 1647
 
1648
-        $actions  = $s->getActions();
1648
+        $actions = $s->getActions();
1649 1649
 
1650
-        if (null === $actions || 0  === $actions->count()) {
1650
+        if (null === $actions || 0 === $actions->count()) {
1651 1651
             return $l;
1652 1652
         }
1653 1653
 
@@ -1954,7 +1954,7 @@  discard block
 block discarded – undo
1954 1954
      */
1955 1955
     public function setDefaultTypeResolverClass($defaultTypeResolverClass)
1956 1956
     {
1957
-        $this->defaultTypeResolverClass = (string)$defaultTypeResolverClass;
1957
+        $this->defaultTypeResolverClass = (string) $defaultTypeResolverClass;
1958 1958
 
1959 1959
         return $this;
1960 1960
     }
@@ -2015,7 +2015,7 @@  discard block
 block discarded – undo
2015 2015
         foreach ($conditions as $descriptor) {
2016 2016
             if ($descriptor instanceof ConditionsDescriptor) {
2017 2017
                 $result = $this->passesConditionsWithType($descriptor->getType(), $descriptor->getConditions(), $transientVars, $ps, $currentStepId);
2018
-            } elseif ($descriptor instanceof ConditionDescriptor )  {
2018
+            } elseif ($descriptor instanceof ConditionDescriptor) {
2019 2019
                 $result = $this->passesCondition($descriptor, $transientVars, $ps, $currentStepId);
2020 2020
             } else {
2021 2021
                 $errMsg = 'Invalid condition descriptor';
@@ -2061,7 +2061,7 @@  discard block
 block discarded – undo
2061 2061
         }
2062 2062
 
2063 2063
         if (-1 !== $currentStepId) {
2064
-            $stepId = array_key_exists('stepId', $args) ? (integer)$args['stepId'] : null;
2064
+            $stepId = array_key_exists('stepId', $args) ? (integer) $args['stepId'] : null;
2065 2065
 
2066 2066
             if (null !== $stepId && -1 === $stepId) {
2067 2067
                 $args['stepId'] = $currentStepId;
Please login to merge, or discard this patch.