- Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
Description
$message]; case 'value2': $do; $do; return ["message" => $message]; default: "dosomething"; } ``` Produces the following errors in PHPCS 2.4 (used to pass in 2.3.x): ``` D:\wwwroot\utils>phpcs --standard=psr2 testcs.php FILE: D:\wwwroot\utils\testcs.php ---------------------------------------------------------------------- FOUND 5 ERRORS AFFECTING 5 LINES ---------------------------------------------------------------------- 7 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found | | 4 8 | ERROR | [x] Line indented incorrectly; expected at least 12 | | spaces, found 8 9 | ERROR | [x] Line indented incorrectly; expected at least 12 | | spaces, found 8 11 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found | | 4 12 | ERROR | [x] Line indented incorrectly; expected at least 12 | | spaces, found 8 ---------------------------------------------------------------------- PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- Time: 51ms; Memory: 3Mb ``` While this code passes without errors: ``` $message); case 'value2': $do; $do; return array('message' => $message); default: "dosomething"; } ```