Allow method chaining indentation

This commit is contained in:
Zach Borboa
2021-03-12 21:51:56 -05:00
parent 4fad7d7081
commit c6fd8accfb
+6
View File
@@ -37,6 +37,12 @@ find_invalid_indentation() {
if (substr($trimmed_line, 0, 1) === '*') {
continue;
}
// Allow method chaining.
if (substr($trimmed_line, 0, 2) === '->') {
continue;
}
$add_count = 4 - $remainder;
$remove_count = $remainder;
echo 'Invalid indentation found in ' .