Code Duplication    Length = 3-7 lines in 2 locations

src/Currency.php 1 location

@@ 193-199 (lines=7) @@
190
            $this->data[$key] = new CurrencyRepository($locale, $fallbackLocale);
191
        }
192
193
        if (! isset($this->formatters[$key])) {
194
            $this->formatters[$key] = new CurrencyFormatter(
195
                new NumberFormatRepository($fallbackLocale),
196
                $this->data[$key],
197
                ['locale' => $locale]
198
            );
199
        }
200
    }
201
202
    /**

src/Number.php 1 location

@@ 135-137 (lines=3) @@
132
    {
133
        $key = $this->getLocalesKey($locale, $fallbackLocale);
134
135
        if (! isset($this->repositories[$key])) {
136
            $this->formatters[$key] = new NumberFormatter(new NumberFormatRepository($fallbackLocale), ['locale' => $locale]);
137
        }
138
    }
139
140
    /**