Skip to content

Commit

Permalink
single_line_comment_style
Browse files Browse the repository at this point in the history
  • Loading branch information
realodix committed Jul 29, 2024
1 parent 2455d90 commit acb16ea
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/Fixtures/Ruleset/relax_actual.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,17 @@ public function comment__single_line_comment_spacing()
/*comment 3*/
}

public function comment__single_line_comment_style()
{
# hash comment

/* asterisk comment */

/*
* asterisk comment-single
*/
}

public function control_structure__control_structure_braces()
{
if (foo()) echo 'Hello!';
Expand Down
11 changes: 11 additions & 0 deletions tests/Fixtures/Ruleset/relax_expected.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,17 @@ public function comment__single_line_comment_spacing()
/* comment 3 */
}

public function comment__single_line_comment_style()
{
// hash comment

/* asterisk comment */

/*
* asterisk comment-single
*/
}

public function control_structure__control_structure_braces()
{
if (foo()) {
Expand Down

0 comments on commit acb16ea

Please sign in to comment.