$filename
$filename :
Class that handles the formatting and syntax checking of PHP classes to ensure proper line spacing, comment / doc-blocks, and so on.
format_file(string $filename)
Format a file as necessary.
Goes through the file line-by-bline, formats it with proper line spacing, comment blocks with correct line lengith, etc. Returns the results of the formatted file, plus any available warnings.
string | $filename | Full path to the file to format. |
format_comment(array $lines, boolean $check_length = true, boolean $add_indent = false)
Format comment
array | $lines | The lines of the comment |
boolean | $check_length | WHether or not to check line length for summary too long. |
boolean | $add_indent | For properties only, and adds extra indent. |