Code Duplication    Length = 7-7 lines in 2 locations

src/Array2XML.php 1 location

@@ 61-67 (lines=7) @@
58
     * @param bool   $standalone
59
     * @param bool   $format_output
60
     */
61
    public static function init($version = '1.0', $encoding = 'utf-8', $standalone = false, $format_output = true)
62
    {
63
        self::$xml = new DomDocument($version, $encoding);
64
        self::$xml->xmlStandalone = $standalone;
65
        self::$xml->formatOutput = $format_output;
66
        self::$encoding = $encoding;
67
    }
68
69
    /**
70
     * Get string representation of boolean value.

src/XML2Array.php 1 location

@@ 78-84 (lines=7) @@
75
     * @param bool   $standalone
76
     * @param bool   $format_output
77
     */
78
    public static function init($version = '1.0', $encoding = 'utf-8', $standalone = false, $format_output = true)
79
    {
80
        self::$xml = new DomDocument($version, $encoding);
81
        self::$xml->xmlStandalone = $standalone;
82
        self::$xml->formatOutput = $format_output;
83
        self::$encoding = $encoding;
84
    }
85
86
    /**
87
     * Convert an Array to XML.