Skip to content

Commit

Permalink
single_class_element_per_statement
Browse files Browse the repository at this point in the history
  • Loading branch information
realodix committed Jul 29, 2024
1 parent eb73506 commit 954a7cc
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/Fixtures/Ruleset/relax-commonbox_actual.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,16 @@ class PhpdocNoUselessInheritdoc
function func() {}
}

/**
* single_class_element_per_statement
*/
class SingleClassElementPerStatement
{
const FOO_1 = 1, FOO_2 = 2;

private static $bar1 = [1, 2, 3], $bar2 = [1, 2, 3];
}

/**
* self_static_accessor
*/
Expand Down
14 changes: 14 additions & 0 deletions tests/Fixtures/Ruleset/relax-commonbox_expected.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,20 @@ class PhpdocNoUselessInheritdoc
public function func() {}
}

/**
* single_class_element_per_statement
*/
class SingleClassElementPerStatement
{
const FOO_1 = 1;

const FOO_2 = 2;

private static $bar1 = [1, 2, 3];

private static $bar2 = [1, 2, 3];
}

/**
* self_static_accessor
*/
Expand Down

0 comments on commit 954a7cc

Please sign in to comment.