public static function encodeUrlSafeWithoutPadding($data) {
		$encoded = self::encode($data);

		$encoded = \rtrim(
			$encoded,
			\substr(self::LAST_THREE_STANDARD, -1)
		);

		return \strtr(
			$encoded,
			\substr(self::LAST_THREE_STANDARD, 0, -1),
			\substr(self::LAST_THREE_URL_SAFE, 0, -1)
		);
	}
public static function encodeUrlSafeWithoutPadding($data) {
		$encoded = self::encode($data);

		$encoded = \rtrim(
			$encoded,
			\substr(self::LAST_THREE_STANDARD, -1)
		);

		return \strtr(
			$encoded,
			\substr(self::LAST_THREE_STANDARD, 0, -1),
			\substr(self::LAST_THREE_URL_SAFE, 0, -1)
		);
	}
public static function encodeUrlSafeWithoutPadding ( $ data ) { $ encoded = self :: encode ( $ data ) ; $ encoded = \ rtrim ( $ encoded , \ substr ( self :: LAST_THREE_STANDARD , - 1 ) ) ; return \ strtr ( $ encoded , \ substr ( self :: LAST_THREE_STANDARD , 0 , - 1 ) , \ substr ( self :: LAST_THREE_URL_SAFE , 0 , - 1 ) ) ; }
Encodes the supplied data to a URL-safe variant of Base64 without padding

@param mixed $data
@return string
@throws EncodingError if the input has been invalid
Encodes the supplied data to a URL - safe variant of Base64 without padding