Code Duplication    Length = 8-9 lines in 2 locations

src/Eccube/ServiceProvider/EccubeServiceProvider.php 2 locations

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