PayWithAmazon\Client::quoteApplicationName PHP Method

quoteApplicationName() private method

* Collapse multiple whitespace characters into a single ' ' and backslash escape '\', and '/' characters from a string.
private quoteApplicationName ( $s )
$s
    private function quoteApplicationName($s)
    {
        $quotedString = preg_replace('/ {2,}|\\s/', ' ', $s);
        $quotedString = preg_replace('/\\\\/', '\\\\\\\\', $quotedString);
        $quotedString = preg_replace('/\\//', '\\/', $quotedString);
        return $quotedString;
    }