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.
Passed
Branch dev (5375e1)
by Андрей
17:41
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
 
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
         $theResult = null;
297 297
 
298 298
 
299
-        $currentStepId = null !== $step ? $step->getStepId()  : -1;
299
+        $currentStepId = null !== $step ? $step->getStepId() : -1;
300 300
         foreach ($conditionalResults as $conditionalResult) {
301 301
             if ($this->passesConditionsWithType(null, $conditionalResult->getConditions(), $transientVars, $ps, $currentStepId)) {
302 302
                 $theResult = $conditionalResult;
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
         }
315 315
 
316 316
 
317
-        if (null ===  $theResult) {
317
+        if (null === $theResult) {
318 318
             $theResult = $action->getUnconditionalResult();
319 319
             $this->verifyInputs($entry, $theResult->getValidators(), $transientVars, $ps);
320 320
             $extraPreFunctions = $theResult->getPreFunctions();
@@ -695,15 +695,15 @@  discard block
 block discarded – undo
695 695
 
696 696
             if (null !== $owner) {
697 697
                 $o = $variableResolver->translateVariables($owner, $transientVars, $ps);
698
-                $owner = null !== $o ? (string)$o : null;
698
+                $owner = null !== $o ? (string) $o : null;
699 699
             }
700 700
 
701 701
 
702 702
             $oldStatus = $theResult->getOldStatus();
703
-            $oldStatus = (string)$variableResolver->translateVariables($oldStatus, $transientVars, $ps);
703
+            $oldStatus = (string) $variableResolver->translateVariables($oldStatus, $transientVars, $ps);
704 704
 
705 705
             $status = $theResult->getStatus();
706
-            $status = (string)$variableResolver->translateVariables($status, $transientVars, $ps);
706
+            $status = (string) $variableResolver->translateVariables($status, $transientVars, $ps);
707 707
 
708 708
 
709 709
             if (null !== $currentStep) {
@@ -714,7 +714,7 @@  discard block
 block discarded – undo
714 714
             $startDate = new DateTime();
715 715
             $dueDate = null;
716 716
 
717
-            $theResultDueDate = (string)$theResult->getDueDate();
717
+            $theResultDueDate = (string) $theResult->getDueDate();
718 718
             $theResultDueDate = trim($theResultDueDate);
719 719
             if (strlen($theResultDueDate) > 0) {
720 720
                 $dueDateObject = $variableResolver->translateVariables($theResultDueDate, $transientVars, $ps);
@@ -732,15 +732,15 @@  discard block
 block discarded – undo
732 732
             }
733 733
 
734 734
             $newStep = $store->createCurrentStep($entry->getId(), $nextStep, $owner, $startDate, $dueDate, $status, $previousIds);
735
-            $transientVars['createdStep'] =  $newStep;
735
+            $transientVars['createdStep'] = $newStep;
736 736
 
737 737
             if (null === $currentStep && 0 === count($previousIds)) {
738 738
                 $currentSteps = [];
739 739
                 $currentSteps[] = $newStep;
740
-                $transientVars['currentSteps'] =  $currentSteps;
740
+                $transientVars['currentSteps'] = $currentSteps;
741 741
             }
742 742
 
743
-            if (! $transientVars->offsetExists('descriptor')) {
743
+            if (!$transientVars->offsetExists('descriptor')) {
744 744
                 $errMsg = 'Ошибка при получение дескриптора workflow из transientVars';
745 745
                 throw new InternalWorkflowException($errMsg);
746 746
             }
@@ -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
         }
@@ -1243,7 +1243,7 @@  discard block
 block discarded – undo
1243 1243
         }
1244 1244
 
1245 1245
 
1246
-        $result = (boolean)$result;
1246
+        $result = (boolean) $result;
1247 1247
 
1248 1248
         return $result;
1249 1249
     }
@@ -1635,9 +1635,9 @@  discard block
 block discarded – undo
1635 1635
             return $l;
1636 1636
         }
1637 1637
 
1638
-        $actions  = $s->getActions();
1638
+        $actions = $s->getActions();
1639 1639
 
1640
-        if (null === $actions || 0  === $actions->count()) {
1640
+        if (null === $actions || 0 === $actions->count()) {
1641 1641
             return $l;
1642 1642
         }
1643 1643
 
@@ -1773,7 +1773,7 @@  discard block
 block discarded – undo
1773 1773
     public function getWorkflowNames()
1774 1774
     {
1775 1775
         try {
1776
-            $result =  $this->getConfiguration()->getWorkflowNames();
1776
+            $result = $this->getConfiguration()->getWorkflowNames();
1777 1777
             return $result;
1778 1778
         } catch (FactoryException $e) {
1779 1779
             $errMsg = 'Ошибка при получение имен workflow';
@@ -1955,7 +1955,7 @@  discard block
 block discarded – undo
1955 1955
      */
1956 1956
     public function setDefaultTypeResolverClass($defaultTypeResolverClass)
1957 1957
     {
1958
-        $this->defaultTypeResolverClass = (string)$defaultTypeResolverClass;
1958
+        $this->defaultTypeResolverClass = (string) $defaultTypeResolverClass;
1959 1959
 
1960 1960
         return $this;
1961 1961
     }
@@ -2059,7 +2059,7 @@  discard block
 block discarded – undo
2059 2059
         }
2060 2060
 
2061 2061
         if (-1 !== $currentStepId) {
2062
-            $stepId = array_key_exists('stepId', $args) ? (integer)$args['stepId'] : null;
2062
+            $stepId = array_key_exists('stepId', $args) ? (integer) $args['stepId'] : null;
2063 2063
 
2064 2064
             if (null !== $stepId && -1 === $stepId) {
2065 2065
                 $args['stepId'] = $currentStepId;
Please login to merge, or discard this patch.
src/Config/DefaultConfiguration.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
 
203 203
             $p = XmlUtil::getChildElement($root, 'persistence');
204 204
             $resolver = XmlUtil::getChildElement($root, 'resolver');
205
-            $factoryElement =  XmlUtil::getChildElement($root, 'factory');
205
+            $factoryElement = XmlUtil::getChildElement($root, 'factory');
206 206
 
207 207
 
208 208
             if (null !== $resolver && $resolver->hasAttribute('class')) {
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
                 } catch (FactoryException $e) {
265 265
                     throw $e;
266 266
                 } catch (\Exception $e) {
267
-                    $class = (string)$class;
267
+                    $class = (string) $class;
268 268
                     $errMsg = "Ошибка создания фабрики workflow для класса {$class}";
269 269
                     throw new FactoryException($errMsg, $e->getCode(), $e);
270 270
                 }
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
     protected function getContentConfigFile(UriInterface $url = null)
291 291
     {
292 292
         if (null !== $url) {
293
-            $urlStr = (string)$url;
293
+            $urlStr = (string) $url;
294 294
             $content = file_get_contents($urlStr);
295 295
 
296 296
             return $content;
@@ -339,7 +339,7 @@  discard block
 block discarded – undo
339 339
      */
340 340
     public static function addDefaultPathToConfig($path)
341 341
     {
342
-        $path = (string)$path;
342
+        $path = (string) $path;
343 343
 
344 344
         array_unshift(self::$defaultPathsToConfig, $path);
345 345
     }
Please login to merge, or discard this patch.
src/Exception/NotExistsRequiredAttributeException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
      */
35 35
     public function setRequiredAttributeName($requiredAttributeName)
36 36
     {
37
-        $this->requiredAttributeName = (string)$requiredAttributeName;
37
+        $this->requiredAttributeName = (string) $requiredAttributeName;
38 38
 
39 39
         return $this;
40 40
     }
Please login to merge, or discard this patch.
src/Loader/AbstractDescriptor.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      *
27 27
      * @var bool
28 28
      */
29
-    protected $hasId =false;
29
+    protected $hasId = false;
30 30
 
31 31
     /**
32 32
      * id дескриптора
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      */
63 63
     public function setEntityId($entityId)
64 64
     {
65
-        $this->entityId = (integer)$entityId;
65
+        $this->entityId = (integer) $entityId;
66 66
 
67 67
         return $this;
68 68
     }
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
      */
115 115
     public function setId($id)
116 116
     {
117
-        $this->id = (integer)$id;
117
+        $this->id = (integer) $id;
118 118
         $this->hasId = true;
119 119
 
120 120
         return $this;
Please login to merge, or discard this patch.
src/Loader/ActionDescriptor.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
      */
220 220
     public function setAutoExecute($autoExecute)
221 221
     {
222
-        $this->autoExecute = (boolean)$autoExecute;
222
+        $this->autoExecute = (boolean) $autoExecute;
223 223
 
224 224
         return $this;
225 225
     }
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
      */
240 240
     public function setCommon($common)
241 241
     {
242
-        $this->common = (boolean)$common;
242
+        $this->common = (boolean) $common;
243 243
 
244 244
         return $this;
245 245
     }
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
      */
260 260
     public function setView($view)
261 261
     {
262
-        $this->view = (string)$view;
262
+        $this->view = (string) $view;
263 263
 
264 264
         return $this;
265 265
     }
@@ -363,7 +363,7 @@  discard block
 block discarded – undo
363 363
      */
364 364
     public function setFinish($finish)
365 365
     {
366
-        $this->finish = (boolean)$finish;
366
+        $this->finish = (boolean) $finish;
367 367
 
368 368
         return $this;
369 369
     }
@@ -397,7 +397,7 @@  discard block
 block discarded – undo
397 397
 
398 398
         $unconditionalResult = $this->getUnconditionalResult();
399 399
         if (null === $unconditionalResult && $conditionalResults->count() > 0) {
400
-            $name = (string)$this->getName();
400
+            $name = (string) $this->getName();
401 401
             $errMsg = sprintf('Действие %s имеет условные условия, но не имеет запасного безусловного', $name);
402 402
             throw new InvalidWorkflowDescriptorException($errMsg);
403 403
         }
@@ -436,14 +436,14 @@  discard block
 block discarded – undo
436 436
         $id = $this->getId();
437 437
         $descriptor->setAttribute('id', $id);
438 438
 
439
-        $name = (string)$this->getName();
439
+        $name = (string) $this->getName();
440 440
         $name = trim($name);
441 441
         if (strlen($name) > 0) {
442 442
             $nameEncode = XmlUtil::encode($name);
443 443
             $descriptor->setAttribute('name', $nameEncode);
444 444
         }
445 445
 
446
-        $view = (string)$this->getView();
446
+        $view = (string) $this->getView();
447 447
         $view = trim($view);
448 448
         if (strlen($view) > 0) {
449 449
             $viewEncode = XmlUtil::encode($view);
Please login to merge, or discard this patch.
src/Loader/ArrayWorkflowFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,8 +37,8 @@
 block discarded – undo
37 37
 
38 38
         $basedir = null;
39 39
         foreach ($workflows as $name => $workflowItem) {
40
-            $type = array_key_exists('type', $workflowItem) ?  $workflowItem['type'] : WorkflowConfig::FILE_TYPE;
41
-            $location = array_key_exists('location', $workflowItem) ?  $workflowItem['location'] : '';
40
+            $type = array_key_exists('type', $workflowItem) ? $workflowItem['type'] : WorkflowConfig::FILE_TYPE;
41
+            $location = array_key_exists('location', $workflowItem) ? $workflowItem['location'] : '';
42 42
             $config = $this->buildWorkflowConfig($basedir, $type, $location);
43 43
             $this->workflows[$name] = $config;
44 44
         }
Please login to merge, or discard this patch.
src/Loader/CallbackWorkflowFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
      */
130 130
     public function getWorkflow($name, $validate = true)
131 131
     {
132
-        $name = (string)$name;
132
+        $name = (string) $name;
133 133
         if (!array_key_exists($name, $this->workflows)) {
134 134
             $errMsg = sprintf('Нет workflow с именем %s', $name);
135 135
             throw new FactoryException($errMsg);
@@ -187,9 +187,9 @@  discard block
 block discarded – undo
187 187
         }
188 188
 
189 189
         foreach ($workflows as $name => $workflowItem) {
190
-            $callback = array_key_exists('callback', $workflowItem) ?  $workflowItem['callback'] : null;
190
+            $callback = array_key_exists('callback', $workflowItem) ? $workflowItem['callback'] : null;
191 191
             if (!is_callable($callback)) {
192
-                $errMsg = sprintf('Некорректный форма callback\'a для создания workflow с именем %s',  $name);
192
+                $errMsg = sprintf('Некорректный форма callback\'a для создания workflow с именем %s', $name);
193 193
                 throw new FactoryException($errMsg);
194 194
             }
195 195
             $this->workflows[$name] = new WorkflowConfig($callback);
Please login to merge, or discard this patch.
src/Loader/ConditionDescriptor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
         $this->parseArgs($condition);
63 63
 
64 64
         if ($condition->hasAttribute('negate')) {
65
-            $n =  XmlUtil::getRequiredAttributeValue($condition, 'negate');
65
+            $n = XmlUtil::getRequiredAttributeValue($condition, 'negate');
66 66
             $nNormalize = strtolower($n);
67 67
 
68 68
             $this->negate = ('true' === $nNormalize || 'yes' === $nNormalize);
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      */
87 87
     public function setNegate($negate)
88 88
     {
89
-        $this->negate = (boolean)$negate;
89
+        $this->negate = (boolean) $negate;
90 90
 
91 91
         return $this;
92 92
     }
Please login to merge, or discard this patch.
src/Loader/ConditionalResultDescriptor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
                 $sName = $stepDescriptor->getName();
124 124
             }
125 125
 
126
-            $result  = sprintf('step #%s [%s]', $step, $sName);
126
+            $result = sprintf('step #%s [%s]', $step, $sName);
127 127
             return $result;
128 128
         }
129 129
     }
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
     {
141 141
         parent::validate();
142 142
 
143
-        $conditions =  $this->getConditions();
143
+        $conditions = $this->getConditions();
144 144
         if (0 === $conditions->count()) {
145 145
             $actionDescriptor = $this->getParent();
146 146
             if (!$actionDescriptor instanceof ActionDescriptor) {
Please login to merge, or discard this patch.