Code Duplication    Length = 12-12 lines in 2 locations

HandEvaluator/HandFinder.php 2 locations

@@ 299-310 (lines=12) @@
296
     *
297
     * @return array|bool
298
     */
299
    private function isFourOfAKind(array $cards)
300
    {
301
        $faces = $this->findMultipleFaceCards($cards);
302
303
        foreach ($faces as $face => $groupedFaces) {
304
            if (count($groupedFaces) == 4) {
305
                return $this->getResponse('Four of a kind', 8, $this->getRank($groupedFaces), $groupedFaces);
306
            }
307
        }
308
309
        return false;
310
    }
311
312
    /**
313
     * Return an array if the cards are a Full House
@@ 458-469 (lines=12) @@
455
     *
456
     * @return array|bool
457
     */
458
    private function isTreeOfAKind(array $cards)
459
    {
460
        $faces = $this->findMultipleFaceCards($cards);
461
462
        foreach ($faces as $face => $groupedFaces) {
463
            if (count($groupedFaces) == 3) {
464
                return $this->getResponse('Three of a kind', 4, $this->getRank($groupedFaces), $groupedFaces);
465
            }
466
        }
467
468
        return false;
469
    }
470
471
    /**
472
     * Find one or n pair