Code Duplication    Length = 5-5 lines in 2 locations

src/Eccube/Repository/OrderRepository.php 1 location

@@ 327-331 (lines=5) @@
324
        }
325
326
        // sex
327
        if (!empty($searchData['sex']) && count($searchData['sex']) > 0) {
328
            $qb
329
                ->andWhere($qb->expr()->in('o.Sex', ':sex'))
330
                ->setParameter('sex', $searchData['sex']->toArray());
331
        }
332
333
        // payment
334
        if (!empty($searchData['payment']) && count($searchData['payment'])) {

src/Eccube/Repository/ShippingRepository.php 1 location

@@ 98-102 (lines=5) @@
95
        }
96
97
        // sex
98
        if (!empty($searchData['sex']) && count($searchData['sex']) > 0) {
99
            $qb
100
                ->andWhere($qb->expr()->in('o.Sex', ':sex'))
101
                ->setParameter('sex', $searchData['sex']->toArray());
102
        }
103
104
        // payment
105
        if (!empty($searchData['payment']) && count($searchData['payment'])) {