Code Duplication    Length = 6-6 lines in 3 locations

src/Eccube/Repository/CustomerRepository.php 1 location

@@ 212-217 (lines=6) @@
209
        }
210
211
        // tel
212
        if (isset($searchData['tel']) && StringUtil::isNotBlank($searchData['tel'])) {
213
            $tel = preg_replace('/[^0-9]/ ', '', $searchData['tel']);
214
            $qb
215
                ->andWhere('CONCAT(c.tel01, c.tel02, c.tel03) LIKE :tel')
216
                ->setParameter('tel', '%'.$tel.'%');
217
        }
218
219
        // buy_total
220
        if (isset($searchData['buy_total_start']) && StringUtil::isNotBlank($searchData['buy_total_start'])) {

src/Eccube/Repository/OrderRepository.php 1 location

@@ 338-343 (lines=6) @@
335
        }
336
337
        // tel
338
        if (isset($searchData['tel']) && StringUtil::isNotBlank($searchData['tel'])) {
339
            $tel = preg_replace('/[^0-9]/ ', '', $searchData['tel']);
340
            $qb
341
                ->andWhere('CONCAT(o.tel01, o.tel02, o.tel03) LIKE :tel')
342
                ->setParameter('tel', '%' . $tel . '%');
343
        }
344
345
        // sex
346
        if (!empty($searchData['sex']) && count($searchData['sex']) > 0) {

src/Eccube/Repository/ShippingRepository.php 1 location

@@ 137-142 (lines=6) @@
134
        }
135
136
        // tel
137
        if (isset($searchData['tel']) && StringUtil::isNotBlank($searchData['tel'])) {
138
            $tel = preg_replace('/[^0-9]/ ', '', $searchData['tel']);
139
            $qb
140
                ->andWhere('CONCAT(s.tel01, s.tel02, s.tel03) LIKE :tel')
141
                ->setParameter('tel', '%' . $tel . '%');
142
        }
143
144
        // payment
145
        if (!empty($searchData['payment']) && count($searchData['payment'])) {