kwn/number-to-words

View on GitHub
src/CurrencyTransformer/SlovakCurrencyTransformer.php

Summary

Maintainability
A
1 hr
Test Coverage
C
74%

Method toWords has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function toWords(int $amount, string $currency, ?CurrencyTransformerOptions $options = null): string
    {
        $dictionary = new SlovakDictionary();
        $numberToTripletsConverter = new NumberToTripletsConverter();
        $tripletTransformer = new SlovakTripletTransformer($dictionary);
Severity: Minor
Found in src/CurrencyTransformer/SlovakCurrencyTransformer.php - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status