@@ -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; |
@@ -29,7 +29,7 @@ |
||
29 | 29 | ); |
30 | 30 | |
31 | 31 | |
32 | - $this->getApplication()->getEventManager()->attach(MvcEvent::EVENT_DISPATCH_ERROR, function (MvcEvent $e) { |
|
32 | + $this->getApplication()->getEventManager()->attach(MvcEvent::EVENT_DISPATCH_ERROR, function(MvcEvent $e) { |
|
33 | 33 | $exception = $e->getParam('exception', null); |
34 | 34 | if ($exception) { |
35 | 35 | throw $exception; |
@@ -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 |