1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-22 05:33:14 +02:00

phpcs: enable psr2

This commit is contained in:
Elan Ruusamäe
2016-10-16 16:46:43 +03:00
parent 0cc631c5a9
commit 5fb7ea1ed1
44 changed files with 175 additions and 109 deletions

View File

@@ -10,7 +10,8 @@
* @package Minify
* @author Stephen Clay <steve@mrclay.org>
*/
class Minify_CSS_UriRewriter {
class Minify_CSS_UriRewriter
{
/**
* rewrite() and rewriteRelative() append debugging information here
@@ -326,7 +327,8 @@ class Minify_CSS_UriRewriter {
* @param string $css
* @return string
*/
private static function _owlifySvgPaths($css) {
private static function _owlifySvgPaths($css)
{
return preg_replace('~\b((?:clip-path|mask|-webkit-mask)\s*\:\s*)url(\(\s*#\w+\s*\))~', '$1owl$2', $css);
}
@@ -338,7 +340,8 @@ class Minify_CSS_UriRewriter {
* @param string $css
* @return string
*/
private static function _unOwlify($css) {
private static function _unOwlify($css)
{
return preg_replace('~\b((?:clip-path|mask|-webkit-mask)\s*\:\s*)owl~', '$1url', $css);
}
}