original_string: private function sass() {
  		// get all sass dirs
  		foreach ($this->localStatic[ __FUNCTION__ ] as $dir) {
  			$this->start('Converting SASS to CSS in ' . $dir);
  
  			foreach (glob($dir . DIRECTORY_SEPARATOR . '*.{scss,sass}', GLOB_BRACE) as $file) {
  				//skip if partial
  				$output = basename($file);
  				if (substr($output, 0, 1) === '_')
  					continue;
  
  				$this->start('Working on ' . $output);
  				
  				$scss = (substr($file, -5) === '.scss');
  				
  				// Add Constants variables 
  				if(isset($GLOBALS["constants"])) {
  					$old = $file;
  					// sass which will actuall be compiled [hidden]
  					$file .= md5(time()) . '.sex';
  					$f = fopen($file, 'w');
  					exec('attrib +H ' . escapeshellarg($file));
  
  					// get the URL Constants
  					$const = array();
  					foreach ($GLOBALS["constants"] as $name => $val)
  						$const[] = '$const-' . str_replace('\\', '-', strtolower($name)) . ': \'' . $val . '\' !default;';
  					
  					// add URL vars to temp sass file
  					fwrite($f, implode(PHP_EOL, $const));
  					fwrite($f, file_get_contents($old));
  					fclose($f);
  				}
  				
  				// the correct path for output
  				echo $output = $this->tmp[ __FUNCTION__ ] . $output;
  				$output = substr($output, 0, -4) . 'css';
  
  				// make sure path is ready
  				self::readyDir($output);
  
  
  				// run sass
  				$this->runLocal(['sass',
  					($scss ? '--scss' : null),
  					'--trace',
  					'--unix-newlines',
  					
  					'--style',
  					($this->compress ? 'compressed --sourcemap=none' : 'expanded -l'),
  					
  					$file,
  					$output,
  				]);
  
  				$this->finish();
  			}
  			
  			foreach (glob($dir . DIRECTORY_SEPARATOR . '*.sex') as $file)
  				unlink($file);
  
  			$this->finish();
  		}
  		
  		return $this;
  	}
code: private function sass() {
  		// get all sass dirs
  		foreach ($this->localStatic[ __FUNCTION__ ] as $dir) {
  			$this->start('Converting SASS to CSS in ' . $dir);
  
  			foreach (glob($dir . DIRECTORY_SEPARATOR . '*.{scss,sass}', GLOB_BRACE) as $file) {
  				//skip if partial
  				$output = basename($file);
  				if (substr($output, 0, 1) === '_')
  					continue;
  
  				$this->start('Working on ' . $output);
  				
  				$scss = (substr($file, -5) === '.scss');
  				
  				// Add Constants variables 
  				if(isset($GLOBALS["constants"])) {
  					$old = $file;
  					// sass which will actuall be compiled [hidden]
  					$file .= md5(time()) . '.sex';
  					$f = fopen($file, 'w');
  					exec('attrib +H ' . escapeshellarg($file));
  
  					// get the URL Constants
  					$const = array();
  					foreach ($GLOBALS["constants"] as $name => $val)
  						$const[] = '$const-' . str_replace('\\', '-', strtolower($name)) . ': \'' . $val . '\' !default;';
  					
  					// add URL vars to temp sass file
  					fwrite($f, implode(PHP_EOL, $const));
  					fwrite($f, file_get_contents($old));
  					fclose($f);
  				}
  				
  				// the correct path for output
  				echo $output = $this->tmp[ __FUNCTION__ ] . $output;
  				$output = substr($output, 0, -4) . 'css';
  
  				// make sure path is ready
  				self::readyDir($output);
  
  
  				// run sass
  				$this->runLocal(['sass',
  					($scss ? '--scss' : null),
  					'--trace',
  					'--unix-newlines',
  					
  					'--style',
  					($this->compress ? 'compressed --sourcemap=none' : 'expanded -l'),
  					
  					$file,
  					$output,
  				]);
  
  				$this->finish();
  			}
  			
  			foreach (glob($dir . DIRECTORY_SEPARATOR . '*.sex') as $file)
  				unlink($file);
  
  			$this->finish();
  		}
  		
  		return $this;
  	}
code_tokens: private function sass ( ) { // get all sass dirs foreach ( $ this -> localStatic [ __FUNCTION__ ] as $ dir ) { $ this -> start ( 'Converting SASS to CSS in ' . $ dir ) ; foreach ( glob ( $ dir . DIRECTORY_SEPARATOR . '*.{scss,sass}' , GLOB_BRACE ) as $ file ) { //skip if partial $ output = basename ( $ file ) ; if ( substr ( $ output , 0 , 1 ) === '_' ) continue ; $ this -> start ( 'Working on ' . $ output ) ; $ scss = ( substr ( $ file , - 5 ) === '.scss' ) ; // Add Constants variables  if ( isset ( $ GLOBALS [ "constants" ] ) ) { $ old = $ file ; // sass which will actuall be compiled [hidden] $ file .= md5 ( time ( ) ) . '.sex' ; $ f = fopen ( $ file , 'w' ) ; exec ( 'attrib +H ' . escapeshellarg ( $ file ) ) ; // get the URL Constants $ const = array ( ) ; foreach ( $ GLOBALS [ "constants" ] as $ name => $ val ) $ const [ ] = '$const-' . str_replace ( '\\' , '-' , strtolower ( $ name ) ) . ': \'' . $ val . '\' !default;' ; // add URL vars to temp sass file fwrite ( $ f , implode ( PHP_EOL , $ const ) ) ; fwrite ( $ f , file_get_contents ( $ old ) ) ; fclose ( $ f ) ; } // the correct path for output echo $ output = $ this -> tmp [ __FUNCTION__ ] . $ output ; $ output = substr ( $ output , 0 , - 4 ) . 'css' ; // make sure path is ready self :: readyDir ( $ output ) ; // run sass $ this -> runLocal ( [ 'sass' , ( $ scss ? '--scss' : null ) , '--trace' , '--unix-newlines' , '--style' , ( $ this -> compress ? 'compressed --sourcemap=none' : 'expanded -l' ) , $ file , $ output , ] ) ; $ this -> finish ( ) ; } foreach ( glob ( $ dir . DIRECTORY_SEPARATOR . '*.sex' ) as $ file ) unlink ( $ file ) ; $ this -> finish ( ) ; } return $ this ; }
docstring: Combines SASS to a file foreach folder
docstring_tokens: Combines SASS to a file foreach folder