Function __global->reindent_code

Definitions

sources/comcode_tools.php

  • Turn a triple of emoticon parameters into some actual tempcode.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$text string No No required parameter N/A N/A Code to re-indent
$is_comcode boolean No No required parameter N/A N/A Whether the code is Comcode

Returns

  • Re-indented code
  • Type: string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Turn a triple of emoticon parameters into some actual tempcode.
 *
 * @param  string $text Code to re-indent
 * @param  boolean $is_comcode Whether the code is Comcode
 * @return string Re-indented code
 */

function reindent_code(string $text, bool $is_comcode) : string