Code Duplication    Length = 8-9 lines in 2 locations

src/Eccube/ServiceProvider/EccubeServiceProvider.php 2 locations

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