Code Duplication    Length = 3-3 lines in 2 locations

src/Controller/Shop/Shoppingcart.php 2 locations

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