Code Duplication    Length = 15-17 lines in 2 locations

src/AdvancedXmlWriter.php 1 location

@@ 54-70 (lines=17) @@
51
    /**
52
     * @param string $file
53
     */
54
    public function __construct(
55
        \XmlWriter $xmlWriter,
56
        $file,
57
        $rootElement = 'items',
58
        $rootElementAttributes = [],
59
        $itemElement = 'item',
60
        $version = '1.0',
61
        $encoding = null
62
    ) {
63
        $this->xmlWriter = $xmlWriter;
64
        $this->file = $file;
65
        $this->rootElement = $rootElement;
66
        $this->rootElementAttributes = $rootElementAttributes;
67
        $this->itemElement = $itemElement;
68
        $this->version = $version;
69
        $this->encoding = $encoding;
70
    }
71
72
    /**
73
     * {@inheritdoc}

src/XmlWriter.php 1 location

@@ 48-62 (lines=15) @@
45
    /**
46
     * @param string $file
47
     */
48
    public function __construct(
49
        \XmlWriter $xmlWriter,
50
        $file,
51
        $rootElement = 'items',
52
        $itemElement = 'item',
53
        $version = '1.0',
54
        $encoding = null
55
    ) {
56
        $this->xmlWriter = $xmlWriter;
57
        $this->file = $file;
58
        $this->rootElement = $rootElement;
59
        $this->itemElement = $itemElement;
60
        $this->version = $version;
61
        $this->encoding = $encoding;
62
    }
63
64
    /**
65
     * {@inheritdoc}