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 ( 909684...e1b3d2 )
by Андрей
15:20
created
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\PhpUnit\Utils;
7 7
 
8 8
 use OldTown\Workflow\PhpUnit\Test\Paths;
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.
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.
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\PhpUnit\Utils;
7 7
 
8 8
 use OldTown\Workflow\PhpUnit\Test\Paths;
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\PhpUnit\Utils;
7 7
 
8 8
 use OldTown\Workflow\PhpUnit\Test\Paths;
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.
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.
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\PhpUnitTest\Loader;
7 7
 
8 8
 use OldTown\Workflow\PhpUnit\Test\Paths;
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.
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.
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\PhpUnitTest\Loader;
7 7
 
8 8
 use OldTown\Workflow\PhpUnit\Test\Paths;
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.
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.
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\PhpUnitTest\Loader;
7 7
 
8 8
 use OldTown\Workflow\PhpUnit\Test\Paths;
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\PhpUnit\Utils;
7 7
 
8 8
 use OldTown\Workflow\PhpUnit\Test\Paths;
Please login to merge, or discard this patch.
test/phpunit/tests/Loader/WorkflowLoaderTest.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
     }
88 88
 
89 89
     /**
90
-     * @param $uri
90
+     * @param string $uri
91 91
      * @return UriInterface
92 92
      */
93 93
     protected function uriFactory($uri)
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\PhpUnitTest\Loader;
7 7
 
8 8
 use OldTown\Workflow\PhpUnit\Test\Paths;
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.