Code Duplication    Length = 9-9 lines in 2 locations

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

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