Code Duplication    Length = 5-5 lines in 2 locations

src/Eccube/Repository/CustomerRepository.php 2 locations

@@ 182-186 (lines=5) @@
179
        }
180
181
        // Pref
182
        if (!empty($searchData['pref']) && $searchData['pref']) {
183
            $qb
184
                ->andWhere('c.Pref = :pref')
185
                ->setParameter('pref', $searchData['pref']->getId());
186
        }
187
188
        // sex
189
        if (!empty($searchData['sex']) && count($searchData['sex']) > 0) {
@@ 280-284 (lines=5) @@
277
        }
278
279
        // last_buy
280
        if (!empty($searchData['last_buy_start']) && $searchData['last_buy_start']) {
281
            $qb
282
                ->andWhere('c.last_buy_date >= :last_buy_start')
283
                ->setParameter('last_buy_start', $searchData['last_buy_start']);
284
        }
285
        if (!empty($searchData['last_buy_end']) && $searchData['last_buy_end']) {
286
            $date = clone $searchData['last_buy_end'];
287
            $date->modify('+1 days');