original_string: protected function setDestinationRoot($destination)
      {
          $this->options['root'] = dirname($destination) != '.'
              ? implode('/', array_fill(0, count(explode('/', dirname($destination))), '..')) . '/'
              : './';
      }
code: protected function setDestinationRoot($destination)
      {
          $this->options['root'] = dirname($destination) != '.'
              ? implode('/', array_fill(0, count(explode('/', dirname($destination))), '..')) . '/'
              : './';
      }
code_tokens: protected function setDestinationRoot ( $ destination ) { $ this -> options [ 'root' ] = dirname ( $ destination ) != '.' ? implode ( '/' , array_fill ( 0 , count ( explode ( '/' , dirname ( $ destination ) ) ) , '..' ) ) . '/' : './' ; }
docstring: Sets the relative path to the root of the generated contents.
  
  Basically this method takes the depth of the given destination and replaces it with `..` unless the destination
  directory name is `.`.
  
  @param string $destination The destination path relative to the target folder.
  
  @see $options for where the 'root' variable is set.
  
  @return void
docstring_tokens: Sets the relative path to the root of the generated contents .