Code Duplication    Length = 10-10 lines in 2 locations

src/Eccube/Repository/OrderRepository.php 2 locations

@@ 183-192 (lines=10) @@
180
        }
181
182
        // payment
183
        if (!empty($searchData['payment']) && count($searchData['payment'])) {
184
            $payments = array();
185
            foreach ($searchData['payment'] as $payment) {
186
                $payments[] = $payment->getId();
187
            }
188
            $qb
189
                ->leftJoin('o.Payment', 'p')
190
                ->andWhere($qb->expr()->in('p.id', ':payments'))
191
                ->setParameter('payments', $payments);
192
        }
193
194
        // oreder_date
195
        if (!empty($searchData['order_date_start']) && $searchData['order_date_start']) {
@@ 336-345 (lines=10) @@
333
        }
334
335
        // payment
336
        if (!empty($searchData['payment']) && count($searchData['payment'])) {
337
            $payments = array();
338
            foreach ($searchData['payment'] as $payment) {
339
                $payments[] = $payment->getId();
340
            }
341
            $qb
342
                ->leftJoin('o.Payment', 'p')
343
                ->andWhere($qb->expr()->in('p.id', ':payments'))
344
                ->setParameter('payments', $payments);
345
        }
346
347
        // oreder_date
348
        if (!empty($searchData['order_date_start']) && $searchData['order_date_start']) {