AnonSec Shell
Server IP : 213.186.33.4  /  Your IP : 216.73.216.193
Web Server : Apache
System : Linux webm006.cluster103.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : awebpaca ( 35430)
PHP Version : 8.5.0
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/awebpaca/piwik/vendor/wikimedia/less.php/lib/Less/Visitor/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/awebpaca/piwik/vendor/wikimedia/less.php/lib/Less/Visitor/joinSelector.php
<?php

/**
 * Join Selector Visitor
 *
 * @package Less
 * @subpackage visitor
 */
class Less_Visitor_joinSelector extends Less_Visitor {

	public $contexts = array( array() );

	/**
	 * @param Less_Tree_Ruleset $root
	 */
	public function run( $root ) {
		return $this->visitObj( $root );
	}

	public function visitRule( $ruleNode, &$visitDeeper ) {
		$visitDeeper = false;
	}

	public function visitMixinDefinition( $mixinDefinitionNode, &$visitDeeper ) {
		$visitDeeper = false;
	}

	public function visitRuleset( $rulesetNode ) {
		$paths = array();

		if ( !$rulesetNode->root ) {
			$selectors = array();

			if ( $rulesetNode->selectors && $rulesetNode->selectors ) {
				foreach ( $rulesetNode->selectors as $selector ) {
					if ( $selector->getIsOutput() ) {
						$selectors[] = $selector;
					}
				}
			}

			if ( !$selectors ) {
				$rulesetNode->selectors = null;
				$rulesetNode->rules = null;
			} else {
				$context = end( $this->contexts ); // $context = $this->contexts[ count($this->contexts) - 1];
				$paths = $rulesetNode->joinSelectors( $context, $selectors );
			}

			$rulesetNode->paths = $paths;
		}

		$this->contexts[] = $paths; // different from less.js. Placed after joinSelectors() so that $this->contexts will get correct $paths
	}

	public function visitRulesetOut() {
		array_pop( $this->contexts );
	}

	public function visitMedia( $mediaNode ) {
		$context = end( $this->contexts ); // $context = $this->contexts[ count($this->contexts) - 1];

		if ( !count( $context ) || ( is_object( $context[0] ) && $context[0]->multiMedia ) ) {
			$mediaNode->rules[0]->root = true;
		}
	}

}

Anon7 - 2022
AnonSec Team