Passed
Pull Request — master (#123)
by
unknown
04:33
created
Classes/Validation/AbstractDlfValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
     public function validate($value)
49 49
     {
50 50
         if (!$value instanceof $this->valueClassName) {
51
-            $this->logger->debug('Value must be an instance of ' . $this->valueClassName . '.');
51
+            $this->logger->debug('Value must be an instance of '.$this->valueClassName.'.');
52 52
             throw new InvalidArgumentException('Type of value is not valid.', 1723126505626);
53 53
         }
54 54
         return parent::validate($value);
Please login to merge, or discard this patch.
Classes/Validation/AbstractDlfValidationStack.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     {
55 55
         foreach ($configuration as $configurationItem) {
56 56
             if (!class_exists($configurationItem["className"])) {
57
-                $this->logger->error('Unable to load class ' . $configurationItem["className"] . '.');
57
+                $this->logger->error('Unable to load class '.$configurationItem["className"].'.');
58 58
                 throw new InvalidArgumentException('Unable to load validator class.', 1723200537037);
59 59
             }
60 60
             $breakOnError = !isset($configurationItem["breakOnError"]) || $configurationItem["breakOnError"] !== "false";
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
         }
84 84
 
85 85
         if (!$validator instanceof AbstractDlfValidator) {
86
-            $this->logger->error($className . ' must be an instance of AbstractDlfValidator.');
86
+            $this->logger->error($className.' must be an instance of AbstractDlfValidator.');
87 87
             throw new InvalidArgumentException('Class must be an instance of AbstractDlfValidator.', 1723121212747);
88 88
         }
89 89
 
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
     protected function isValid($value): void
105 105
     {
106 106
         if (!$value instanceof $this->valueClassName) {
107
-            $this->logger->error('Value must be an instance of ' . $this->valueClassName . '.');
107
+            $this->logger->error('Value must be an instance of '.$this->valueClassName.'.');
108 108
             throw new InvalidArgumentException('Type of value is not valid.', 1723127564821);
109 109
         }
110 110
 
Please login to merge, or discard this patch.
Classes/Validation/SaxonXslToSvrlValidator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,11 +61,11 @@
 block discarded – undo
61 61
     protected function process(mixed $value): string
62 62
     {
63 63
         // using source from standard input
64
-        $process = new Process(['java', '-jar', $this->jar, '-xsl:' . $this->xsl, '-s:-'], null, null, $value->saveXML());
64
+        $process = new Process(['java', '-jar', $this->jar, '-xsl:'.$this->xsl, '-s:-'], null, null, $value->saveXML());
65 65
         $process->run();
66 66
         // executes after the command finish
67 67
         if (!$process->isSuccessful()) {
68
-            $this->logger->error('Processing exits with code "' . $process->getExitCode() . '"');
68
+            $this->logger->error('Processing exits with code "'.$process->getExitCode().'"');
69 69
             throw new InvalidArgumentException('Processing was not successful.', 1724862680);
70 70
         }
71 71
         return $process->getOutput();
Please login to merge, or discard this patch.
Classes/Middleware/DOMDocumentValidation.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -78,19 +78,19 @@
 block discarded – undo
78 78
         $validation = GeneralUtility::makeInstance(DOMDocumentValidationStack::class, $settings['domDocumentValidationValidators']);
79 79
 
80 80
         if (!GeneralUtility::isValidUrl($urlParam)) {
81
-            $this->logger->debug('Parameter "' . $urlParam . '" is not a valid url.');
81
+            $this->logger->debug('Parameter "'.$urlParam.'" is not a valid url.');
82 82
             throw new InvalidArgumentException('Value of url parameter is not a valid url.', 1724852611);
83 83
         }
84 84
 
85 85
         $content = GeneralUtility::getUrl($urlParam);
86 86
         if ($content === false) {
87
-            $this->logger->debug('Error while loading content of "' . $urlParam . '"');
87
+            $this->logger->debug('Error while loading content of "'.$urlParam.'"');
88 88
             throw new InvalidArgumentException('Error while loading content of url.', 1724420640);
89 89
         }
90 90
 
91 91
         $document = new DOMDocument();
92 92
         if ($document->loadXML($content) === false) {
93
-            $this->logger->debug('Error converting content of "' . $urlParam . '" to xml.');
93
+            $this->logger->debug('Error converting content of "'.$urlParam.'" to xml.');
94 94
             throw new InvalidArgumentException('Error converting content to xml.', 1724420648);
95 95
         }
96 96
 
Please login to merge, or discard this patch.