@@ -56,9 +56,9 @@ discard block |
||
56 | 56 | /** |
57 | 57 | * @param array $options |
58 | 58 | */ |
59 | - public function __construct(array $options = []) |
|
59 | + public function __construct(array $options = [ ]) |
|
60 | 60 | { |
61 | - call_user_func_array([$this, 'init'], $options); |
|
61 | + call_user_func_array([ $this, 'init' ], $options); |
|
62 | 62 | } |
63 | 63 | |
64 | 64 | /** |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | */ |
79 | 79 | public function attach(EventManagerInterface $events) |
80 | 80 | { |
81 | - $this->listeners[] = $events->attach(WorkflowManagerEvent::EVENT_CREATE, [$this, 'createWorkflowManager'], -80); |
|
81 | + $this->listeners[ ] = $events->attach(WorkflowManagerEvent::EVENT_CREATE, [ $this, 'createWorkflowManager' ], -80); |
|
82 | 82 | } |
83 | 83 | |
84 | 84 | /** |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | */ |
87 | 87 | protected function attachDefaultListeners() |
88 | 88 | { |
89 | - $this->getEventManager()->attach(WorkflowTypeResolverEvent::INJECT_WORKFLOW_TYPE_RESOLVER, [$this, 'addServiceTypeResolver']); |
|
89 | + $this->getEventManager()->attach(WorkflowTypeResolverEvent::INJECT_WORKFLOW_TYPE_RESOLVER, [ $this, 'addServiceTypeResolver' ]); |
|
90 | 90 | } |
91 | 91 | |
92 | 92 | /** |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @link https://github.com/old-town/workflow-zf2-service |
|
4 | - * @author Malofeykin Andrey <[email protected]> |
|
5 | - */ |
|
3 | + * @link https://github.com/old-town/workflow-zf2-service |
|
4 | + * @author Malofeykin Andrey <[email protected]> |
|
5 | + */ |
|
6 | 6 | namespace OldTown\Workflow\ZF2\Service; |
7 | 7 | |
8 | 8 |
@@ -96,7 +96,7 @@ |
||
96 | 96 | * |
97 | 97 | * @return $this |
98 | 98 | */ |
99 | - public function setMetadataReaderOptions(array $metadataReaderOptions = []) |
|
99 | + public function setMetadataReaderOptions(array $metadataReaderOptions = [ ]) |
|
100 | 100 | { |
101 | 101 | $this->metadataReaderOptions = $metadataReaderOptions; |
102 | 102 |
@@ -21,5 +21,5 @@ |
||
21 | 21 | * |
22 | 22 | * @return mixed |
23 | 23 | */ |
24 | - public function get($name, $options = [], $usePeeringServiceManagers = true); |
|
24 | + public function get($name, $options = [ ], $usePeeringServiceManagers = true); |
|
25 | 25 | } |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @link https://github.com/old-town/workflow-zf2-service |
|
4 | - * @author Malofeykin Andrey <[email protected]> |
|
5 | - */ |
|
3 | + * @link https://github.com/old-town/workflow-zf2-service |
|
4 | + * @author Malofeykin Andrey <[email protected]> |
|
5 | + */ |
|
6 | 6 | namespace OldTown\Workflow\ZF2\Service; |
7 | 7 | |
8 | 8 |
@@ -117,7 +117,7 @@ |
||
117 | 117 | */ |
118 | 118 | public function setOverride($override) |
119 | 119 | { |
120 | - $this->override = (boolean)$override; |
|
120 | + $this->override = (boolean) $override; |
|
121 | 121 | |
122 | 122 | return $this; |
123 | 123 | } |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @link https://github.com/old-town/workflow-zf2-service |
|
4 | - * @author Malofeykin Andrey <[email protected]> |
|
5 | - */ |
|
3 | + * @link https://github.com/old-town/workflow-zf2-service |
|
4 | + * @author Malofeykin Andrey <[email protected]> |
|
5 | + */ |
|
6 | 6 | namespace OldTown\Workflow\ZF2\Service; |
7 | 7 | |
8 | 8 |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | * |
45 | 45 | * @var MetadataInterface[] |
46 | 46 | */ |
47 | - protected $classAnnotations = []; |
|
47 | + protected $classAnnotations = [ ]; |
|
48 | 48 | |
49 | 49 | /** |
50 | 50 | * |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | protected function init() |
65 | 65 | { |
66 | 66 | try { |
67 | - AnnotationRegistry::registerLoader(function ($class) { |
|
67 | + AnnotationRegistry::registerLoader(function($class) { |
|
68 | 68 | return (bool) class_exists($class); |
69 | 69 | }); |
70 | 70 | } catch (\Exception $e) { |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | { |
92 | 92 | $key = $serviceClassName . '_' . $serviceMethod; |
93 | 93 | if (array_key_exists($key, $this->classAnnotations)) { |
94 | - return $this->classAnnotations[$key]; |
|
94 | + return $this->classAnnotations[ $key ]; |
|
95 | 95 | } |
96 | 96 | |
97 | 97 | $r = new ReflectionClass($serviceClassName); |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | */ |
194 | 194 | public function setDoctrineAnnotationReaderClassName($doctrineAnnotationReaderClassName) |
195 | 195 | { |
196 | - $this->doctrineAnnotationReaderClassName = (string)$doctrineAnnotationReaderClassName; |
|
196 | + $this->doctrineAnnotationReaderClassName = (string) $doctrineAnnotationReaderClassName; |
|
197 | 197 | |
198 | 198 | return $this; |
199 | 199 | } |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @link https://github.com/old-town/workflow-zf2-service |
|
4 | - * @author Malofeykin Andrey <[email protected]> |
|
5 | - */ |
|
3 | + * @link https://github.com/old-town/workflow-zf2-service |
|
4 | + * @author Malofeykin Andrey <[email protected]> |
|
5 | + */ |
|
6 | 6 | namespace OldTown\Workflow\ZF2\Service; |
7 | 7 | |
8 | 8 |
@@ -23,5 +23,5 @@ |
||
23 | 23 | * |
24 | 24 | * @Required() |
25 | 25 | */ |
26 | - public $map = []; |
|
26 | + public $map = [ ]; |
|
27 | 27 | } |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @link https://github.com/old-town/workflow-zf2-service |
|
4 | - * @author Malofeykin Andrey <[email protected]> |
|
5 | - */ |
|
3 | + * @link https://github.com/old-town/workflow-zf2-service |
|
4 | + * @author Malofeykin Andrey <[email protected]> |
|
5 | + */ |
|
6 | 6 | namespace OldTown\Workflow\ZF2\Service; |
7 | 7 | |
8 | 8 |
@@ -22,5 +22,5 @@ |
||
22 | 22 | * |
23 | 23 | * @Required() |
24 | 24 | */ |
25 | - public $argumentsMap = []; |
|
25 | + public $argumentsMap = [ ]; |
|
26 | 26 | } |
@@ -35,12 +35,12 @@ |
||
35 | 35 | 'workflow_zf2_serviceEngine' => [ |
36 | 36 | 'metadataReaderManagerClassName' => MetadataReaderManager::class, |
37 | 37 | 'metadataReader' => 'annotation', |
38 | - 'metadataReaderOptions' => [] |
|
38 | + 'metadataReaderOptions' => [ ] |
|
39 | 39 | ], |
40 | 40 | 'workflow_zf2_service' => [ |
41 | - 'invokables' => [], |
|
42 | - 'factories' => [], |
|
43 | - 'abstract_factories' => [], |
|
44 | - 'aliases' => [] |
|
41 | + 'invokables' => [ ], |
|
42 | + 'factories' => [ ], |
|
43 | + 'abstract_factories' => [ ], |
|
44 | + 'aliases' => [ ] |
|
45 | 45 | ] |
46 | 46 | ]; |
47 | 47 | \ No newline at end of file |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @link https://github.com/old-town/workflow-zf2-service |
|
4 | - * @author Malofeykin Andrey <[email protected]> |
|
5 | - */ |
|
3 | + * @link https://github.com/old-town/workflow-zf2-service |
|
4 | + * @author Malofeykin Andrey <[email protected]> |
|
5 | + */ |
|
6 | 6 | namespace OldTown\Workflow\ZF2\Service; |
7 | 7 | |
8 | 8 |