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']) {
@@ 353-362 (lines=10) @@
350
        }
351
352
        // payment
353
        if (!empty($searchData['payment']) && count($searchData['payment'])) {
354
            $payments = array();
355
            foreach ($searchData['payment'] as $payment) {
356
                $payments[] = $payment->getId();
357
            }
358
            $qb
359
                ->leftJoin('o.Payment', 'p')
360
                ->andWhere($qb->expr()->in('p.id', ':payments'))
361
                ->setParameter('payments', $payments);
362
        }
363
364
        // oreder_date
365
        if (!empty($searchData['order_date_start']) && $searchData['order_date_start']) {