@@ -23,19 +23,19 @@ |
||
| 23 | 23 | * |
| 24 | 24 | * @var string |
| 25 | 25 | */ |
| 26 | - const EVENT_RENDER = 'render'; |
|
| 26 | + const EVENT_RENDER = 'render'; |
|
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | 29 | * Запуск нового процесса workflow |
| 30 | 30 | * |
| 31 | 31 | * @var string |
| 32 | 32 | */ |
| 33 | - const EVENT_WORKFLOW_INITIALIZE = 'initialize'; |
|
| 33 | + const EVENT_WORKFLOW_INITIALIZE = 'initialize'; |
|
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | 36 | * Запуск перехода между двумя действиями workflow |
| 37 | 37 | * |
| 38 | 38 | * @var string |
| 39 | 39 | */ |
| 40 | - const EVENT_DO_ACTION = 'doAction'; |
|
| 40 | + const EVENT_DO_ACTION = 'doAction'; |
|
| 41 | 41 | } |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | * |
| 21 | 21 | * @var string |
| 22 | 22 | */ |
| 23 | - const EVENT_CREATE = 'workflow.manager.create'; |
|
| 23 | + const EVENT_CREATE = 'workflow.manager.create'; |
|
| 24 | 24 | |
| 25 | 25 | /** |
| 26 | 26 | * @var WorkflowInterface |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | */ |
| 101 | 101 | public function setViewName($viewName) |
| 102 | 102 | { |
| 103 | - $this->viewName = (string)$viewName; |
|
| 103 | + $this->viewName = (string) $viewName; |
|
| 104 | 104 | |
| 105 | 105 | return $this; |
| 106 | 106 | } |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | */ |
| 141 | 141 | public function setEntryId($entryId) |
| 142 | 142 | { |
| 143 | - $this->entryId = (integer)$entryId; |
|
| 143 | + $this->entryId = (integer) $entryId; |
|
| 144 | 144 | |
| 145 | 145 | return $this; |
| 146 | 146 | } |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | public function createService(ServiceLocatorInterface $serviceLocator) |
| 35 | 35 | { |
| 36 | 36 | $caller = false; |
| 37 | - $appSm = method_exists($serviceLocator, 'getServiceLocator') ? call_user_func([$serviceLocator, 'getServiceLocator']) : null; |
|
| 37 | + $appSm = method_exists($serviceLocator, 'getServiceLocator') ? call_user_func([ $serviceLocator, 'getServiceLocator' ]) : null; |
|
| 38 | 38 | if ($appSm && $appSm->has('Application')) { |
| 39 | 39 | /** @var Application $app */ |
| 40 | 40 | $app = $appSm->get('Application'); |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | try { |
| 81 | 81 | $creationOptions = $this->getCreationOptions(); |
| 82 | 82 | if (array_key_exists(static::WORKFLOW_CONFIGURATION_NAME, $creationOptions)) { |
| 83 | - $this->setWorkflowConfigurationName($creationOptions[static::WORKFLOW_CONFIGURATION_NAME]); |
|
| 83 | + $this->setWorkflowConfigurationName($creationOptions[ static::WORKFLOW_CONFIGURATION_NAME ]); |
|
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | /** @var ModuleOptions $moduleOptions */ |
@@ -221,7 +221,7 @@ discard block |
||
| 221 | 221 | */ |
| 222 | 222 | public function setWorkflowConfigurationName($workflowConfigurationName) |
| 223 | 223 | { |
| 224 | - $this->workflowConfigurationName = (string)$workflowConfigurationName; |
|
| 224 | + $this->workflowConfigurationName = (string) $workflowConfigurationName; |
|
| 225 | 225 | |
| 226 | 226 | return $this; |
| 227 | 227 | } |
@@ -28,9 +28,9 @@ |
||
| 28 | 28 | { |
| 29 | 29 | /** @var array $appConfig */ |
| 30 | 30 | $appConfig = $serviceLocator->get('config'); |
| 31 | - $config = []; |
|
| 31 | + $config = [ ]; |
|
| 32 | 32 | if (array_key_exists(Module::CONFIG_KEY, $appConfig)) { |
| 33 | - $config = $appConfig[Module::CONFIG_KEY]; |
|
| 33 | + $config = $appConfig[ Module::CONFIG_KEY ]; |
|
| 34 | 34 | } |
| 35 | 35 | $moduleOptions = new ModuleOptions($config); |
| 36 | 36 | return $moduleOptions; |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | * |
| 27 | 27 | * @var array |
| 28 | 28 | */ |
| 29 | - protected $options = []; |
|
| 29 | + protected $options = [ ]; |
|
| 30 | 30 | |
| 31 | 31 | /** |
| 32 | 32 | * Возвращает имя сервиса |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | */ |
| 54 | 54 | public function setName($name) |
| 55 | 55 | { |
| 56 | - $this->name = (string)$name; |
|
| 56 | + $this->name = (string) $name; |
|
| 57 | 57 | |
| 58 | 58 | return $this; |
| 59 | 59 | } |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | * |
| 34 | 34 | * @var array |
| 35 | 35 | */ |
| 36 | - protected $managerAliases = []; |
|
| 36 | + protected $managerAliases = [ ]; |
|
| 37 | 37 | |
| 38 | 38 | /** |
| 39 | 39 | * @return array |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | * |
| 93 | 93 | * @return $this |
| 94 | 94 | */ |
| 95 | - public function setManagerAliases(array $managerAliases = []) |
|
| 95 | + public function setManagerAliases(array $managerAliases = [ ]) |
|
| 96 | 96 | { |
| 97 | 97 | $this->managerAliases = $managerAliases; |
| 98 | 98 | |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | throw new Exception\InvalidManagerNameException($errMsg); |
| 117 | 117 | } |
| 118 | 118 | |
| 119 | - return new ManagerOptions($this->managers[$managerName]); |
|
| 119 | + return new ManagerOptions($this->managers[ $managerName ]); |
|
| 120 | 120 | } |
| 121 | 121 | |
| 122 | 122 | |
@@ -136,6 +136,6 @@ discard block |
||
| 136 | 136 | throw new Exception\InvalidConfigurationNameException($errMsg); |
| 137 | 137 | } |
| 138 | 138 | |
| 139 | - return new ConfigurationOptions($this->configurations[$configurationName]); |
|
| 139 | + return new ConfigurationOptions($this->configurations[ $configurationName ]); |
|
| 140 | 140 | } |
| 141 | 141 | } |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | * |
| 36 | 36 | * @var array |
| 37 | 37 | */ |
| 38 | - protected $workflows = []; |
|
| 38 | + protected $workflows = [ ]; |
|
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | 41 | * Возвращает имя конфигурации для данного менеджера workflow |