original_string: public function getLocaleDependencies($locale) {
  		$dependencies = array();
  		if (isset($this->localeDependencies[$locale])) {
  			$dependencies = $this->localeDependencies[$locale];
  
  				// Search for dependencies recursively
  			$localeDependencies = $dependencies;
  			foreach ($localeDependencies as $dependency) {
  				if (isset($this->localeDependencies[$dependency])) {
  					$dependencies = array_merge($dependencies, $this->getLocaleDependencies($dependency));
  				}
  			}
  		}
  		return $dependencies;
  	}
code: public function getLocaleDependencies($locale) {
  		$dependencies = array();
  		if (isset($this->localeDependencies[$locale])) {
  			$dependencies = $this->localeDependencies[$locale];
  
  				// Search for dependencies recursively
  			$localeDependencies = $dependencies;
  			foreach ($localeDependencies as $dependency) {
  				if (isset($this->localeDependencies[$dependency])) {
  					$dependencies = array_merge($dependencies, $this->getLocaleDependencies($dependency));
  				}
  			}
  		}
  		return $dependencies;
  	}
code_tokens: public function getLocaleDependencies ( $ locale ) { $ dependencies = array ( ) ; if ( isset ( $ this -> localeDependencies [ $ locale ] ) ) { $ dependencies = $ this -> localeDependencies [ $ locale ] ; // Search for dependencies recursively $ localeDependencies = $ dependencies ; foreach ( $ localeDependencies as $ dependency ) { if ( isset ( $ this -> localeDependencies [ $ dependency ] ) ) { $ dependencies = array_merge ( $ dependencies , $ this -> getLocaleDependencies ( $ dependency ) ) ; } } } return $ dependencies ; }
docstring: Returns the dependencies of a given locale, if any.
  
  @param string $locale
  @return array
docstring_tokens: Returns the dependencies of a given locale if any .