original_string: public function findDot($id)
      {
          $chunks = explode('.', $id);
          $first  = array_shift($chunks);
          $value  = $this->findVariableInStack($first, $this->stack);
  
          foreach ($chunks as $chunk) {
              if ($value === '') {
                  return $value;
              }
  
              $value = $this->findVariableInStack($chunk, array($value));
          }
  
          return $value;
      }
code: public function findDot($id)
      {
          $chunks = explode('.', $id);
          $first  = array_shift($chunks);
          $value  = $this->findVariableInStack($first, $this->stack);
  
          foreach ($chunks as $chunk) {
              if ($value === '') {
                  return $value;
              }
  
              $value = $this->findVariableInStack($chunk, array($value));
          }
  
          return $value;
      }
code_tokens: public function findDot ( $ id ) { $ chunks = explode ( '.' , $ id ) ; $ first = array_shift ( $ chunks ) ; $ value = $ this -> findVariableInStack ( $ first , $ this -> stack ) ; foreach ( $ chunks as $ chunk ) { if ( $ value === '' ) { return $ value ; } $ value = $ this -> findVariableInStack ( $ chunk , array ( $ value ) ) ; } return $ value ; }
docstring: Find a 'dot notation' variable in the Context stack.
  
  Note that dot notation traversal bubbles through scope differently than the regular find method. After finding
  the initial chunk of the dotted name, each subsequent chunk is searched for only within the value of the previous
  result. For example, given the following context stack:
  
  $data = array(
  'name' => 'Fred',
  'child' => array(
  'name' => 'Bob'
  ),
  );
  
  ... and the Mustache following template:
  
  {{ child.name }}
  
  ... the `name` value is only searched for within the `child` value of the global Context, not within parent
  Context frames.
  
  @param string $id Dotted variable selector
  
  @return mixed Variable value, or '' if not found
docstring_tokens: Find a dot notation variable in the Context stack .