@@ -93,7 +93,7 @@ protected function pushExtends($target, $origin) {
9393 }
9494
9595 protected function makeOutputBlock ($ type , $ selectors = null ) {
96- $ out = new stdclass ;
96+ $ out = new stdClass ;
9797 $ out ->type = $ type ;
9898 $ out ->lines = array ();
9999 $ out ->children = array ();
@@ -591,7 +591,7 @@ protected function compileChild($child, $out) {
591591 fwrite (STDERR , "Line $ line DEBUG: $ value \n" );
592592 break ;
593593 default :
594- throw new exception ("unknown child type: $ child [0 ]" );
594+ throw new Exception ("unknown child type: $ child [0 ]" );
595595 }
596596 }
597597
@@ -887,12 +887,12 @@ protected function op_color_color($op, $left, $right) {
887887 break ;
888888 case '/ ' :
889889 if ($ rval == 0 ) {
890- throw new exception ("color: Can't divide by zero " );
890+ throw new Exception ("color: Can't divide by zero " );
891891 }
892892 $ out [] = $ lval / $ rval ;
893893 break ;
894894 default :
895- throw new exception ("color: unknow op $ op " );
895+ throw new Exception ("color: unknow op $ op " );
896896 }
897897 }
898898
@@ -1018,7 +1018,7 @@ protected function compileValue($value) {
10181018
10191019 return $ this ->compileValue ($ reduced );
10201020 default :
1021- throw new exception ("unknown value type: $ type " );
1021+ throw new Exception ("unknown value type: $ type " );
10221022 }
10231023 }
10241024
@@ -1174,7 +1174,7 @@ protected function applyArguments($argDef, $argValues) {
11741174 }
11751175
11761176 protected function pushEnv ($ block =null ) {
1177- $ env = new stdclass ;
1177+ $ env = new stdClass ;
11781178 $ env ->parent = $ this ->env ;
11791179 $ env ->store = array ();
11801180 $ env ->block = $ block ;
@@ -1440,12 +1440,12 @@ protected function coerceString($value) {
14401440
14411441 protected function assertColor ($ value ) {
14421442 if ($ color = $ this ->coerceColor ($ value )) return $ color ;
1443- throw new exception ("expecting color " );
1443+ throw new Exception ("expecting color " );
14441444 }
14451445
14461446 protected function assertNumber ($ value ) {
14471447 if ($ value [0 ] != "number " )
1448- throw new exception ("expecting number " );
1448+ throw new Exception ("expecting number " );
14491449 return $ value [1 ];
14501450 }
14511451
@@ -2594,7 +2594,7 @@ protected function literal($what, $eatWhitespace = null) {
25942594 // tree builders
25952595
25962596 protected function pushBlock ($ selectors ) {
2597- $ b = new stdclass ;
2597+ $ b = new stdClass ;
25982598 $ b ->parent = $ this ->env ; // not sure if we need this yet
25992599
26002600 $ b ->selectors = $ selectors ;
@@ -3433,9 +3433,9 @@ protected function throwParseError($msg = "parse error", $count = null) {
34333433 }
34343434
34353435 if ($ this ->peek ("(.*?)( \n|$) " , $ m , $ count )) {
3436- throw new exception ("$ msg: failed at ` $ m [1 ]` $ loc " );
3436+ throw new Exception ("$ msg: failed at ` $ m [1 ]` $ loc " );
34373437 } else {
3438- throw new exception ("$ msg: $ loc " );
3438+ throw new Exception ("$ msg: $ loc " );
34393439 }
34403440 }
34413441
0 commit comments