Skip to content

Commit 4225016

Browse files
committed
allowed multiple importes in use-statements
1 parent 4ac5f08 commit 4225016

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

preset-fixer/common/Nette.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
'new_with_parentheses' => false, // new stdClass
99
'single_line_after_imports' => false, // Nette uses two empty lines
1010
'blank_line_after_namespace' => false,
11-
'ordered_imports' => true, // Use statements are alphabetically ordered
11+
'single_import_per_statement' => false,
12+
'ordered_imports' => ['imports_order' => ['class', 'function', 'const']],
1213
'blank_line_between_import_groups' => false,
1314

1415
// Ensures a single space after language constructs

preset-sniffer/Nette.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,6 @@ https://github.com/slevomat/coding-standard
255255
</rule>
256256
<rule ref="SlevomatCodingStandard.Exceptions.ReferenceThrowableOnly"/>
257257
<rule ref="SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses"/>
258-
<rule ref="SlevomatCodingStandard.Namespaces.MultipleUsesPerLine"/>
259258
<rule ref="SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly">
260259
<properties>
261260
<property name="allowWhenNoNamespace" value="false"/>

0 commit comments

Comments
 (0)