original_string: public function addNamespace($namespace, $location)
  	{
  		$loader = $this->twig->getLoader();
  
  		$loader->addPath($location, $namespace);
  
  		foreach ($loader->getPaths() as $path) {
  			if (is_dir($dir = $path.'/'.$namespace)) {
  				$loader->prependPath($dir, $namespace);
  			}
  		}
  	}
code: public function addNamespace($namespace, $location)
  	{
  		$loader = $this->twig->getLoader();
  
  		$loader->addPath($location, $namespace);
  
  		foreach ($loader->getPaths() as $path) {
  			if (is_dir($dir = $path.'/'.$namespace)) {
  				$loader->prependPath($dir, $namespace);
  			}
  		}
  	}
code_tokens: public function addNamespace ( $ namespace , $ location ) { $ loader = $ this -> twig -> getLoader ( ) ; $ loader -> addPath ( $ location , $ namespace ) ; foreach ( $ loader -> getPaths ( ) as $ path ) { if ( is_dir ( $ dir = $ path . '/' . $ namespace ) ) { $ loader -> prependPath ( $ dir , $ namespace ) ; } } }
docstring: Register a template namespace.
  
  @param  string $namespace
  @param  string $location
  
  @return void
docstring_tokens: Register a template namespace .