@@ -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\Options\Exception; |
7 | 7 | |
8 | 8 | use \OldTown\Workflow\ZF2\Service\Exception\ExceptionInterface as BaseException; |
@@ -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\Metadata; |
7 | 7 | |
8 | 8 | use Zend\ServiceManager\ServiceLocatorInterface; |
@@ -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\Metadata; |
7 | 7 | |
8 | 8 | use OldTown\Workflow\ZF2\Service\Metadata\Reader\ReaderInterface; |
@@ -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\Metadata\Storage\Exception; |
7 | 7 | |
8 | 8 | use OldTown\Workflow\ZF2\Service\Metadata\Exception\InvalidArgumentException as Exception; |
@@ -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\Metadata\Storage\Exception; |
7 | 7 | |
8 | 8 | use OldTown\Workflow\ZF2\Service\Metadata\Exception\RuntimeException as Exception; |
@@ -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\Metadata\Storage\Exception; |
7 | 7 | |
8 | 8 | /** |
@@ -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\Metadata\Storage; |
7 | 7 | |
8 | 8 | /** |
@@ -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\Metadata\Storage; |
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 | } |