Incorrect indent for functions
dmitrach opened this issue · comments
Oleg Dmitrochenko commented
Incorrect:
static public function name()
{
}
https://yadi.sk/i/lf-ZLcu6_MxDVw
Incorrect:
function name()
{
}
https://yadi.sk/i/bAbl8KYzcGpLwg
Correct:
public static function name()
{
}
https://yadi.sk/i/-BnRF7Q8zYAEBQ
The main characteristics of a named function are 'function' and its name: function name().
vscode-phpdoc-generator/lib/regex.js
Line 13 in 37ed3da
'abstract' and 'static' are optional properties.
Oleg Dmitrochenko commented
Duplicate of #6