app/Helpers/CurrencyExchangeHelper.php
/** goes through the service and converts the amount
     * @param string $toCurrency
     * @param string $fromCurrency
     * @param float  $amount
     *
     * @return string
     */
goes through the service and converts the amount
@param string $toCurrency
@param string $fromCurrency
@param float  $amount

@return string
goes through the service and converts the amount @param string $toCurrency @param string $fromCurrency @param float $amount @return string
public function convert(string $toCurrency, string $fromCurrency, float $amount): string
    {
        if($this->activeService !== null) {
            return number_format($this->activeService::convert($toCurrency, $fromCurrency, $amount), 2, '.', ',');
        }
        return -1;
    }
public function convert ( string $ toCurrency , string $ fromCurrency , float $ amount ) : string { if ( $ this -> activeService !== null ) { return number_format ( $ this -> activeService :: convert ( $ toCurrency , $ fromCurrency , $ amount ) , 2 , '.' , ',' ) ; } return - 1 ; }
goes through the service and converts the amount
 @param string $toCurrency
 @param string $fromCurrency
 @param float  $amount
goes through the service and converts the amount @param string $toCurrency @param string $fromCurrency @param float $amount