Code Duplication    Length = 6-6 lines in 3 locations

src/Eccube/Repository/CustomerRepository.php 1 location

@@ 155-160 (lines=6) @@
152
        }
153
154
        // tel
155
        if (isset($searchData['tel']) && StringUtil::isNotBlank($searchData['tel'])) {
156
            $tel = preg_replace('/[^0-9]/ ', '', $searchData['tel']);
157
            $qb
158
                ->andWhere('CONCAT(c.tel01, c.tel02, c.tel03) LIKE :tel')
159
                ->setParameter('tel', '%'.$tel.'%');
160
        }
161
162
        // buy_total
163
        if (isset($searchData['buy_total_start']) && StringUtil::isNotBlank($searchData['buy_total_start'])) {

src/Eccube/Repository/OrderRepository.php 1 location

@@ 350-355 (lines=6) @@
347
        }
348
349
        // tel
350
        if (isset($searchData['tel']) && StringUtil::isNotBlank($searchData['tel'])) {
351
            $tel = preg_replace('/[^0-9]/ ', '', $searchData['tel']);
352
            $qb
353
                ->andWhere('CONCAT(o.tel01, o.tel02, o.tel03) LIKE :tel')
354
                ->setParameter('tel', '%'.$tel.'%');
355
        }
356
357
        // sex
358
        if (!empty($searchData['sex']) && count($searchData['sex']) > 0) {

src/Eccube/Repository/ShippingRepository.php 1 location

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