Code Duplication    Length = 8-9 lines in 2 locations

Bootstrap.php 2 locations

@@ 1442-1450 (lines=9) @@
1439
            }
1440
        }
1441
1442
        if ($request->getControllerName() == 'register' && $request->getActionName() == 'index') {
1443
            $this->registerMyTemplateDir();
1444
            $view->assign('KlarnaLocale', $this->getLocale());
1445
            $view->assign('KlarnaMerchantId', $config->get('merchantId'));
1446
            $view->assign('KlarnaHideCheckoutSteps', true);
1447
            if (!$this->isTemplateResponsive()) {
1448
                $view->extendsTemplate('frontend/payment_klarna_checkout/register.tpl');
1449
            }
1450
        }
1451
1452
        if ($request->getControllerName() == 'account' && $request->getActionName() == 'ajax_login') {
1453
            $this->registerMyTemplateDir();
@@ 1452-1459 (lines=8) @@
1449
            }
1450
        }
1451
1452
        if ($request->getControllerName() == 'account' && $request->getActionName() == 'ajax_login') {
1453
            $this->registerMyTemplateDir();
1454
            $view->assign('KlarnaLocale', $this->getLocale());
1455
            $view->assign('KlarnaMerchantId', $config->get('merchantId'));
1456
            if (!$this->isTemplateResponsive()) {
1457
                $view->extendsTemplate('frontend/payment_klarna_checkout/ajax_login.tpl');
1458
            }
1459
        }
1460
1461
        if ($request->getControllerName() == 'checkout' && $request->getActionName() == 'shippingPayment') {
1462
            $this->registerMyTemplateDir();