original_string: protected function _scheduleVars() {
  		global $argv;
  		$path = $argv[2] . DS;
  		$shellName = $argv[3];
  		$taskName = $argv[4];
  
  		if (isset($this->args[0]) && $this->hasMethod($this->args[0])) {
  			$methodName = $this->args[0];
  			array_shift($this->args);
  		} else {
  			$methodName = null;
  		}
  
  		$command = implode(' ', array_filter(array(
  			'Console/cake',
  			$shellName,
  			$taskName,
  			$methodName
  		)));
  
  		$arguments = $this->args;
  		foreach ($this->params as $name => $value) {
  			if (in_array($name, array(
  						'scheduled',
  						'scheduled-depends-on',
  						'scheduled-wait-prev',
  						'skip-unlogged',
  						'scheduled-process-timeout'
  							), true)) {
  				continue;
  			}
  			if (is_bool($value) && $value) {
  				$arguments[] = '--' . $name;
  			} elseif (!is_bool($value)) {
  				$arguments['--' . $name] = $value;
  			}
  		}
  
  		$options = array(
  			'timeout' => $this->params['scheduled-process-timeout'],
  			'dependsOn' => empty($this->params['scheduled-depends-on']) ? array() : explode(',', $this->params['scheduled-depends-on'])
  		);
  
  		return array($command, $path, $arguments, $options);
  	}
code: protected function _scheduleVars() {
  		global $argv;
  		$path = $argv[2] . DS;
  		$shellName = $argv[3];
  		$taskName = $argv[4];
  
  		if (isset($this->args[0]) && $this->hasMethod($this->args[0])) {
  			$methodName = $this->args[0];
  			array_shift($this->args);
  		} else {
  			$methodName = null;
  		}
  
  		$command = implode(' ', array_filter(array(
  			'Console/cake',
  			$shellName,
  			$taskName,
  			$methodName
  		)));
  
  		$arguments = $this->args;
  		foreach ($this->params as $name => $value) {
  			if (in_array($name, array(
  						'scheduled',
  						'scheduled-depends-on',
  						'scheduled-wait-prev',
  						'skip-unlogged',
  						'scheduled-process-timeout'
  							), true)) {
  				continue;
  			}
  			if (is_bool($value) && $value) {
  				$arguments[] = '--' . $name;
  			} elseif (!is_bool($value)) {
  				$arguments['--' . $name] = $value;
  			}
  		}
  
  		$options = array(
  			'timeout' => $this->params['scheduled-process-timeout'],
  			'dependsOn' => empty($this->params['scheduled-depends-on']) ? array() : explode(',', $this->params['scheduled-depends-on'])
  		);
  
  		return array($command, $path, $arguments, $options);
  	}
code_tokens: protected function _scheduleVars ( ) { global $ argv ; $ path = $ argv [ 2 ] . DS ; $ shellName = $ argv [ 3 ] ; $ taskName = $ argv [ 4 ] ; if ( isset ( $ this -> args [ 0 ] ) && $ this -> hasMethod ( $ this -> args [ 0 ] ) ) { $ methodName = $ this -> args [ 0 ] ; array_shift ( $ this -> args ) ; } else { $ methodName = null ; } $ command = implode ( ' ' , array_filter ( array ( 'Console/cake' , $ shellName , $ taskName , $ methodName ) ) ) ; $ arguments = $ this -> args ; foreach ( $ this -> params as $ name => $ value ) { if ( in_array ( $ name , array ( 'scheduled' , 'scheduled-depends-on' , 'scheduled-wait-prev' , 'skip-unlogged' , 'scheduled-process-timeout' ) , true ) ) { continue ; } if ( is_bool ( $ value ) && $ value ) { $ arguments [ ] = '--' . $ name ; } elseif ( ! is_bool ( $ value ) ) { $ arguments [ '--' . $ name ] = $ value ; } } $ options = array ( 'timeout' => $ this -> params [ 'scheduled-process-timeout' ] , 'dependsOn' => empty ( $ this -> params [ 'scheduled-depends-on' ] ) ? array ( ) : explode ( ',' , $ this -> params [ 'scheduled-depends-on' ] ) ) ; return array ( $ command , $ path , $ arguments , $ options ) ; }
docstring: Returns variables for schedule
  
  @global array $argv
  @return array
docstring_tokens: Returns variables for schedule