@@ -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 | { |
@@ -114,7 +114,7 @@ |
||
| 114 | 114 | { |
| 115 | 115 | |
| 116 | 116 | if (!$manager instanceof ModuleManager) { |
| 117 | - $errMsg =sprintf('Module manager not implement %s', ModuleManager::class); |
|
| 117 | + $errMsg = sprintf('Module manager not implement %s', ModuleManager::class); |
|
| 118 | 118 | throw new Exception\ErrorInitModuleException($errMsg); |
| 119 | 119 | } |
| 120 | 120 | /** @var ModuleManager $manager */ |
@@ -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 | 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 | |
| 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 | |
| 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 | |
| 7 | 7 | use OldTown\Workflow\ZF2\Dispatch\PhpUnit\TestData\IntegrationTest\TestController; |
| 8 | 8 | |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | * |
| 175 | 175 | * @param WorkflowDispatchEventInterface $e |
| 176 | 176 | * |
| 177 | - * @return MetadataInterface|null |
|
| 177 | + * @return null|\OldTown\Workflow\ZF2\Dispatch\Metadata\MetadataInterface |
|
| 178 | 178 | */ |
| 179 | 179 | public function onLoadMetadataHandler(WorkflowDispatchEventInterface $e) |
| 180 | 180 | { |
@@ -410,7 +410,7 @@ discard block |
||
| 410 | 410 | /** |
| 411 | 411 | * Создает экземпляр класса и проверяет то что созданный объект имплементирует заданный интерфейс |
| 412 | 412 | * |
| 413 | - * @param $className |
|
| 413 | + * @param string $className |
|
| 414 | 414 | * @param $interface |
| 415 | 415 | * |
| 416 | 416 | * @return mixed |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | $event->getMvcEvent()->setParam(static::WORKFLOW_DISPATCH_EVENT, $event); |
| 99 | 99 | $event->setTarget($this); |
| 100 | 100 | |
| 101 | - $metadataResult = $this->getEventManager()->trigger(WorkflowDispatchEventInterface::LOAD_METADATA_EVENT, $event, function ($test) { |
|
| 101 | + $metadataResult = $this->getEventManager()->trigger(WorkflowDispatchEventInterface::LOAD_METADATA_EVENT, $event, function($test) { |
|
| 102 | 102 | return ($test instanceof MetadataInterface); |
| 103 | 103 | }); |
| 104 | 104 | $metadata = $metadataResult->last(); |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | } |
| 134 | 134 | |
| 135 | 135 | if (true === $flagRunWorkflow) { |
| 136 | - $runWorkflowParamResults = $this->getEventManager()->trigger(WorkflowDispatchEventInterface::METADATA_WORKFLOW_TO_RUN_EVENT, $event, function ($result) { |
|
| 136 | + $runWorkflowParamResults = $this->getEventManager()->trigger(WorkflowDispatchEventInterface::METADATA_WORKFLOW_TO_RUN_EVENT, $event, function($result) { |
|
| 137 | 137 | return ($result instanceof RunWorkflowParamInterface); |
| 138 | 138 | }); |
| 139 | 139 | $runWorkflowParamResult = $runWorkflowParamResults->last(); |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | $event->setRunWorkflowParam($runWorkflowParamResult); |
| 146 | 146 | |
| 147 | 147 | |
| 148 | - $runWorkflowResults = $this->getEventManager()->trigger(WorkflowDispatchEventInterface::RUN_WORKFLOW_EVENT, $event, function ($result) { |
|
| 148 | + $runWorkflowResults = $this->getEventManager()->trigger(WorkflowDispatchEventInterface::RUN_WORKFLOW_EVENT, $event, function($result) { |
|
| 149 | 149 | return ($result instanceof TransitionResultInterface); |
| 150 | 150 | }); |
| 151 | 151 | |
@@ -506,7 +506,7 @@ discard block |
||
| 506 | 506 | */ |
| 507 | 507 | public function setWorkflowDispatchEventClassName($workflowDispatchEventClassName) |
| 508 | 508 | { |
| 509 | - $this->workflowDispatchEventClassName = (string)$workflowDispatchEventClassName; |
|
| 509 | + $this->workflowDispatchEventClassName = (string) $workflowDispatchEventClassName; |
|
| 510 | 510 | |
| 511 | 511 | return $this; |
| 512 | 512 | } |
@@ -526,7 +526,7 @@ discard block |
||
| 526 | 526 | */ |
| 527 | 527 | public function setTransientVarsClassName($transientVarsClassName) |
| 528 | 528 | { |
| 529 | - $this->transientVarsClassName = (string)$transientVarsClassName; |
|
| 529 | + $this->transientVarsClassName = (string) $transientVarsClassName; |
|
| 530 | 530 | |
| 531 | 531 | return $this; |
| 532 | 532 | } |
@@ -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 | |