Code Duplication    Length = 18-18 lines in 2 locations

tests/unit/Domain/Blog/Series/MysqlSeriesRepositoryTest.php 2 locations

@@ 189-206 (lines=18) @@
186
        );
187
    }
188
189
    protected function insertSeriesData(array $data)
190
    {
191
        $defaultData = [
192
            'id' => null,
193
            'title' => '',
194
            'description' => '',
195
        ];
196
197
        $data = array_merge($defaultData, $data);
198
199
        return self::$connection->getDefault()->perform("
200
            INSERT INTO `jpemeric_blog`.`series`
201
                (id, title, description)
202
            VALUES
203
                (:id, :title, :description)",
204
            $data
205
        );
206
    }
207
208
    protected function insertSeriesPostData(array $data)
209
    {
@@ 208-225 (lines=18) @@
205
        );
206
    }
207
208
    protected function insertSeriesPostData(array $data)
209
    {
210
        $defaultData = [
211
            'series' => '',
212
            'post' => '',
213
            'order' => 0,
214
        ];
215
216
        $data = array_merge($defaultData, $data);
217
218
        return self::$connection->getDefault()->perform("
219
            INSERT INTO `jpemeric_blog`.`series_post`
220
                (series, post, `order`)
221
            VALUES
222
                (:series, :post, :order)",
223
            $data
224
        );
225
    }
226
}
227