Nelmio\SecurityBundle\ContentSecurityPolicy\ContentSecurityPolicyParser::quoteKeywords PHP Method

quoteKeywords() protected method

protected quoteKeywords ( array $sourceList ) : array
$sourceList array
return array
    protected function quoteKeywords(array $sourceList)
    {
        $keywords = $this->keywords;
        return array_map(function ($source) use($keywords) {
            if (in_array($source, $keywords, true)) {
                return sprintf("'%s'", $source);
            }
            return $source;
        }, $sourceList);
    }
ContentSecurityPolicyParser