kwn/number-to-words

View on GitHub
src/CurrencyTransformer/ArabicCurrencyTransformer.php

Summary

Maintainability
A
1 hr
Test Coverage
F
0%

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

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

    There are no issues that match your filters.

    Category
    Status