Code Duplication    Length = 3-3 lines in 2 locations

src/Controller/Shop/Shoppingcart.php 2 locations

@@ 88-90 (lines=3) @@
85
    private function validateCheckout($aErr = [])
86
    {
87
        $aErr = CHelper::validateCustomerForm(HelperConfig::$lang, $aErr, true);
88
        if (!CHelper::getUserData() && filter_input(INPUT_POST, 'tos') !== 'y') {
89
            $aErr['tos'] = true;
90
        }
91
        if (!CHelper::getUserData() && filter_input(INPUT_POST, 'cancellationdisclaimer') !== 'y') {
92
            $aErr['cancellationdisclaimer'] = true;
93
        }
@@ 91-93 (lines=3) @@
88
        if (!CHelper::getUserData() && filter_input(INPUT_POST, 'tos') !== 'y') {
89
            $aErr['tos'] = true;
90
        }
91
        if (!CHelper::getUserData() && filter_input(INPUT_POST, 'cancellationdisclaimer') !== 'y') {
92
            $aErr['cancellationdisclaimer'] = true;
93
        }
94
        $postpaymentmethod = filter_input(INPUT_POST, 'paymentmethod');
95
        if (
96
            $postpaymentmethod === null