src/base/AbstractDriver.php
public static function encodeData($data)
    {
        if (\is_array($data)) {
            foreach ($data as $key => $value) {
                $data[$key] = \urlencode($value);
            }

            return $data;
        }

        return \urlencode($data);
    }
public static function encodeData($data)
    {
        if (\is_array($data)) {
            foreach ($data as $key => $value) {
                $data[$key] = \urlencode($value);
            }

            return $data;
        }

        return \urlencode($data);
    }
public static function encodeData ( $ data ) { if ( \ is_array ( $ data ) ) { foreach ( $ data as $ key => $ value ) { $ data [ $ key ] = \ urlencode ( $ value ) ; } return $ data ; } return \ urlencode ( $ data ) ; }
Encode data for URL.

@param array|string $data

@return array|string
Encode data for URL .