Swapped all array() for the shorthand []
Also finished up coverage on the Cache class.
This commit is contained in:
parent
aecdd0981f
commit
200988eecf
17 changed files with 115 additions and 97 deletions
|
@ -179,7 +179,11 @@ class Dynamic extends Object
|
|||
{
|
||||
// Minifies CSS with a few basic character replacements.
|
||||
$stylesheet = file_get_contents($original_filename);
|
||||
$stylesheet = str_replace(array("\t", "\n", ', ', ' {', ': ', ';}', '{ ', '; '), array('', '', ',', '{', ':', '}', '{', ';'), $stylesheet);
|
||||
$stylesheet = str_replace(
|
||||
["\t", "\n", ', ', ' {', ': ', ';}', '{ ', '; '],
|
||||
['', '', ',', '{', ':', '}', '{', ';'],
|
||||
$stylesheet
|
||||
);
|
||||
$stylesheet = preg_replace('/\/\*.+?\*\//', '', $stylesheet);
|
||||
file_put_contents($minified_filename, $stylesheet);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue