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