Code Duplication    Length = 6-6 lines in 3 locations

src/Eccube/Repository/OrderRepository.php 1 location

@@ 342-347 (lines=6) @@
339
        }
340
341
        // tel
342
        if (isset($searchData['phone_number']) && StringUtil::isNotBlank($searchData['phone_number'])) {
343
            $tel = preg_replace('/[^0-9]/ ', '', $searchData['phone_number']);
344
            $qb
345
                ->andWhere('o.phone_number LIKE :phone_number')
346
                ->setParameter('phone_number', '%'.$tel.'%');
347
        }
348
349
        // sex
350
        if (!empty($searchData['sex']) && count($searchData['sex']) > 0) {

src/Eccube/Repository/ShippingRepository.php 1 location

@@ 127-132 (lines=6) @@
124
        }
125
126
        // tel
127
        if (isset($searchData['phone_number']) && StringUtil::isNotBlank($searchData['phone_number'])) {
128
            $tel = preg_replace('/[^0-9]/ ', '', $searchData['phone_number']);
129
            $qb
130
                ->andWhere('s.phone_number LIKE :phone_number')
131
                ->setParameter('phone_number', '%'.$tel.'%');
132
        }
133
134
        // payment
135
        if (!empty($searchData['payment']) && count($searchData['payment'])) {

src/Eccube/Repository/CustomerRepository.php 1 location

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