This commit is contained in:
Zach Borboa
2021-03-12 21:12:47 -05:00
parent f7ab8ed3ce
commit 780c55dd32
+3 -1
View File
@@ -27,8 +27,10 @@ find_invalid_indentation() {
$leading_space_count = strspn($line, ' ');
$remainder = $leading_space_count % 4;
if ($remainder !== 0) {
$trimmed_line = ltrim($line);
// Allow doc comments.
if (substr(ltrim($line), 0, 1) === '*') {
if (substr($trimmed_line, 0, 1) === '*') {
continue;
}
$add_count = 4 - $remainder;