Code Duplication    Length = 5-5 lines in 2 locations

src/Eccube/Repository/CustomerRepository.php 2 locations

@@ 173-177 (lines=5) @@
170
        }
171
172
        // Pref
173
        if (!empty($searchData['pref']) && $searchData['pref']) {
174
            $qb
175
                ->andWhere('c.Pref = :pref')
176
                ->setParameter('pref', $searchData['pref']->getId());
177
        }
178
179
        // sex
180
        if (!empty($searchData['sex']) && count($searchData['sex']) > 0) {
@@ 271-275 (lines=5) @@
268
        }
269
270
        // last_buy
271
        if (!empty($searchData['last_buy_start']) && $searchData['last_buy_start']) {
272
            $qb
273
                ->andWhere('c.last_buy_date >= :last_buy_start')
274
                ->setParameter('last_buy_start', $searchData['last_buy_start']);
275
        }
276
        if (!empty($searchData['last_buy_end']) && $searchData['last_buy_end']) {
277
            $date = clone $searchData['last_buy_end'];
278
            $date->modify('+1 days');