@@ -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 | |
@@ -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\Event; |
| 7 | 7 | |
| 8 | 8 | use OldTown\Workflow\WorkflowInterface; |
@@ -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 | |