Skip to content

Commit

Permalink
test: no_spaces_around_offset
Browse files Browse the repository at this point in the history
  • Loading branch information
realodix committed Jul 28, 2024
1 parent 87f41f7 commit 88241c8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/Fixtures/Ruleset/relax_actual.php
Original file line number Diff line number Diff line change
Expand Up @@ -696,6 +696,12 @@ public function whitespace__no_extra_blank_lines_2()
];
}

public function whitespace__no_spaces_around_offset()
{
$b = ['a' => true, 'b' => false];
$sample = $b [ 'a' ] [ 'b' ];
}

public function whitespace__spaces_inside_parentheses()
{
if ( true ) {
Expand Down
6 changes: 6 additions & 0 deletions tests/Fixtures/Ruleset/relax_expected.php
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,12 @@ public function whitespace__no_extra_blank_lines_2()
];
}

public function whitespace__no_spaces_around_offset()
{
$b = ['a' => true, 'b' => false];
$sample = $b['a']['b'];
}

public function whitespace__spaces_inside_parentheses()
{
if (true) {
Expand Down

0 comments on commit 88241c8

Please sign in to comment.