no_empty_statement,braces.test 346 B

123456789101112131415161718192021222324252627
  1. --TEST--
  2. Integration of fixers: no_empty_statement,braces.
  3. --RULESET--
  4. {"no_empty_statement": true, "braces": true}
  5. --EXPECT--
  6. <?php
  7. class Foo
  8. {
  9. private $var;
  10. public function __construct()
  11. {
  12. $var = 3;
  13. }
  14. }
  15. --INPUT--
  16. <?php
  17. class Foo
  18. {
  19. private $var;
  20. public function __construct() {
  21. $var = 3;
  22. ;}}