Code Duplication    Length = 10-10 lines in 2 locations

src/Parser/Sqlite/Writer.php 1 location

@@ 125-134 (lines=10) @@
122
     * @throws ParserConditionNotSatisfiedException
123
     * @throws UnexpectedValueException
124
     */
125
    protected function getAdapter() : AdapterInterface
126
    {
127
        if ($this->adapter === null) {
128
            $databaseFile = $this->getTemporaryFileName();
129
            $adapter = AdapterFactory::getInstance($databaseFile);
130
            $this->setAdapter($adapter);
131
        }
132
133
        return $this->adapter;
134
    }
135
136
    /**
137
     * @param AdapterInterface $adapter

src/Parser/Sqlite/Reader.php 1 location

@@ 79-88 (lines=10) @@
76
     * @throws ParserRuntimeException
77
     * @throws UnexpectedValueException
78
     */
79
    protected function getAdapter() : AdapterInterface
80
    {
81
        if ($this->adapter === null) {
82
            $databaseFile = $this->getDatabasePath();
83
            $adapter = AdapterFactory::getInstance($databaseFile);
84
            $this->setAdapter($adapter);
85
        }
86
87
        return $this->adapter;
88
    }
89
90
    /**
91
     * @return string