Code Duplication    Length = 12-12 lines in 6 locations

spec/Repo/Milestone/Converter/GithubMilestoneConverterSpec.php 6 locations

@@ 262-273 (lines=12) @@
259
        return $testData;
260
    }
261
262
    public function provideOpenMilestones()
263
    {
264
        $testData = [];
265
266
        foreach ($this->getDataProvider()->getAllMilestones() as $item) {
267
            if ('open' === $item['state']) {
268
                $testData[] = [$item];
269
            }
270
        }
271
272
        return $testData;
273
    }
274
275
    public function provideClosedMilestones()
276
    {
@@ 275-286 (lines=12) @@
272
        return $testData;
273
    }
274
275
    public function provideClosedMilestones()
276
    {
277
        $testData = [];
278
279
        foreach ($this->getDataProvider()->getAllMilestones() as $item) {
280
            if ('closed' === $item['state']) {
281
                $testData[] = [$item];
282
            }
283
        }
284
285
        return $testData;
286
    }
287
288
    public function provideMilestonesWithDueDate()
289
    {
@@ 288-299 (lines=12) @@
285
        return $testData;
286
    }
287
288
    public function provideMilestonesWithDueDate()
289
    {
290
        $testData = [];
291
292
        foreach ($this->getDataProvider()->getAllMilestones() as $item) {
293
            if (null !== $item['due_on']) {
294
                $testData[] = [$item];
295
            }
296
        }
297
298
        return $testData;
299
    }
300
301
    public function provideMilestonesWithOutDueDate()
302
    {
@@ 301-312 (lines=12) @@
298
        return $testData;
299
    }
300
301
    public function provideMilestonesWithOutDueDate()
302
    {
303
        $testData = [];
304
305
        foreach ($this->getDataProvider()->getAllMilestones() as $item) {
306
            if (null === $item['due_on']) {
307
                $testData[] = [$item];
308
            }
309
        }
310
311
        return $testData;
312
    }
313
314
    public function provideMilestonesWithCreator()
315
    {
@@ 314-325 (lines=12) @@
311
        return $testData;
312
    }
313
314
    public function provideMilestonesWithCreator()
315
    {
316
        $testData = [];
317
318
        foreach ($this->getDataProvider()->getAllMilestones() as $item) {
319
            if (null !== $item['creator']) {
320
                $testData[] = [$item];
321
            }
322
        }
323
324
        return $testData;
325
    }
326
327
    public function provideMilestonesWithOutCreator()
328
    {
@@ 327-338 (lines=12) @@
324
        return $testData;
325
    }
326
327
    public function provideMilestonesWithOutCreator()
328
    {
329
        $testData = [];
330
331
        foreach ($this->getDataProvider()->getAllMilestones('symfony/symfony') as $item) {
332
            if (null === $item['creator']) {
333
                $testData[] = [$item];
334
            }
335
        }
336
337
        return $testData;
338
    }
339
340
    protected function getDataProvider()
341
    {