@@ -1808,9 +1808,7 @@ protected function lib_alpha($args) {
18081808 protected static $ lib_opacity = array ("color " );
18091809 protected function lib_opacity ($ args ) {
18101810 $ value = $ args [0 ];
1811- if ($ value [0 ] === 'number ' ) {
1812- return array ("function " , 'opacity ' , array ("list " , ", " , $ args ));
1813- }
1811+ if ($ value [0 ] === 'number ' ) return null ;
18141812 return $ this ->lib_alpha ($ args );
18151813 }
18161814
@@ -1917,10 +1915,7 @@ protected function lib_darken($args) {
19171915 protected static $ lib_saturate = array ("color " , "amount " );
19181916 protected function lib_saturate ($ args ) {
19191917 $ value = $ args [0 ];
1920- if ($ value [0 ] === 'number ' ) {
1921- $ args = array ($ value );
1922- return array ("function " , 'saturate ' , array ("list " , ", " , $ args ));
1923- }
1918+ if ($ value [0 ] === 'number ' ) return null ;
19241919 $ color = $ this ->assertColor ($ value );
19251920 $ amount = 100 *$ this ->coercePercent ($ args [1 ]);
19261921 return $ this ->adjustHsl ($ color , 2 , $ amount );
@@ -1936,9 +1931,7 @@ protected function lib_desaturate($args) {
19361931 protected static $ lib_grayscale = array ("color " );
19371932 protected function lib_grayscale ($ args ) {
19381933 $ value = $ args [0 ];
1939- if ($ value [0 ] === 'number ' ) {
1940- return array ("function " , 'grayscale ' , array ("list " , ", " , $ args ));
1941- }
1934+ if ($ value [0 ] === 'number ' ) return null ;
19421935 return $ this ->adjustHsl ($ this ->assertColor ($ value ), 2 , -100 );
19431936 }
19441937
@@ -1950,9 +1943,7 @@ protected function lib_complement($args) {
19501943 protected static $ lib_invert = array ("color " );
19511944 protected function lib_invert ($ args ) {
19521945 $ value = $ args [0 ];
1953- if ($ value [0 ] === 'number ' ) {
1954- return array ("function " , 'invert ' , array ("list " , ", " , $ args ));
1955- }
1946+ if ($ value [0 ] === 'number ' ) return null ;
19561947 $ color = $ this ->assertColor ($ value );
19571948 $ color [1 ] = 255 - $ color [1 ];
19581949 $ color [2 ] = 255 - $ color [2 ];
0 commit comments