original_string: protected function endRenderBlock($blockName)
      {
          $contents = ob_get_contents();
          ob_end_clean();
          foreach ($this->plugins as $plugin) {
              $blockRenderList = $plugin->getBlockRenderList();
              if (in_array($blockName, $blockRenderList) === true) {
                  echo $plugin->callBlockRenderEnd($blockName, $contents);
                  return;
              }
          }
          echo $contents;
          throw new JigException("Block $blockName not known for ending block in plugins.");
      }
code: protected function endRenderBlock($blockName)
      {
          $contents = ob_get_contents();
          ob_end_clean();
          foreach ($this->plugins as $plugin) {
              $blockRenderList = $plugin->getBlockRenderList();
              if (in_array($blockName, $blockRenderList) === true) {
                  echo $plugin->callBlockRenderEnd($blockName, $contents);
                  return;
              }
          }
          echo $contents;
          throw new JigException("Block $blockName not known for ending block in plugins.");
      }
code_tokens: protected function endRenderBlock ( $ blockName ) { $ contents = ob_get_contents ( ) ; ob_end_clean ( ) ; foreach ( $ this -> plugins as $ plugin ) { $ blockRenderList = $ plugin -> getBlockRenderList ( ) ; if ( in_array ( $ blockName , $ blockRenderList ) === true ) { echo $ plugin -> callBlockRenderEnd ( $ blockName , $ contents ) ; return ; } } echo $ contents ; throw new JigException ( "Block $blockName not known for ending block in plugins." ) ; }
docstring: Called when a block is ended in a template.
  @param $blockName
  @throws JigException
docstring_tokens: Called when a block is ended in a template .