@@ -11,7 +11,7 @@ |
||
| 11 | 11 | |
| 12 | 12 | trait CommonsTrait |
| 13 | 13 | { |
| 14 | - private static ?\DOMDocument $xml = null; |
|
| 14 | + private static ? \DOMDocument $xml = null; |
|
| 15 | 15 | |
| 16 | 16 | private static string $encoding = 'UTF-8'; |
| 17 | 17 | |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | * |
| 37 | 37 | * @throws \InvalidArgumentException |
| 38 | 38 | */ |
| 39 | - public static function createArray(string|\DOMDocument $inputXml): array |
|
| 39 | + public static function createArray(string | \DOMDocument $inputXml): array |
|
| 40 | 40 | { |
| 41 | 41 | $xml = self::getXMLRoot(); |
| 42 | 42 | if (is_string($inputXml)) { |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | } |
| 52 | 52 | $array = []; |
| 53 | 53 | $array[$xml->documentElement->tagName] = self::convert($xml->documentElement); |
| 54 | - self::$xml = null;// clear the xml node in the class for 2nd time use. |
|
| 54 | + self::$xml = null; // clear the xml node in the class for 2nd time use. |
|
| 55 | 55 | |
| 56 | 56 | return $array; |
| 57 | 57 | } |