original_string: public function displayBlock($name, $default = null)
      {
          if (($result = Block::placeholder($name)) === null) {
              return $default;
          }
  
          if ($event = Event::fire('cms.block.render', [$name, $result], true))
              $result = $event;
  
          $result = str_replace('<!-- X_OCTOBER_DEFAULT_BLOCK_CONTENT -->', trim($default), $result);
          return $result;
      }
code: public function displayBlock($name, $default = null)
      {
          if (($result = Block::placeholder($name)) === null) {
              return $default;
          }
  
          if ($event = Event::fire('cms.block.render', [$name, $result], true))
              $result = $event;
  
          $result = str_replace('<!-- X_OCTOBER_DEFAULT_BLOCK_CONTENT -->', trim($default), $result);
          return $result;
      }
code_tokens: public function displayBlock ( $ name , $ default = null ) { if ( ( $ result = Block :: placeholder ( $ name ) ) === null ) { return $ default ; } if ( $ event = Event :: fire ( 'cms.block.render' , [ $ name , $ result ] , true ) ) $ result = $ event ; $ result = str_replace ( '<!-- X_OCTOBER_DEFAULT_BLOCK_CONTENT -->' , trim ( $ default ) , $ result ) ; return $ result ; }
docstring: Returns a layout block contents and removes the block.
  @param string $name Specifies the block name
  @param string $default The default placeholder contents.
  @return mixed Returns the block contents string or null of the block doesn't exist
docstring_tokens: Returns a layout block contents and removes the block .