Completed
Push — master ( 0ddfa4...37d4f2 )
by Lars
01:37
created
src/voku/helper/XmlDomParser.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
             /** @noinspection StringFragmentMisplacedInspection */
211 211
             if (\stripos('<?xml', $xml) !== 0) {
212 212
                 $xmlHackUsed = true;
213
-                $xml = '<?xml encoding="' . $this->getEncoding() . '" ?>' . $xml;
213
+                $xml = '<?xml encoding="'.$this->getEncoding().'" ?>'.$xml;
214 214
             }
215 215
 
216 216
             $documentFound = $this->document->loadXML($xml, $optionsXml);
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
             &&
234 234
             \count($xmlErrors) > 0
235 235
         ) {
236
-            $errorStr = 'XML-Errors: ' . \print_r($xmlErrors, true) . ' in ' . \print_r($xml, true);
236
+            $errorStr = 'XML-Errors: '.\print_r($xmlErrors, true).' in '.\print_r($xml, true);
237 237
 
238 238
             if (!$this->reportXmlErrorsAsException) {
239 239
                 \trigger_error($errorStr, \E_USER_WARNING);
@@ -564,7 +564,7 @@  discard block
 block discarded – undo
564 564
     private function removeXPathNamespaces(string $xml): string
565 565
     {
566 566
         foreach ($this->xPathNamespaces as $key => $value) {
567
-            $xml = \str_replace($key . ':', '', $xml);
567
+            $xml = \str_replace($key.':', '', $xml);
568 568
         }
569 569
 
570 570
         return (string) \preg_replace('#xmlns:?.*=(["\'])(?:.*)\\1#Ui', '', $xml);
Please login to merge, or discard this patch.