phpfmt8
phpfmt8 copied to clipboard
PHP formatter for Sublime Text 4, with PHP 8 support.
Let's say I have the following: ``` $first = '1'; $longer .= '2'; $longer .= '23; ``` It cannot align vertically. The expected result is: ``` $first = '1'; $longer...
``` $j->first(fn($a) => $a === 1) ?? 1; ``` becomes ``` $j->first(fn($a) => $a === 1); ?? 1; ``` whereas ``` $j->first(fn($a) => $a === 1) ?? 1; ``` it's...
``` $salted = ''; $dx = ''; while (strlen($salted) < 48) { $dx = md5($dx . $passphrase . $salt, true); $salted .= $dx; } $key = substr($salted, 0, 32); $iv...
Autosemicolon is one of the most important rules in the package. It really saves time while coding. However, there are some cases that are not yet covered, such as those...
Depending on the "use" of the class the alignment behaves different ```