@@ -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 | } |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | */ |
41 | 41 | protected function addProcessConfigurationPluginCollection(DependencyContainerInterface $container): DependencyContainerInterface |
42 | 42 | { |
43 | - $container[static::PROCESS_PLUGINS] = function (DependencyContainerInterface $container) { |
|
43 | + $container[static::PROCESS_PLUGINS] = function(DependencyContainerInterface $container) { |
|
44 | 44 | return new ProcessConfigurationPluginCollection( |
45 | 45 | $this->getProcessConfigurationPlugins() |
46 | 46 | ); |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | */ |
72 | 72 | protected function addValidatorFacade(DependencyContainerInterface $container): DependencyContainerInterface |
73 | 73 | { |
74 | - $container[static::VALIDATOR_FACADE] = function (DependencyContainerInterface $container) { |
|
74 | + $container[static::VALIDATOR_FACADE] = function(DependencyContainerInterface $container) { |
|
75 | 75 | return $container->getLocator()->validator()->facade(); |
76 | 76 | }; |
77 | 77 | |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | */ |
86 | 86 | protected function addArrayHandlerFacade(DependencyContainerInterface $container): DependencyContainerInterface |
87 | 87 | { |
88 | - $container[static::ARRAY_HANDLER_FACADE] = function (DependencyContainerInterface $container) { |
|
88 | + $container[static::ARRAY_HANDLER_FACADE] = function(DependencyContainerInterface $container) { |
|
89 | 89 | return $container->getLocator()->arrayHandler()->facade(); |
90 | 90 | }; |
91 | 91 | |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | */ |
100 | 100 | protected function addTranslatorFunctions(DependencyContainerInterface $container): DependencyContainerInterface |
101 | 101 | { |
102 | - $container[static::TRANSLATOR_FUNCTIONS] = function (DependencyContainerInterface $container) { |
|
102 | + $container[static::TRANSLATOR_FUNCTIONS] = function(DependencyContainerInterface $container) { |
|
103 | 103 | return $this->getTranslatorFunctions(); |
104 | 104 | }; |
105 | 105 |