Code Duplication    Length = 5-7 lines in 2 locations

src/Grammar.php 2 locations

@@ 279-283 (lines=5) @@
276
            $this->value = $_value4;
277
        }
278
279
        if ($_success) {
280
            $this->value = call_user_func(function () use (&$date, &$layout, &$custNr, &$bg) {
281
                return new OpeningNode(rtrim($layout), $date, $custNr, $bg, $this->currentLineNr);
282
            });
283
        }
284
285
        $this->cache['R_GENERIC_OPENING'][$_position] = array(
286
            'success' => $_success,
@@ 926-932 (lines=7) @@
923
            $this->value = $_value24;
924
        }
925
926
        if ($_success) {
927
            $this->value = call_user_func(function () use (&$bg, &$payerNr, &$reject) {
928
                return $reject == 'AV'
929
                    ? new RequestMandateRejectionNode($bg, $payerNr, $this->currentLineNr)
930
                    : new RequestMandateAcceptanceNode($bg, $payerNr, $this->currentLineNr);
931
            });
932
        }
933
934
        $this->cache['R_REQ_CONFIRM_MANDATE'][$_position] = array(
935
            'success' => $_success,