@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | */ |
| 39 | 39 | protected function addProcessConfigurationPluginCollection(DependencyContainerInterface $container): DependencyContainerInterface |
| 40 | 40 | { |
| 41 | - $container[static::PROCESS_PLUGINS] = function (DependencyContainerInterface $container) { |
|
| 41 | + $container[static::PROCESS_PLUGINS] = function(DependencyContainerInterface $container) { |
|
| 42 | 42 | return new ProcessConfigurationPluginCollection( |
| 43 | 43 | $this->getProcessConfigurationPlugins() |
| 44 | 44 | ); |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | */ |
| 62 | 62 | protected function addValidatorFacade(DependencyContainerInterface $container): DependencyContainerInterface |
| 63 | 63 | { |
| 64 | - $container[static::VALIDATOR_FACADE] = function (DependencyContainerInterface $container) { |
|
| 64 | + $container[static::VALIDATOR_FACADE] = function(DependencyContainerInterface $container) { |
|
| 65 | 65 | return $container->getLocator()->validator()->facade(); |
| 66 | 66 | }; |
| 67 | 67 | return $container; |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | */ |
| 75 | 75 | protected function addArrayHandlerFacade(DependencyContainerInterface $container): DependencyContainerInterface |
| 76 | 76 | { |
| 77 | - $container[static::ARRAY_HANDLER_FACADE] = function (DependencyContainerInterface $container) { |
|
| 77 | + $container[static::ARRAY_HANDLER_FACADE] = function(DependencyContainerInterface $container) { |
|
| 78 | 78 | return $container->getLocator()->arrayHandler()->facade(); |
| 79 | 79 | }; |
| 80 | 80 | return $container; |
@@ -78,11 +78,9 @@ |
||
| 78 | 78 | |
| 79 | 79 | $outputHandler->write($payload); |
| 80 | 80 | } |
| 81 | - } |
|
| 82 | - catch (ValidationException $validationException) { |
|
| 81 | + } catch (ValidationException $validationException) { |
|
| 83 | 82 | throw new ProcessException("Data are invalid. Validation is failed", 0, $validationException); |
| 84 | - } |
|
| 85 | - finally { |
|
| 83 | + } finally { |
|
| 86 | 84 | $inputHandler->close(); |
| 87 | 85 | $outputHandler->close(); |
| 88 | 86 | } |