Test Failed
Pull Request — master (#805)
by Maxim
06:32
created
src/Validation/src/Bootloader/ValidationBootloader.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 
27 27
     public function __construct(
28 28
         private readonly ConfiguratorInterface $config
29
-    ) {
29
+    ){
30 30
     }
31 31
 
32 32
     public function init(): void
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      */
42 42
     public function setDefaultValidator(string $name): void
43 43
     {
44
-        if ($this->config->getConfig(ValidationConfig::CONFIG)['defaultValidator'] === null) {
44
+        if ($this->config->getConfig(ValidationConfig::CONFIG)['defaultValidator'] === null){
45 45
             $this->config->modify(ValidationConfig::CONFIG, new Set('defaultValidator', $name));
46 46
         }
47 47
     }
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         ValidationConfig $config,
54 54
         ValidationProviderInterface $provider
55 55
     ): ValidationInterface {
56
-        if ($config->getDefaultValidator() === null) {
56
+        if ($config->getDefaultValidator() === null){
57 57
             throw new ValidationException('Default Validator is not configured.');
58 58
         }
59 59
 
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,8 @@  discard block
 block discarded – undo
41 41
      */
42 42
     public function setDefaultValidator(string $name): void
43 43
     {
44
-        if ($this->config->getConfig(ValidationConfig::CONFIG)['defaultValidator'] === null) {
44
+        if ($this->config->getConfig(ValidationConfig::CONFIG)['defaultValidator'] === null)
45
+        {
45 46
             $this->config->modify(ValidationConfig::CONFIG, new Set('defaultValidator', $name));
46 47
         }
47 48
     }
@@ -53,7 +54,8 @@  discard block
 block discarded – undo
53 54
         ValidationConfig $config,
54 55
         ValidationProviderInterface $provider
55 56
     ): ValidationInterface {
56
-        if ($config->getDefaultValidator() === null) {
57
+        if ($config->getDefaultValidator() === null)
58
+        {
57 59
             throw new ValidationException('Default Validator is not configured.');
58 60
         }
59 61
 
Please login to merge, or discard this patch.