Code Duplication    Length = 8-9 lines in 2 locations

src/Eccube/ServiceProvider/EccubeServiceProvider.php 2 locations

@@ 251-259 (lines=9) @@
248
            return $flow;
249
        };
250
251
        $app['eccube.purchase.flow.shopping'] = function () use ($app) {
252
            $flow = new PurchaseFlow();
253
            $flow->addItemProcessor(new StockValidator());
254
            $flow->addItemProcessor(new DisplayStatusValidator());
255
            $flow->addItemHolderProcessor(new PaymentTotalLimitValidator($app['config']['max_total_fee']));
256
            $flow->addItemHolderProcessor(new DeliveryFeeProcessor($app['orm.em']));
257
            $flow->addItemHolderProcessor(new PaymentTotalNegativeValidator());
258
            return $flow;
259
        };
260
261
        $app['eccube.purchase.flow.order'] = function () use ($app) {
262
            $flow = new PurchaseFlow();
@@ 261-268 (lines=8) @@
258
            return $flow;
259
        };
260
261
        $app['eccube.purchase.flow.order'] = function () use ($app) {
262
            $flow = new PurchaseFlow();
263
            $flow->addItemProcessor(new StockValidator());
264
            $flow->addItemHolderProcessor(new PaymentTotalLimitValidator($app['config']['max_total_fee']));
265
            $flow->addPurchaseProcessor(new UpdateDatePurchaseProcessor($app['config']));
266
            $flow->addPurchaseProcessor(new AdminOrderRegisterPurchaseProcessor($app));
267
            return $flow;
268
        };
269
    }
270
271
    public function subscribe(Container $app, EventDispatcherInterface $dispatcher)