refactor: variable naming in Requirements_Backend::resolveCSSReferences()

This commit is contained in:
Sergey Shevchenko 2022-08-05 21:27:36 +12:00
parent 6975815513
commit 4994844729
1 changed files with 3 additions and 3 deletions

View File

@ -1458,10 +1458,10 @@ MESSAGE
$content = preg_replace_callback('#(url\([\n\r\s\'"]*)([^\s\)\?\'"]+)#i', function ($match) use ($fileUrlDir) {
[ $fullMatch, $prefix, $relativePath ] = $match;
if ($relativePath[0] === '/' || false !== strpos($relativePath, '://')) {
return $prefix . $relativePath;
return $fullMatch;
}
$full = FilesystemPath::canonicalize(FilesystemPath::join($fileUrlDir, $relativePath));
return $prefix . $full;
$substitute = FilesystemPath::canonicalize(FilesystemPath::join($fileUrlDir, $relativePath));
return $prefix . $substitute;
}, $content);
return $content;
}