private function getShippingAddress($address, $shipping = null)
    {
        if (!is_null($address) or !empty($adress))
            return $address;
        if ($shipping)
            return \UOL\PagSeguro\Helper\Data::addressConfig($shipping['street']);
        return null;
    }
private function getShippingAddress($address, $shipping = null)
    {
        if (!is_null($address) or !empty($adress))
            return $address;
        if ($shipping)
            return \UOL\PagSeguro\Helper\Data::addressConfig($shipping['street']);
        return null;
    }
private function getShippingAddress ( $ address , $ shipping = null ) { if ( ! is_null ( $ address ) or ! empty ( $ adress ) ) return $ address ; if ( $ shipping ) return \ UOL \ PagSeguro \ Helper \ Data :: addressConfig ( $ shipping [ 'street' ] ) ; return null ; }
Get shipping address

@param $address
@param bool $shipping
@return array|null
Get shipping address