Code Duplication    Length = 9-9 lines in 2 locations

src/RunOpenCode/ExchangeRate/Source/Api/NationalBankOfSerbiaXmlSaxParser.php 2 locations

@@ 131-139 (lines=9) @@
128
129
        if ($name === 'ITEM') {
130
131
            if (array_key_exists('buyingRate', $this->currentRate)) {
132
133
                $this->rates[] = $buildRate(
134
                    $this->currentRate['buyingRate'] / $this->currentRate['unit'],
135
                    $this->currentRate['currencyCode'],
136
                    $this->rateType . '_buying',
137
                    $this->date
138
                );
139
            }
140
141
            if (array_key_exists('sellingRate', $this->currentRate)) {
142
@@ 141-149 (lines=9) @@
138
                );
139
            }
140
141
            if (array_key_exists('sellingRate', $this->currentRate)) {
142
143
                $this->rates[] = $buildRate(
144
                    $this->currentRate['sellingRate'] / $this->currentRate['unit'],
145
                    $this->currentRate['currencyCode'],
146
                    $this->rateType . '_selling',
147
                    $this->date
148
                );
149
            }
150
151
            if (array_key_exists('middleRate', $this->currentRate)) {
152