CodeHelper
class CodeHelper extends Helper
Properties
protected | $charset | ||
protected | $fileLinkFormat | ||
protected | $rootDir |
Methods
__construct(string|FileLinkFormatter $fileLinkFormat, string $projectDir, string $charset)
No description
string
formatArgsAsText(array $args)
Formats an array as a string.
abbrClass($class)
No description
abbrMethod($method)
No description
string
formatArgs(array $args)
Formats an array as a string.
string
fileExcerpt(string $file, int $line)
Returns an excerpt of a code file around the given line number.
string
formatFile(string $file, int $line, string $text = null)
Formats a file path.
string
getFileLink(string $file, int $line)
Returns the link for a given file/line pair.
formatFileFromText($text)
No description
string
getName()
Returns the canonical name of this helper.
static
fixCodeMarkup($line)
No description