original_string: private function section($nodes, $id, $filters, $start, $end, $otag, $ctag, $level)
      {
          $source   = var_export(substr($this->source, $start, $end - $start), true);
          $callable = $this->getCallable();
  
          if ($otag !== '{{' || $ctag !== '}}') {
              $delimTag = var_export(sprintf('{{= %s %s =}}', $otag, $ctag), true);
              $helper = sprintf('$this->lambdaHelper->withDelimiters(%s)', $delimTag);
              $delims = ', ' . $delimTag;
          } else {
              $helper = '$this->lambdaHelper';
              $delims = '';
          }
  
          $key = ucfirst(md5($delims . "\n" . $source));
  
          if (!isset($this->sections[$key])) {
              $this->sections[$key] = sprintf($this->prepare(self::SECTION), $key, $callable, $source, $helper, $delims, $this->walk($nodes, 2));
          }
  
          $method  = $this->getFindMethod($id);
          $id      = var_export($id, true);
          $filters = $this->getFilters($filters, $level);
  
          return sprintf($this->prepare(self::SECTION_CALL, $level), $id, $method, $id, $filters, $key);
      }
code: private function section($nodes, $id, $filters, $start, $end, $otag, $ctag, $level)
      {
          $source   = var_export(substr($this->source, $start, $end - $start), true);
          $callable = $this->getCallable();
  
          if ($otag !== '{{' || $ctag !== '}}') {
              $delimTag = var_export(sprintf('{{= %s %s =}}', $otag, $ctag), true);
              $helper = sprintf('$this->lambdaHelper->withDelimiters(%s)', $delimTag);
              $delims = ', ' . $delimTag;
          } else {
              $helper = '$this->lambdaHelper';
              $delims = '';
          }
  
          $key = ucfirst(md5($delims . "\n" . $source));
  
          if (!isset($this->sections[$key])) {
              $this->sections[$key] = sprintf($this->prepare(self::SECTION), $key, $callable, $source, $helper, $delims, $this->walk($nodes, 2));
          }
  
          $method  = $this->getFindMethod($id);
          $id      = var_export($id, true);
          $filters = $this->getFilters($filters, $level);
  
          return sprintf($this->prepare(self::SECTION_CALL, $level), $id, $method, $id, $filters, $key);
      }
code_tokens: private function section ( $ nodes , $ id , $ filters , $ start , $ end , $ otag , $ ctag , $ level ) { $ source = var_export ( substr ( $ this -> source , $ start , $ end - $ start ) , true ) ; $ callable = $ this -> getCallable ( ) ; if ( $ otag !== '{{' || $ ctag !== '}}' ) { $ delimTag = var_export ( sprintf ( '{{= %s %s =}}' , $ otag , $ ctag ) , true ) ; $ helper = sprintf ( '$this->lambdaHelper->withDelimiters(%s)' , $ delimTag ) ; $ delims = ', ' . $ delimTag ; } else { $ helper = '$this->lambdaHelper' ; $ delims = '' ; } $ key = ucfirst ( md5 ( $ delims . "\n" . $ source ) ) ; if ( ! isset ( $ this -> sections [ $ key ] ) ) { $ this -> sections [ $ key ] = sprintf ( $ this -> prepare ( self :: SECTION ) , $ key , $ callable , $ source , $ helper , $ delims , $ this -> walk ( $ nodes , 2 ) ) ; } $ method = $ this -> getFindMethod ( $ id ) ; $ id = var_export ( $ id , true ) ; $ filters = $ this -> getFilters ( $ filters , $ level ) ; return sprintf ( $ this -> prepare ( self :: SECTION_CALL , $ level ) , $ id , $ method , $ id , $ filters , $ key ) ; }
docstring: Generate Mustache Template section PHP source.
  
  @param array    $nodes   Array of child tokens
  @param string   $id      Section name
  @param string[] $filters Array of filters
  @param int      $start   Section start offset
  @param int      $end     Section end offset
  @param string   $otag    Current Mustache opening tag
  @param string   $ctag    Current Mustache closing tag
  @param int      $level
  
  @return string Generated section PHP source code
docstring_tokens: Generate Mustache Template section PHP source .