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 3 patches
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
      * Переход между двумя статусами
249 249
      *
250 250
      * @param WorkflowEntryInterface $entry
251
-     * @param SplObjectStorage|StepInterface[] $currentSteps
251
+     * @param SplObjectStorage $currentSteps
252 252
      * @param WorkflowStoreInterface $store
253 253
      * @param WorkflowDescriptor $wf
254 254
      * @param ActionDescriptor $action
@@ -497,7 +497,7 @@  discard block
 block discarded – undo
497 497
 
498 498
 
499 499
     /**
500
-     * @param       $id
500
+     * @param       integer $id
501 501
      * @param TransientVarsInterface $inputs
502 502
      *
503 503
      * @return array
@@ -874,7 +874,7 @@  discard block
 block discarded – undo
874 874
 
875 875
     /**
876 876
      * @param ActionDescriptor $action
877
-     * @param                  $id
877
+     * @param                  integer $id
878 878
      *
879 879
      * @return void
880 880
      *
@@ -1170,7 +1170,7 @@  discard block
 block discarded – undo
1170 1170
      *
1171 1171
      * @param WorkflowDescriptor $wfDesc
1172 1172
      * @param integer $actionId
1173
-     * @param StepInterface[]|SplObjectStorage $currentSteps
1173
+     * @param SplObjectStorage $currentSteps
1174 1174
      * @param TransientVarsInterface $transientVars
1175 1175
      * @param PropertySetInterface $ps
1176 1176
      *
Please login to merge, or discard this patch.
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -1931,7 +1931,6 @@
 block discarded – undo
1931 1931
      * @throws \OldTown\Workflow\Exception\WorkflowException
1932 1932
      * @throws \OldTown\Workflow\Exception\StoreException
1933 1933
      * @throws \OldTown\Workflow\Exception\InternalWorkflowException
1934
-
1935 1934
      */
1936 1935
     public function query(WorkflowExpressionQuery $query)
1937 1936
     {
Please login to merge, or discard this 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/ArrayConfiguration.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -218,7 +218,7 @@
 block discarded – undo
218 218
     }
219 219
 
220 220
     /**
221
-     * @return \String[]
221
+     * @return string[]
222 222
      */
223 223
     public function getWorkflowNames()
