Code Duplication    Length = 3-3 lines in 2 locations

src/Controller/Shop/Shoppingcart.php 2 locations

@@ 73-75 (lines=3) @@
70
            if (isset($_SESSION['cart']) && count($_SESSION['cart']) >= 1) {
71
                if (filter_input(INPUT_POST, 'doCheckout') === 'yes') {
72
                    $aErr = CHelper::validateCustomerForm(HelperConfig::$lang, $aErr, true);
73
                    if (!CHelper::getUserData() && filter_input(INPUT_POST, 'tos') !== 'y') {
74
                        $aErr['tos'] = true;
75
                    }
76
                    if (!CHelper::getUserData() && filter_input(INPUT_POST, 'cancellationdisclaimer') !== 'y') {
77
                        $aErr['cancellationdisclaimer'] = true;
78
                    }
@@ 76-78 (lines=3) @@
73
                    if (!CHelper::getUserData() && filter_input(INPUT_POST, 'tos') !== 'y') {
74
                        $aErr['tos'] = true;
75
                    }
76
                    if (!CHelper::getUserData() && filter_input(INPUT_POST, 'cancellationdisclaimer') !== 'y') {
77
                        $aErr['cancellationdisclaimer'] = true;
78
                    }
79
                    $postpaymentmethod = filter_input(INPUT_POST, 'paymentmethod');
80
                    if (
81
                        $postpaymentmethod === null