diff options
author | derchris | 2019-02-04 13:11:28 +0100 |
---|---|---|
committer | derchris | 2019-02-04 13:11:28 +0100 |
commit | fd72b0f50a355006069c5a336441f08beb7d3c50 (patch) | |
tree | 771ae594586840cb7c7c4fdedeb15e2ca3cf2d2b /lib/less.php/Tree.php | |
parent | 2ea11c4a04371adbc865678dd6eca12aefca0013 (diff) |
Revert "update less.php to PHP 7.x compatible fork"
This reverts commit 7ad9f272a482802da2d43fe83841adbe9bcd8cb4.
Diffstat (limited to '')
-rw-r--r-- | lib/less.php/Tree.php | 90 |
1 files changed, 0 insertions, 90 deletions
diff --git a/lib/less.php/Tree.php b/lib/less.php/Tree.php deleted file mode 100644 index 6fb104b..0000000 --- a/lib/less.php/Tree.php +++ /dev/null @@ -1,90 +0,0 @@ -<?php - -/** - * Tree - * - * @package Less - * @subpackage tree - */ -class Less_Tree{ - - public $cache_string; - - public function toCSS(){ - $output = new Less_Output(); - $this->genCSS($output); - return $output->toString(); - } - - - /** - * Generate CSS by adding it to the output object - * - * @param Less_Output $output The output - * @return void - */ - public function genCSS($output){} - - - /** - * @param Less_Tree_Ruleset[] $rules - */ - public static function outputRuleset( $output, $rules ){ - - $ruleCnt = count($rules); - Less_Environment::$tabLevel++; - - - // Compressed - if( Less_Parser::$options['compress'] ){ - $output->add('{'); - for( $i = 0; $i < $ruleCnt; $i++ ){ - $rules[$i]->genCSS( $output ); - } - - $output->add( '}' ); - Less_Environment::$tabLevel--; - return; - } - - - // Non-compressed - $tabSetStr = "\n".str_repeat( Less_Parser::$options['indentation'] , Less_Environment::$tabLevel-1 ); - $tabRuleStr = $tabSetStr.Less_Parser::$options['indentation']; - - $output->add( " {" ); - for($i = 0; $i < $ruleCnt; $i++ ){ - $output->add( $tabRuleStr ); - $rules[$i]->genCSS( $output ); - } - Less_Environment::$tabLevel--; - $output->add( $tabSetStr.'}' ); - - } - - public function accept($visitor){} - - - public static function ReferencedArray($rules){ - foreach($rules as $rule){ - if( method_exists($rule, 'markReferenced') ){ - $rule->markReferenced(); - } - } - } - - - /** - * Requires php 5.3+ - */ - public static function __set_state($args){ - - $class = get_called_class(); - $obj = new $class(null,null,null,null); - foreach($args as $key => $val){ - $obj->$key = $val; - } - return $obj; - } - -} |