-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ordered_imports & blank_line_between_import_groups
- Loading branch information
Showing
4 changed files
with
83 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,46 @@ | ||
<?php // blank_line_after_opening_tag | ||
namespace Realodix\Relax; // blank_lines_before_namespace, no_leading_namespace_whitespace | ||
|
||
namespace OtherNamespace; // blank_lines_before_namespace | ||
// blank_line_after_namespace | ||
|
||
const AAAA = ""; | ||
const BBB = ""; | ||
|
||
namespace Realodix\Relax; // no_leading_namespace_whitespace | ||
|
||
use const OtherNamespace\BBB; | ||
use const OtherNamespace\AAAA; | ||
use OtherNamespace\Acme; | ||
use OtherNamespace\AAC; | ||
use OtherNamespace\Bar; | ||
use function DDD; | ||
use function CCC\AA; | ||
|
||
/** | ||
* ordered_imports | ||
* blank_line_between_import_groups | ||
*/ | ||
class Commonbox2 | ||
{ | ||
public function funcClass() | ||
{ | ||
new AAC; | ||
new Acme; | ||
new Bar; | ||
} | ||
|
||
public function funcFunction() | ||
{ | ||
AA(); | ||
DDD(); | ||
} | ||
|
||
public function funcConst() | ||
{ | ||
echo AAAA; | ||
echo BBB; | ||
} | ||
} | ||
|
||
// no_closing_tag | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters