Code Duplication    Length = 8-9 lines in 2 locations

src/Eccube/ServiceProvider/EccubeServiceProvider.php 2 locations

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