src/Smesg/Provider/UnwireProvider.php
public function getDefaultValues()
    {
        preg_match('/([0-9.]+)([A-Z]{3})/', $this->config['price'], $matches);

        $this->defaults['price'] = array(
            'currency' => (!empty($this->defaults['price']['currency']) ? $this->defaults['price']['currency'] : $matches[2]),
            'amount' => (!empty($this->defaults['price']['amount']) ? $this->defaults['price']['amount'] : $matches[1]),
            'vat' => (!empty($this->defaults['price']['vat']) ? $this->defaults['price']['vat'] : null),
        );

        return $this->defaults;
    }
public function getDefaultValues()
    {
        preg_match('/([0-9.]+)([A-Z]{3})/', $this->config['price'], $matches);

        $this->defaults['price'] = array(
            'currency' => (!empty($this->defaults['price']['currency']) ? $this->defaults['price']['currency'] : $matches[2]),
            'amount' => (!empty($this->defaults['price']['amount']) ? $this->defaults['price']['amount'] : $matches[1]),
            'vat' => (!empty($this->defaults['price']['vat']) ? $this->defaults['price']['vat'] : null),
        );

        return $this->defaults;
    }
public function getDefaultValues ( ) { preg_match ( '/([0-9.]+)([A-Z]{3})/' , $ this -> config [ 'price' ] , $ matches ) ; $ this -> defaults [ 'price' ] = array ( 'currency' => ( ! empty ( $ this -> defaults [ 'price' ] [ 'currency' ] ) ? $ this -> defaults [ 'price' ] [ 'currency' ] : $ matches [ 2 ] ) , 'amount' => ( ! empty ( $ this -> defaults [ 'price' ] [ 'amount' ] ) ? $ this -> defaults [ 'price' ] [ 'amount' ] : $ matches [ 1 ] ) , 'vat' => ( ! empty ( $ this -> defaults [ 'price' ] [ 'vat' ] ) ? $ this -> defaults [ 'price' ] [ 'vat' ] : null ) , ) ; return $ this -> defaults ; }
Return default values.

@return array
Return default values .