Skip to content

Commit

Permalink
test: class_attributes_separation
Browse files Browse the repository at this point in the history
  • Loading branch information
realodix committed Jul 28, 2024
1 parent 039e90d commit fe9fbc8
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/Fixtures/Ruleset/relax_actual.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class relax_actual extends Config
private bool $type_declaration_spaces;

var $visibility_required; // visibility_required

static protected $visibility_required2; // visibility_required

// type_declaration_spaces
Expand Down Expand Up @@ -846,5 +847,21 @@ public function semicolon__space_after_semicolon()
}
}

class class_attributes_separation
{
use trait_a;


use trait_b;
private $a;
private $b;
/** @var int */
const SECOND = 1;
/** @var int */
const MINUTE = 60;
protected function foo() {}
protected function bar() {}
}

// no_closing_tag
?>
20 changes: 20 additions & 0 deletions tests/Fixtures/Ruleset/relax_expected.php
Original file line number Diff line number Diff line change
Expand Up @@ -821,4 +821,24 @@ public function semicolon__space_after_semicolon()
}
}

class class_attributes_separation
{
use trait_a;
use trait_b;

private $a;

private $b;

/** @var int */
const SECOND = 1;

/** @var int */
const MINUTE = 60;

protected function foo() {}

protected function bar() {}
}

// no_closing_tag

0 comments on commit fe9fbc8

Please sign in to comment.