@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | * @throws Exception\RuntimeException |
73 | 73 | * @throws Exception\ResultNotFoundException |
74 | 74 | */ |
75 | - public function getValidator($type, array $args = []) |
|
75 | + public function getValidator($type, array $args = [ ]) |
|
76 | 76 | { |
77 | 77 | $chain = clone $this->chain; |
78 | 78 | while ($chain) { |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | * @throws Exception\ResultNotFoundException |
105 | 105 | * @throws Exception\RuntimeException |
106 | 106 | */ |
107 | - public function getRegister($type, array $args = []) |
|
107 | + public function getRegister($type, array $args = [ ]) |
|
108 | 108 | { |
109 | 109 | $chain = clone $this->chain; |
110 | 110 | while ($chain) { |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | * @throws Exception\RuntimeException |
137 | 137 | * @throws Exception\ResultNotFoundException |
138 | 138 | */ |
139 | - public function getFunction($type, array $args = []) |
|
139 | + public function getFunction($type, array $args = [ ]) |
|
140 | 140 | { |
141 | 141 | $chain = clone $this->chain; |
142 | 142 | while ($chain) { |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | * @throws Exception\ResultNotFoundException |
169 | 169 | * @throws Exception\RuntimeException |
170 | 170 | */ |
171 | - public function getCondition($type, array $args = []) |
|
171 | + public function getCondition($type, array $args = [ ]) |
|
172 | 172 | { |
173 | 173 | $chain = clone $this->chain; |
174 | 174 | while ($chain) { |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | */ |
207 | 207 | public function setFlagIgnoreException($flagIgnoreException) |
208 | 208 | { |
209 | - $this->flagIgnoreException = (boolean)$flagIgnoreException; |
|
209 | + $this->flagIgnoreException = (boolean) $flagIgnoreException; |
|
210 | 210 | |
211 | 211 | return $this; |
212 | 212 | } |
@@ -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 |
@@ -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 |
@@ -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 |
@@ -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 | } |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | * |
18 | 18 | * @var array |
19 | 19 | */ |
20 | - protected $argumentsMap = []; |
|
20 | + protected $argumentsMap = [ ]; |
|
21 | 21 | |
22 | 22 | /** |
23 | 23 | * Имя переменной в transientVars, в которую нужно сохранить результаты сервиса |
@@ -45,14 +45,14 @@ discard block |
||
45 | 45 | * |
46 | 46 | * @var array |
47 | 47 | */ |
48 | - protected $resultMap = []; |
|
48 | + protected $resultMap = [ ]; |
|
49 | 49 | |
50 | 50 | /** |
51 | 51 | * Хеши обеспечивающие уникальность данных используемых для маппинга результатов работы сервиса |
52 | 52 | * |
53 | 53 | * @var array |
54 | 54 | */ |
55 | - protected $resultMapHash = []; |
|
55 | + protected $resultMapHash = [ ]; |
|
56 | 56 | |
57 | 57 | /** |
58 | 58 | * Добвляет элемент в карту маппинга аргументов |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | throw new Exception\InvalidArgumentMapException($errMsg); |
72 | 72 | } |
73 | 73 | |
74 | - $this->argumentsMap[$to] = $fromArgName; |
|
74 | + $this->argumentsMap[ $to ] = $fromArgName; |
|
75 | 75 | |
76 | 76 | return $this; |
77 | 77 | } |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | */ |
106 | 106 | public function setResultVariableName($resultVariableName) |
107 | 107 | { |
108 | - $this->resultVariableName = (string)$resultVariableName; |
|
108 | + $this->resultVariableName = (string) $resultVariableName; |
|
109 | 109 | |
110 | 110 | return $this; |
111 | 111 | } |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | */ |
130 | 130 | public function setAllowOverrideResult($allowOverrideResult) |
131 | 131 | { |
132 | - $this->allowOverrideResult = (boolean)$allowOverrideResult; |
|
132 | + $this->allowOverrideResult = (boolean) $allowOverrideResult; |
|
133 | 133 | |
134 | 134 | return $this; |
135 | 135 | } |
@@ -162,8 +162,8 @@ discard block |
||
162 | 162 | } |
163 | 163 | |
164 | 164 | |
165 | - $this->resultMap[$item->getFrom()] = $item; |
|
166 | - $this->resultMapHash[$key] = $key; |
|
165 | + $this->resultMap[ $item->getFrom() ] = $item; |
|
166 | + $this->resultMapHash[ $key ] = $key; |
|
167 | 167 | $this->flagUseResultMap = true; |
168 | 168 | |
169 | 169 | return $this; |
@@ -197,6 +197,6 @@ discard block |
||
197 | 197 | $errMsg = sprintf('Map for key %s not found', $from); |
198 | 198 | throw new Exception\InvalidResultMapException($errMsg); |
199 | 199 | } |
200 | - return $this->resultMap[$from]; |
|
200 | + return $this->resultMap[ $from ]; |
|
201 | 201 | } |
202 | 202 | } |
@@ -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 | } |
@@ -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 |