@@ -36,7 +36,7 @@  | 
                                                    ||
| 36 | 36 | const CONFIG_KEY = 'workflow_zf2_dispatch';  | 
                                                        
| 37 | 37 | |
| 38 | 38 | /**  | 
                                                        
| 39 | - * @return array  | 
                                                        |
| 39 | + * @return string[]  | 
                                                        |
| 40 | 40 | */  | 
                                                        
| 41 | 41 | public function getModuleDependencies()  | 
                                                        
| 42 | 42 |      { | 
                                                        
@@ -115,7 +115,7 @@ discard block  | 
                                                    ||
| 115 | 115 | $event->getMvcEvent()->setParam(static::WORKFLOW_DISPATCH_EVENT, $event);  | 
                                                        
| 116 | 116 | $event->setTarget($this);  | 
                                                        
| 117 | 117 | |
| 118 | -        $metadataResult = $this->getEventManager()->trigger(WorkflowDispatchEventInterface::LOAD_METADATA_EVENT, $event, function ($test) { | 
                                                        |
| 118 | +        $metadataResult = $this->getEventManager()->trigger(WorkflowDispatchEventInterface::LOAD_METADATA_EVENT, $event, function($test) { | 
                                                        |
| 119 | 119 | return ($test instanceof MetadataInterface);  | 
                                                        
| 120 | 120 | });  | 
                                                        
| 121 | 121 | $metadata = $metadataResult->last();  | 
                                                        
@@ -150,7 +150,7 @@ discard block  | 
                                                    ||
| 150 | 150 | }  | 
                                                        
| 151 | 151 | |
| 152 | 152 |          if (true === $flagRunWorkflow) { | 
                                                        
| 153 | -            $runWorkflowResults = $this->getEventManager()->trigger(WorkflowDispatchEventInterface::RUN_WORKFLOW_EVENT, $event, function ($result) { | 
                                                        |
| 153 | +            $runWorkflowResults = $this->getEventManager()->trigger(WorkflowDispatchEventInterface::RUN_WORKFLOW_EVENT, $event, function($result) { | 
                                                        |
| 154 | 154 | return ($result instanceof TransitionResultInterface);  | 
                                                        
| 155 | 155 | });  | 
                                                        
| 156 | 156 | |
@@ -491,7 +491,7 @@ discard block  | 
                                                    ||
| 491 | 491 | */  | 
                                                        
| 492 | 492 | public function setWorkflowDispatchEventClassName($workflowDispatchEventClassName)  | 
                                                        
| 493 | 493 |      { | 
                                                        
| 494 | - $this->workflowDispatchEventClassName = (string)$workflowDispatchEventClassName;  | 
                                                        |
| 494 | + $this->workflowDispatchEventClassName = (string) $workflowDispatchEventClassName;  | 
                                                        |
| 495 | 495 | |
| 496 | 496 | return $this;  | 
                                                        
| 497 | 497 | }  | 
                                                        
@@ -511,7 +511,7 @@ discard block  | 
                                                    ||
| 511 | 511 | */  | 
                                                        
| 512 | 512 | public function setTransientVarsClassName($transientVarsClassName)  | 
                                                        
| 513 | 513 |      { | 
                                                        
| 514 | - $this->transientVarsClassName = (string)$transientVarsClassName;  | 
                                                        |
| 514 | + $this->transientVarsClassName = (string) $transientVarsClassName;  | 
                                                        |
| 515 | 515 | |
| 516 | 516 | return $this;  | 
                                                        
| 517 | 517 | }  | 
                                                        
@@ -316,7 +316,7 @@ discard block  | 
                                                    ||
| 316 | 316 | *  | 
                                                        
| 317 | 317 | * @param WorkflowDispatchEventInterface $e  | 
                                                        
| 318 | 318 | *  | 
                                                        
| 319 | - * @return TransitionResultInterface  | 
                                                        |
| 319 | + * @return null|WorkflowService\TransitionResult  | 
                                                        |
| 320 | 320 | *  | 
                                                        
| 321 | 321 | *  | 
                                                        
| 322 | 322 | * @throws Exception\InvalidArgumentException  | 
                                                        
@@ -419,7 +419,7 @@ discard block  | 
                                                    ||
| 419 | 419 | /**  | 
                                                        
| 420 | 420 | * Создает экземпляр класса и проверяет то что созданный объект имплементирует заданный интерфейс  | 
                                                        
| 421 | 421 | *  | 
                                                        
| 422 | - * @param $className  | 
                                                        |
| 422 | + * @param string $className  | 
                                                        |
| 423 | 423 | * @param $interface  | 
                                                        
| 424 | 424 | *  | 
                                                        
| 425 | 425 | * @return mixed  | 
                                                        
@@ -1,8 +1,8 @@  | 
                                                    ||
| 1 | 1 | <?php  | 
                                                        
| 2 | 2 | /**  | 
                                                        
| 3 | - * @link https://github.com/old-town/workflow-zf2-dispatch  | 
                                                        |
| 4 | - * @author Malofeykin Andrey <[email protected]>  | 
                                                        |
| 5 | - */  | 
                                                        |
| 3 | + * @link https://github.com/old-town/workflow-zf2-dispatch  | 
                                                        |
| 4 | + * @author Malofeykin Andrey <[email protected]>  | 
                                                        |
| 5 | + */  | 
                                                        |
| 6 | 6 | |
| 7 | 7 | use OldTown\Workflow\ZF2\Dispatch\PhpUnit\TestData\IntegrationTest\TestController;  | 
                                                        
| 8 | 8 | |
@@ -57,7 +57,7 @@  | 
                                                    ||
| 57 | 57 | protected function init()  | 
                                                        
| 58 | 58 |      { | 
                                                        
| 59 | 59 |          try { | 
                                                        
| 60 | -            AnnotationRegistry::registerLoader(function ($class) { | 
                                                        |
| 60 | +            AnnotationRegistry::registerLoader(function($class) { | 
                                                        |
| 61 | 61 | return (bool) class_exists($class);  | 
                                                        
| 62 | 62 | });  | 
                                                        
| 63 | 63 |          } catch (\Exception $e) { | 
                                                        
@@ -113,7 +113,7 @@  | 
                                                    ||
| 113 | 113 | */  | 
                                                        
| 114 | 114 | public function setHandler($handler = null)  | 
                                                        
| 115 | 115 |      { | 
                                                        
| 116 | - $this->handler = null !== $handler ? (string)$handler: $handler;  | 
                                                        |
| 116 | + $this->handler = null !== $handler ? (string) $handler : $handler;  | 
                                                        |
| 117 | 117 | |
| 118 | 118 | return $this;  | 
                                                        
| 119 | 119 | }  | 
                                                        
@@ -1,8 +1,8 @@  | 
                                                    ||
| 1 | 1 | <?php  | 
                                                        
| 2 | 2 | /**  | 
                                                        
| 3 | - * @link https://github.com/old-town/workflow-zf2-dispatch  | 
                                                        |
| 4 | - * @author Malofeykin Andrey <[email protected]>  | 
                                                        |
| 5 | - */  | 
                                                        |
| 3 | + * @link https://github.com/old-town/workflow-zf2-dispatch  | 
                                                        |
| 4 | + * @author Malofeykin Andrey <[email protected]>  | 
                                                        |
| 5 | + */  | 
                                                        |
| 6 | 6 | |
| 7 | 7 | use OldTown\Workflow\ZF2\Dispatch\PhpUnit\TestData\IntegrationTest\TestController;  | 
                                                        
| 8 | 8 | |
@@ -181,7 +181,7 @@ discard block  | 
                                                    ||
| 181 | 181 | */  | 
                                                        
| 182 | 182 | public function setWorkflowDispatch($workflowDispatch)  | 
                                                        
| 183 | 183 |      { | 
                                                        
| 184 | - $this->workflowDispatch = (boolean)$workflowDispatch;  | 
                                                        |
| 184 | + $this->workflowDispatch = (boolean) $workflowDispatch;  | 
                                                        |
| 185 | 185 | |
| 186 | 186 | return $this;  | 
                                                        
| 187 | 187 | }  | 
                                                        
@@ -214,7 +214,7 @@ discard block  | 
                                                    ||
| 214 | 214 |              $errMsg = sprintf('Not allowed type %s', $workflowRunType); | 
                                                        
| 215 | 215 | throw new Exception\InvalidMetadataException($errMsg);  | 
                                                        
| 216 | 216 | }  | 
                                                        
| 217 | - $this->workflowRunType = (string)$workflowRunType;  | 
                                                        |
| 217 | + $this->workflowRunType = (string) $workflowRunType;  | 
                                                        |
| 218 | 218 | |
| 219 | 219 | return $this;  | 
                                                        
| 220 | 220 | }  | 
                                                        
@@ -239,7 +239,7 @@ discard block  | 
                                                    ||
| 239 | 239 | */  | 
                                                        
| 240 | 240 | public function setFlagRunPrepareData($flagRunPrepareData)  | 
                                                        
| 241 | 241 |      { | 
                                                        
| 242 | - $this->flagRunPrepareData = (boolean)$flagRunPrepareData;  | 
                                                        |
| 242 | + $this->flagRunPrepareData = (boolean) $flagRunPrepareData;  | 
                                                        |
| 243 | 243 | |
| 244 | 244 | return $this;  | 
                                                        
| 245 | 245 | }  | 
                                                        
@@ -268,7 +268,7 @@ discard block  | 
                                                    ||
| 268 | 268 |              $errMsg = sprintf('Not allowed prepare data method %s', $prepareDataMethod); | 
                                                        
| 269 | 269 | throw new Exception\InvalidMetadataException($errMsg);  | 
                                                        
| 270 | 270 | }  | 
                                                        
| 271 | - $this->prepareDataMethod = (string)$prepareDataMethod;  | 
                                                        |
| 271 | + $this->prepareDataMethod = (string) $prepareDataMethod;  | 
                                                        |
| 272 | 272 | |
| 273 | 273 | return $this;  | 
                                                        
| 274 | 274 | }  | 
                                                        
@@ -293,7 +293,7 @@ discard block  | 
                                                    ||
| 293 | 293 | */  | 
                                                        
| 294 | 294 | public function setPrepareDataHandler($prepareDataHandler)  | 
                                                        
| 295 | 295 |      { | 
                                                        
| 296 | - $this->prepareDataHandler = (string)$prepareDataHandler;  | 
                                                        |
| 296 | + $this->prepareDataHandler = (string) $prepareDataHandler;  | 
                                                        |
| 297 | 297 | |
| 298 | 298 | return $this;  | 
                                                        
| 299 | 299 | }  | 
                                                        
@@ -317,7 +317,7 @@ discard block  | 
                                                    ||
| 317 | 317 | */  | 
                                                        
| 318 | 318 | public function setFlagHasConditions($flagHasConditions)  | 
                                                        
| 319 | 319 |      { | 
                                                        
| 320 | - $this->flagHasConditions = (boolean)$flagHasConditions;  | 
                                                        |
| 320 | + $this->flagHasConditions = (boolean) $flagHasConditions;  | 
                                                        |
| 321 | 321 | |
| 322 | 322 | return $this;  | 
                                                        
| 323 | 323 | }  | 
                                                        
@@ -438,7 +438,7 @@ discard block  | 
                                                    ||
| 438 | 438 | */  | 
                                                        
| 439 | 439 | public function setEntryIdRouterParam($entryIdRouterParam)  | 
                                                        
| 440 | 440 |      { | 
                                                        
| 441 | - $this->entryIdRouterParam = (string)$entryIdRouterParam;  | 
                                                        |
| 441 | + $this->entryIdRouterParam = (string) $entryIdRouterParam;  | 
                                                        |
| 442 | 442 | |
| 443 | 443 | return $this;  | 
                                                        
| 444 | 444 | }  | 
                                                        
@@ -1,8 +1,8 @@  | 
                                                    ||
| 1 | 1 | <?php  | 
                                                        
| 2 | 2 | /**  | 
                                                        
| 3 | - * @link https://github.com/old-town/workflow-zf2-dispatch  | 
                                                        |
| 4 | - * @author Malofeykin Andrey <[email protected]>  | 
                                                        |
| 5 | - */  | 
                                                        |
| 3 | + * @link https://github.com/old-town/workflow-zf2-dispatch  | 
                                                        |
| 4 | + * @author Malofeykin Andrey <[email protected]>  | 
                                                        |
| 5 | + */  | 
                                                        |
| 6 | 6 | |
| 7 | 7 | use OldTown\Workflow\ZF2\Dispatch\PhpUnit\TestData\IntegrationTest\TestController;  | 
                                                        
| 8 | 8 | |
@@ -19,17 +19,17 @@ discard block  | 
                                                    ||
| 19 | 19 | /**  | 
                                                        
| 20 | 20 | * @var string  | 
                                                        
| 21 | 21 | */  | 
                                                        
| 22 | - const HTTP_METHOD_INVALID = 'httpMethodInvalid';  | 
                                                        |
| 22 | + const HTTP_METHOD_INVALID = 'httpMethodInvalid';  | 
                                                        |
| 23 | 23 | |
| 24 | 24 | /**  | 
                                                        
| 25 | 25 | * @var string  | 
                                                        
| 26 | 26 | */  | 
                                                        
| 27 | - const VALIDATE_VALUE_INVALID = 'validateValueInvalid';  | 
                                                        |
| 27 | + const VALIDATE_VALUE_INVALID = 'validateValueInvalid';  | 
                                                        |
| 28 | 28 | |
| 29 | 29 | /**  | 
                                                        
| 30 | 30 | * @var string  | 
                                                        
| 31 | 31 | */  | 
                                                        
| 32 | - const REQUEST_INVALID = 'requestInvalid';  | 
                                                        |
| 32 | + const REQUEST_INVALID = 'requestInvalid';  | 
                                                        |
| 33 | 33 | |
| 34 | 34 | /**  | 
                                                        
| 35 | 35 | * Validation failure message template definitions  | 
                                                        
@@ -104,7 +104,7 @@ discard block  | 
                                                    ||
| 104 | 104 |      { | 
                                                        
| 105 | 105 | $results = null;  | 
                                                        
| 106 | 106 |          if (is_array($allowedHttpMethods)) { | 
                                                        
| 107 | -            $results = array_map(function ($method) { | 
                                                        |
| 107 | +            $results = array_map(function($method) { | 
                                                        |
| 108 | 108 | $method = trim($method);  | 
                                                        
| 109 | 109 | $method = strtolower($method);  | 
                                                        
| 110 | 110 | |
@@ -1,8 +1,8 @@  | 
                                                    ||
| 1 | 1 | <?php  | 
                                                        
| 2 | 2 | /**  | 
                                                        
| 3 | - * @link https://github.com/old-town/workflow-zf2-dispatch  | 
                                                        |
| 4 | - * @author Malofeykin Andrey <[email protected]>  | 
                                                        |
| 5 | - */  | 
                                                        |
| 3 | + * @link https://github.com/old-town/workflow-zf2-dispatch  | 
                                                        |
| 4 | + * @author Malofeykin Andrey <[email protected]>  | 
                                                        |
| 5 | + */  | 
                                                        |
| 6 | 6 | |
| 7 | 7 | use OldTown\Workflow\ZF2\Dispatch\PhpUnit\TestData\IntegrationTest\TestController;  | 
                                                        
| 8 | 8 | |
@@ -1,8 +1,8 @@  | 
                                                    ||
| 1 | 1 | <?php  | 
                                                        
| 2 | 2 | /**  | 
                                                        
| 3 | - * @link https://github.com/old-town/workflow-zf2-dispatch  | 
                                                        |
| 4 | - * @author Malofeykin Andrey <[email protected]>  | 
                                                        |
| 5 | - */  | 
                                                        |
| 3 | + * @link https://github.com/old-town/workflow-zf2-dispatch  | 
                                                        |
| 4 | + * @author Malofeykin Andrey <[email protected]>  | 
                                                        |
| 5 | + */  | 
                                                        |
| 6 | 6 | |
| 7 | 7 | use OldTown\Workflow\ZF2\Dispatch\PhpUnit\TestData\IntegrationTest\TestController;  | 
                                                        
| 8 | 8 | |
@@ -1,8 +1,8 @@  | 
                                                    ||
| 1 | 1 | <?php  | 
                                                        
| 2 | 2 | /**  | 
                                                        
| 3 | - * @link https://github.com/old-town/workflow-zf2-dispatch  | 
                                                        |
| 4 | - * @author Malofeykin Andrey <[email protected]>  | 
                                                        |
| 5 | - */  | 
                                                        |
| 3 | + * @link https://github.com/old-town/workflow-zf2-dispatch  | 
                                                        |
| 4 | + * @author Malofeykin Andrey <[email protected]>  | 
                                                        |
| 5 | + */  | 
                                                        |
| 6 | 6 | namespace OldTown\Workflow\ZF2\Dispatch\PhpUnit\Test;  | 
                                                        
| 7 | 7 | |
| 8 | 8 | use OldTown\Workflow\ZF2\Dispatch\PhpUnit\TestData\TestPaths;  | 
                                                        
@@ -1,8 +1,8 @@  | 
                                                    ||
| 1 | 1 | <?php  | 
                                                        
| 2 | 2 | /**  | 
                                                        
| 3 | - * @link https://github.com/old-town/workflow-zf2-dispatch  | 
                                                        |
| 4 | - * @author Malofeykin Andrey <[email protected]>  | 
                                                        |
| 5 | - */  | 
                                                        |
| 3 | + * @link https://github.com/old-town/workflow-zf2-dispatch  | 
                                                        |
| 4 | + * @author Malofeykin Andrey <[email protected]>  | 
                                                        |
| 5 | + */  | 
                                                        |
| 6 | 6 | namespace OldTown\Workflow\ZF2\Dispatch\PhpUnit\Test;  | 
                                                        
| 7 | 7 | |
| 8 | 8 | use OldTown\Workflow\ZF2\Dispatch\PhpUnit\TestData\TestPaths;  |