224 224
     {
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @link https://github.com/old-town/old-town-workflow
4
- * @author  Malofeykin Andrey  <[email protected]>
5
- */
3
+     * @link https://github.com/old-town/old-town-workflow
4
+     * @author  Malofeykin Andrey  <[email protected]>
5
+     */
6 6
 namespace OldTown\Workflow\Config;
7 7
 
8 8
 use OldTown\Workflow\Loader\UrlWorkflowFactory;
Please login to merge, or discard this patch.
src/Config/DefaultConfiguration.php 3 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -377,7 +377,7 @@  discard block
 block discarded – undo
377 377
      * Удаляет workflow
378 378
      *
379 379
      * @param string $workflow имя удаляемого workflow
380
-     * @return boolean в случае успешного удаления возвращает true, в противном случае false
380
+     * @return boolean|null в случае успешного удаления возвращает true, в противном случае false
381 381
      * @throws FactoryException
382 382
      */
383 383
     public function removeWorkflow($workflow)
@@ -391,7 +391,7 @@  discard block
 block discarded – undo
391 391
      * @param WorkflowDescriptor $descriptor дескриптор workflow
392 392
      * @param boolean $replace - флаг определяющий, можно ли замениить workflow
393 393
      *
394
-     * @return boolean
394
+     * @return boolean|null
395 395
      *
396 396
      * @throws FactoryException
397 397
      * @throws \OldTown\Workflow\Exception\InvalidWorkflowDescriptorException
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @link https://github.com/old-town/old-town-workflow
4
- * @author  Malofeykin Andrey  <[email protected]>
5
- */
3
+     * @link https://github.com/old-town/old-town-workflow
4
+     * @author  Malofeykin Andrey  <[email protected]>
5
+     */
6 6
 namespace OldTown\Workflow\Config;
7 7
 
8 8
 use OldTown\Workflow\Exception\FactoryException;
Please login to merge, or discard this 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/Loader/SecureDtdEntityResolver.php 2 patches
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     /**
45 45
      * Возвращает dom документ
46 46
      *
47
-     * @param DomDocumentType $domDocumentType
47
+     * @param DOMDocumentType $domDocumentType
48 48
      *
49 49
      * @return string
50 50
      * @throws  \OldTown\Workflow\Exception\InvalidDtdSchemaException
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
     }
75 75
 
76 76
     /**
77
-     * @param $path
77
+     * @param string $path
78 78
      *
79 79
      * @return string
80 80
      * @throws InvalidDtdSchemaException
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
     }
150 150
 
151 151
     /**
152
-     * @param $uri
152
+     * @param string $uri
153 153
      * @return UriInterface
154 154
      */
155 155
     protected function uriFactory($uri)
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
     /**
167 167
      * Возвращает путь до директории в которой находятся схемы для валидации
168 168
      *
169
-     * @return null|string
169
+     * @return string
170 170
      */
171 171
     public function getPathToSchemas()
172 172
     {
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @link https://github.com/old-town/old-town-workflow
4
- * @author  Malofeykin Andrey  <[email protected]>
5
- */
3
+     * @link https://github.com/old-town/old-town-workflow
4
+     * @author  Malofeykin Andrey  <[email protected]>
5
+     */
6 6
 namespace OldTown\Workflow\Loader;
7 7
 
8 8
 use DOMDocumentType;
Please login to merge, or discard this patch.
src/Loader/WorkflowDescriptor.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -571,7 +571,7 @@
 block discarded – undo
571 571
 
572 572
 
573 573
     /**
574
-     * @param $id
574
+     * @param integer $id
575 575
      *
576 576
      * @return ActionDescriptor|null
577 577
      * @throws \OldTown\Workflow\Exception\ArgumentNotNumericException
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @link    https://github.com/old-town/old-town-workflow
4
- * @author  Malofeykin Andrey  <[email protected]>
5
- */
3
+     * @link    https://github.com/old-town/old-town-workflow
4
+     * @author  Malofeykin Andrey  <[email protected]>
5
+     */
6 6
 namespace OldTown\Workflow\Loader;
7 7
 
8 8
 use OldTown\Workflow\Exception\ArgumentNotNumericException;
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
      */
155 155
     public function setName($workflowName)
156 156
     {
157
-        $this->workflowName = (string)$workflowName;
157
+        $this->workflowName = (string) $workflowName;
158 158
 
159 159
         return $this;
160 160
     }
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
         $dtd = $secureDtdEntityResolver->resolveEntity($dom->doctype);
259 259
 
260 260
 
261
-        $systemId = 'data://text/plain;base64,'.base64_encode($dtd);
261
+        $systemId = 'data://text/plain;base64,' . base64_encode($dtd);
262 262
 
263 263
         $creator = new DOMImplementation;
264 264
         $doctype = $creator->createDocumentType(
@@ -483,7 +483,7 @@  discard block
 block discarded – undo
483 483
             $errMsg = 'Аргумент должен быть числом';
484 484
             throw new ArgumentNotNumericException($errMsg);
485 485
         }
486
-        $id = (integer)$id;
486
+        $id = (integer) $id;
487 487
 
488 488
         foreach ($this->getSteps() as $step) {
489 489
             if ($id === $step->getId()) {
@@ -499,7 +499,7 @@  discard block
 block discarded – undo
499 499
      */
500 500
     public function getAction($id)
501 501
     {
502
-        $id = (integer)$id;
502
+        $id = (integer) $id;
503 503
 
504 504
         foreach ($this->getGlobalActions() as $actionDescriptor) {
505 505
             if ($id === $actionDescriptor->getId()) {
@@ -562,7 +562,7 @@  discard block
 block discarded – undo
562 562
      */
563 563
     public function getCommonAction($id)
564 564
     {
565
-        $id = (integer)$id;
565
+        $id = (integer) $id;
566 566
         if (array_key_exists($id, $this->commonActions)) {
567 567
             return $this->commonActions[$id];
568 568
         }
@@ -582,7 +582,7 @@  discard block
 block discarded – undo
582 582
             $errMsg = 'Аргумент должен быть числом';
583 583
             throw new ArgumentNotNumericException($errMsg);
584 584
         }
585
-        $id = (integer)$id;
585
+        $id = (integer) $id;
586 586
 
587 587
         $initialActions = $this->getInitialActions();
588 588
         foreach ($initialActions as $actionDescriptor) {
@@ -615,7 +615,7 @@  discard block
 block discarded – undo
615 615
             $errMsg = 'Аргумент должен быть числом';
616 616
             throw new ArgumentNotNumericException($errMsg);
617 617
         }
618
-        $id = (integer)$id;
618
+        $id = (integer) $id;
619 619
 
620 620
         $joins = $this->getJoins();
621 621
         foreach ($joins as $joinDescriptor) {
@@ -665,7 +665,7 @@  discard block
 block discarded – undo
665 665
             $errMsg = 'Аргумент должен быть числом';
666 666
             throw new ArgumentNotNumericException($errMsg);
667 667
         }
668
-        $id = (integer)$id;
668
+        $id = (integer) $id;
669 669
 
670 670
         $splits = $this->getSplits();
671 671
         foreach ($splits as $splitDescriptor) {
@@ -690,7 +690,7 @@  discard block
 block discarded – undo
690 690
             $errMsg = 'Аргумент должен быть числом';
691 691
             throw new ArgumentNotNumericException($errMsg);
692 692
         }
693
-        $id = (integer)$id;
693
+        $id = (integer) $id;
694 694
         $this->timerFunctions[$id] = $descriptor;
695 695
 
696 696
         return $this;
@@ -707,7 +707,7 @@  discard block
 block discarded – undo
707 707
             $errMsg = 'Аргумент должен быть числом';
708 708
             throw new ArgumentNotNumericException($errMsg);
709 709
         }
710
-        $id = (integer)$id;
710
+        $id = (integer) $id;
711 711
 
712 712
         if (!array_key_exists($id, $this->timerFunctions)) {
713 713
             $errMsg = sprintf('Не найдена trigger-function с id %s', $id);
@@ -872,7 +872,7 @@  discard block
 block discarded – undo
872 872
     {
873 873
         if (null === $dom) {
874 874
             $imp = new DOMImplementation();
875
-            $dtd  = $imp->createDocumentType(
875
+            $dtd = $imp->createDocumentType(
876 876
                 static::DOCUMENT_TYPE_QUALIFIED_NAME,
877 877
                 static::DOCUMENT_TYPE_PUBLIC_ID,
878 878
                 static::DOCUMENT_TYPE_SYSTEM_ID
Please login to merge, or discard this patch.
src/Spi/Memory/MemoryWorkflowStore.php 3 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
     /**
315 315
      * Поиск по истории шагов
316 316
      *
317
-     * @param $entryId
317
+     * @param integer $entryId
318 318
      *
319 319
      * @return SimpleStep[]|SplObjectStorage
320 320
      */
@@ -687,7 +687,7 @@  discard block
 block discarded – undo
687 687
      *
688 688
      * @param $value1
689 689
      * @param $value2
690
-     * @param $operator
690
+     * @param integer $operator
691 691
      *
692 692
      * @return bool
693 693
      *
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @link    https://github.com/old-town/old-town-workflow
4
- * @author  Malofeykin Andrey  <[email protected]>
5
- */
3
+     * @link    https://github.com/old-town/old-town-workflow
4
+     * @author  Malofeykin Andrey  <[email protected]>
5
+     */
6 6
 namespace OldTown\Workflow\Spi\Memory;
7 7
 
8 8
 use OldTown\PropertySet\PropertySetInterface;
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
             $errMsg = sprintf('Аргумент должен быть числом. Актуальное значение %s', $entryId);
90 90
             throw new ArgumentNotNumericException($errMsg);
91 91
         }
92
-        $entryId = (integer)$entryId;
92
+        $entryId = (integer) $entryId;
93 93
 
94 94
         $ps = $this->createPropertySet();
95 95
         static::$propertySetCache[$entryId] = $ps;
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
             $errMsg = sprintf('Аргумент должен быть числом. Актуальное значение %s', $entryId);
221 221
             throw new ArgumentNotNumericException($errMsg);
222 222
         }
223
-        $entryId = (integer)$entryId;
223
+        $entryId = (integer) $entryId;
224 224
 
225 225
         if (!array_key_exists($entryId, static::$currentStepsCache)) {
226 226
             $currentSteps = new SplObjectStorage();
@@ -389,7 +389,7 @@  discard block
 block discarded – undo
389 389
         $field = $expression->getField();
390 390
         $context = $expression->getContext();
391 391
 
392
-        $id = (integer)$entryId;
392
+        $id = (integer) $entryId;
393 393
 
394 394
         if ($context === FieldExpression::ENTRY) {
395 395
             $theEntry = static::$entryCache[$id];
@@ -404,7 +404,7 @@  discard block
 block discarded – undo
404 404
                     throw new InvalidArgumentException($errMsg);
405 405
                 }
406 406
 
407
-                $valueInt = (integer)$value;
407
+                $valueInt = (integer) $value;
408 408
 
409 409
                 return $this->compareLong($valueInt, $theEntry->getState(), $operator);
410 410
             }
@@ -438,7 +438,7 @@  discard block
 block discarded – undo
438 438
                     throw new InvalidArgumentException($errMsg);
439 439
                 }
440 440
 
441
-                $actionId = (integer)$value;
441
+                $actionId = (integer) $value;
442 442
 
443 443
                 foreach ($steps as $step) {
444 444
                     if ($this->compareLong($step->getActionId(), $actionId, $operator)) {
@@ -525,7 +525,7 @@  discard block
 block discarded – undo
525 525
                     $errMsg = 'unknown field';
526 526
                     throw new InvalidArgumentException($errMsg);
527 527
                 }
528
-                $stepId = (integer)$value;
528
+                $stepId = (integer) $value;
529 529
 
530 530
                 foreach ($steps as $step) {
531 531
                     if ($this->compareLong($step->getStepId(), $stepId, $operator)) {
Please login to merge, or discard this patch.
src/Util/PhpShell/PhpShellConditionProvider.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
      * @param TransientVarsInterface $transientVars
27 27
      * @param array $args
28 28
      * @param PropertySetInterface $ps
29
-     * @return bool
29
+     * @return boolean|string
30 30
      *
31 31
      * @throws \OldTown\Workflow\Exception\WorkflowException
32 32
      * @throws \OldTown\Workflow\Exception\RuntimeException
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @link    https://github.com/old-town/old-town-workflow
4
- * @author  Malofeykin Andrey  <[email protected]>
5
- */
3
+     * @link    https://github.com/old-town/old-town-workflow
4
+     * @author  Malofeykin Andrey  <[email protected]>
5
+     */
6 6
 namespace OldTown\Workflow\Util\PhpShell;
7 7
 
8 8
 use OldTown\PropertySet\PropertySetInterface;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,10 +37,10 @@
 block discarded – undo
37 37
         $script = array_key_exists(static::PHP_SCRIPT, $args) ? $args[static::PHP_SCRIPT] : '';
38 38
 
39 39
         /**@var WorkflowContextInterface $context */
40
-        $context = $transientVars->offsetExists('context')  ? $transientVars['context'] : null;
40
+        $context = $transientVars->offsetExists('context') ? $transientVars['context'] : null;
41 41
 
42 42
         /**@var WorkflowEntryInterface $entry */
43
-        $entry = $transientVars->offsetExists('entry')  ? $transientVars['entry'] : null;
43
+        $entry = $transientVars->offsetExists('entry') ? $transientVars['entry'] : null;
44 44
 
45 45
 
46 46
         $i = new Interpreter($script);
Please login to merge, or discard this patch.
src/WorkflowInterface.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -101,6 +101,7 @@  discard block
 block discarded – undo
101 101
      * If the new state is {@link com.opensymphony.workflow.spi.WorkflowEntry.KILLED}
102 102
      * or {@link com.opensymphony.workflow.spi.WorkflowEntry.COMPLETED}
103 103
      * then all current steps are moved to history steps. If the new state is
104
+     * @return void
104 105
      */
105 106
     public function changeEntryState($id, $newState);
106 107
 
@@ -110,6 +111,7 @@  discard block
 block discarded – undo
110 111
      * @param integer $actionId The action id to perform (action id's are listed in the workflow descriptor).
111 112
      * @param TransientVarsInterface $inputs The inputs to the workflow instance.
112 113
      * instance's current state.
114
+     * @return void
113 115
      */
114 116
     public function doAction($id, $actionId, TransientVarsInterface $inputs = null);
115 117
 
@@ -119,6 +121,7 @@  discard block
 block discarded – undo
119 121
      * @param integer $id The workflow instance id
120 122
      * @param integer $triggerId The id of the special trigger-function
121 123
      * @thrown WorkflowException
124
+     * @return void
122 125
      */
123 126
     public function executeTriggerFunction($id, $triggerId);
124 127
 
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @link https://github.com/old-town/old-town-workflow
4
- * @author  Malofeykin Andrey  <[email protected]>
5
- */
3
+     * @link https://github.com/old-town/old-town-workflow
4
+     * @author  Malofeykin Andrey  <[email protected]>
5
+     */
6 6
 namespace OldTown\Workflow;
7 7
 
8 8
 use OldTown\Workflow\Config\ConfigurationInterface;
Please login to merge, or discard this patch.
test/Behat/bootstrap/WorkflowDescriptorContext.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -771,7 +771,7 @@
 block discarded – undo
771 771
      * @param           $methodName
772 772
      * @param TableNode $table
773 773
      *
774
-     * @return mixed
774
+     * @return AbstractDescriptor
775 775
      * @throws \RuntimeException
776 776
      */
777 777
     public function getTheDescriptorUsingTheMethodOfTheArgumentsOfTheMethod($methodName, TableNode $table)
Please login to merge, or discard this patch.