Code Duplication    Length = 9-10 lines in 2 locations

src/Writer/PrintingVisitor.php 2 locations

@@ 82-90 (lines=9) @@
79
        $this->output->write(str_pad($node->getValue(), 6, '0', STR_PAD_LEFT));
80
    }
81
82
    public function beforePayeeBankgiro(Node $node): void
83
    {
84
        if ($node->getValue() instanceof AccountNumber) {
85
            $account = $node->getValue();
86
            $this->output->write(
87
                str_pad($account->getSerialNumber() . $account->getCheckDigit(), 10, '0', STR_PAD_LEFT)
88
            );
89
        }
90
    }
91
92
    public function beforeAccount(Node $node): void
93
    {
@@ 92-101 (lines=10) @@
89
        }
90
    }
91
92
    public function beforeAccount(Node $node): void
93
    {
94
        if ($node->getValue() instanceof AccountNumber) {
95
            $account = $node->getValue();
96
            $this->output->write(
97
                $account->getClearingNumber()
98
                . str_pad($account->getSerialNumber() . $account->getCheckDigit(), 12, '0', STR_PAD_LEFT)
99
            );
100
        }
101
    }
102
103
    public function beforeInterval(Node $node): void
104
    {