Code Duplication    Length = 7-8 lines in 2 locations

src/RunOpenCode/Sax/StreamAdapter/DomDocumentAdapter.php 1 location

@@ 40-47 (lines=8) @@
37
     * @param string $streamClass FQCN of StreamInterface implementation, GuzzleHttp\Stream\Stream is used by default.
38
     * @param array $options Adapter options.
39
     */
40
    public function __construct($streamClass = 'GuzzleHttp\\Stream\\Stream', array $options = array())
41
    {
42
        $this->streamClass = $streamClass;
43
        $this->options = array_merge(array(
44
            'stream' => 'php://memory',
45
            'save_xml_options' => null
46
        ), $options);
47
    }
48
49
    /**
50
     * {@inheritdoc}

src/RunOpenCode/Sax/StreamAdapter/SimpleXmlAdapter.php 1 location

@@ 33-39 (lines=7) @@
30
     * @param string $streamClass FQCN of StreamInterface implementation, GuzzleHttp\Stream\Stream is used by default.
31
     * @param array $options Adapter options.
32
     */
33
    public function __construct($streamClass = 'GuzzleHttp\\Stream\\Stream', array $options = array())
34
    {
35
        $this->streamClass = $streamClass;
36
        $this->options = array_merge(array(
37
            'stream' => 'php://memory'
38
        ), $options);
39
    }
40
41
    /**
42
     * {@inheritdoc}