Code Duplication    Length = 8-9 lines in 2 locations

src/Eccube/ServiceProvider/EccubeServiceProvider.php 2 locations

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