@@ -109,8 +109,8 @@ protected function moveImportsToTop($content)
109
109
* \@import's will be loaded and their content merged into the original file,
110
110
* to save HTTP requests.
111
111
*
112
- * @param string $source The file to combine imports for
113
- * @param string $content The CSS content to combine imports for
112
+ * @param string $source The file to combine imports for
113
+ * @param string $content The CSS content to combine imports for
114
114
* @param string[] $parents Parent paths, for circular reference checks
115
115
*
116
116
* @return string
@@ -245,7 +245,7 @@ protected function combineImports($source, $content, $parents)
245
245
* @url(image.jpg) images will be loaded and their content merged into the
246
246
* original file, to save HTTP requests.
247
247
*
248
- * @param string $source The file to import files for
248
+ * @param string $source The file to import files for
249
249
* @param string $content The CSS content to import files for
250
250
*
251
251
* @return string
@@ -357,7 +357,7 @@ public function execute($path = null, $parents = array())
357
357
* (e.g. ../../images/image.gif, if the new CSS file is 1 folder deeper).
358
358
*
359
359
* @param ConverterInterface $converter Relative path converter
360
- * @param string $content The CSS content to update relative urls for
360
+ * @param string $content The CSS content to update relative urls for
361
361
*
362
362
* @return string
363
363
*/
@@ -561,7 +561,7 @@ protected function shortenHexColors($content)
561
561
function ($ match ) use ($ colors ) {
562
562
return $ colors [strtolower ($ match [0 ])];
563
563
},
564
- $ content
564
+ $ content,
565
565
);
566
566
}
567
567
@@ -590,12 +590,13 @@ protected function convertLegacyColors($content)
590
590
591
591
// convert `rgb` to `hex`
592
592
$ dec = '([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5]) ' ;
593
+
593
594
return preg_replace_callback (
594
595
"/rgb\( $ dec $ dec $ dec\)/i " ,
595
596
function ($ match ) {
596
597
return sprintf ('#%02x%02x%02x ' , $ match [1 ], $ match [2 ], $ match [3 ]);
597
598
},
598
- $ content
599
+ $ content,
599
600
);
600
601
}
601
602
@@ -826,7 +827,7 @@ function ($match) use ($minifier) {
826
827
$ minifier ->extracted [$ placeholder ] = $ match [1 ] . ': ' . trim ($ match [2 ]);
827
828
828
829
return $ placeholder ;
829
- }
830
+ },
830
831
);
831
832
}
832
833
0 commit comments