original_string: public function preRender($pugCode)
      {
          $parts = $this->getPugCodeLayoutStructure($pugCode);
          $className = get_class($this);
          foreach ($this->replacements as $name => $callable) {
              $parts[0] .= ":php\n" .
                  "    if (!function_exists('$name')) {\n" .
                  "        function $name() {\n" .
                  "            return call_user_func_array($className::getGlobalHelper('$name'), func_get_args());\n" .
                  "        }\n" .
                  "    }\n";
          }
  
          return implode('', $parts);
      }
code: public function preRender($pugCode)
      {
          $parts = $this->getPugCodeLayoutStructure($pugCode);
          $className = get_class($this);
          foreach ($this->replacements as $name => $callable) {
              $parts[0] .= ":php\n" .
                  "    if (!function_exists('$name')) {\n" .
                  "        function $name() {\n" .
                  "            return call_user_func_array($className::getGlobalHelper('$name'), func_get_args());\n" .
                  "        }\n" .
                  "    }\n";
          }
  
          return implode('', $parts);
      }
code_tokens: public function preRender ( $ pugCode ) { $ parts = $ this -> getPugCodeLayoutStructure ( $ pugCode ) ; $ className = get_class ( $ this ) ; foreach ( $ this -> replacements as $ name => $ callable ) { $ parts [ 0 ] .= ":php\n" . "    if (!function_exists('$name')) {\n" . "        function $name() {\n" . "            return call_user_func_array($className::getGlobalHelper('$name'), func_get_args());\n" . "        }\n" . "    }\n" ; } return implode ( '' , $ parts ) ; }
docstring: Pug code transformation to do before Pug render.
  
  @param string $pugCode code input
  
  @return string
docstring_tokens: Pug code transformation to do before Pug render .