Code Duplication    Length = 10-10 lines in 2 locations

src/Eccube/Repository/OrderRepository.php 1 location

@@ 187-196 (lines=10) @@
184
        }
185
186
        // payment
187
        if (!empty($searchData['payment']) && count($searchData['payment'])) {
188
            $payments = [];
189
            foreach ($searchData['payment'] as $payment) {
190
                $payments[] = $payment->getId();
191
            }
192
            $qb
193
                ->leftJoin('o.Payment', 'p')
194
                ->andWhere($qb->expr()->in('p.id', ':payments'))
195
                ->setParameter('payments', $payments);
196
        }
197
198
        // oreder_date
199
        if (!empty($searchData['order_date_start']) && $searchData['order_date_start']) {

src/Eccube/Repository/ShippingRepository.php 1 location

@@ 135-144 (lines=10) @@
132
        }
133
134
        // payment
135
        if (!empty($searchData['payment']) && count($searchData['payment'])) {
136
            $payments = [];
137
            foreach ($searchData['payment'] as $payment) {
138
                $payments[] = $payment->getId();
139
            }
140
            $qb
141
                ->leftJoin('o.Payment', 'p')
142
                ->andWhere($qb->expr()->in('p.id', ':payments'))
143
                ->setParameter('payments', $payments);
144
        }
145
146
        // oreder_date
147
        if (!empty($searchData['order_date_start']) && $searchData['order_date_start']) {