[ Index ]

PHP Cross Reference of phpBB-3.3.14-deutsch

title

Body

[close]

/vendor/s9e/text-formatter/src/Configurator/RendererGenerators/PHP/ -> AbstractOptimizer.php (summary)

(no description)

Copyright: Copyright (c) 2010-2022 The s9e authors
License: http://www.opensource.org/licenses/mit-license.php The MIT License
File Size: 138 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 6 functions

  optimize()
  reset()
  serialize()
  skipToString()
  skipWhitespace()
  unindentBlock()

Functions
Functions that are not part of a class:

optimize($php)   X-Ref
Optimize the control structures of a script

Removes brackets in control structures wherever possible. Prevents the generation of EXT_STMT
opcodes where they're not strictly required.

param: string $php Original code
return: string      Optimized code

reset($php)   X-Ref
Reset the internal state of this optimizer

param: string $php PHP source
return: void

serialize()   X-Ref
Serialize the tokens back to source

return: string

skipToString($str)   X-Ref
Move the internal cursor until it reaches given string

param: string $str String to reach
return: void

skipWhitespace()   X-Ref
Skip all whitespace

return: void

unindentBlock($start, $end)   X-Ref
Remove one tab of indentation off a range of PHP tokens

param: integer $start  Index of the first token to unindent
param: integer $end    Index of the last token to unindent
return: void



Generated: Mon Nov 25 19:05:08 2024 Cross-referenced by PHPXref 0.7.1