public function getCurrency($code = null)
    {
        $code = $code ?: $this->getUserCurrency();

        return Arr::get($this->getCurrencies(), strtoupper($code));
    }
public function getCurrency($code = null)
    {
        $code = $code ?: $this->getUserCurrency();

        return Arr::get($this->getCurrencies(), strtoupper($code));
    }
public function getCurrency ( $ code = null ) { $ code = $ code ? : $ this -> getUserCurrency ( ) ; return Arr :: get ( $ this -> getCurrencies ( ) , strtoupper ( $ code ) ) ; }
Return the current currency if the
one supplied is not valid.

@param string $code

@return array|null
Return the current currency if the one supplied is not valid .