Passed
Push — master ( a47b84...e9548c )
by Mike
02:36
created
src/Xervice/Processor/ProcessorDependencyProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Xervice/Processor/Business/Model/Processor/Processor.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -78,11 +78,9 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.