Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions coder_sniffer/Drupal/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,6 @@
<rule ref="PSR2.Namespaces.UseDeclaration" />

<rule ref="SlevomatCodingStandard.ControlStructures.RequireNullCoalesceOperator" />
<rule ref="SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses">
<properties>
<property name="caseSensitive" value="true"/>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.PHP.ShortList" />
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes">
<exclude name="SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing"/>
Expand Down
2 changes: 1 addition & 1 deletion tests/Drupal/Classes/ClassCreateInstanceUnitTest.inc.fixed
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

use Vendor\DateTools;
use Vendor\DateTools\DateInterval;
use Vendor\DateTools;

$x = array(new Foo(), array());
$y = new Foo();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
* Example.
*/

use Test\Alias as TestAlias;
use Test\Bar;
use Test\Foo;
use Test\MultiLine as MultiLineAlias;
use Test\MultiLineSecond;
use Test\Foo;
use Test\NotUsed;
use Test\Bar;
use Test\Alias as TestAlias;
use Test\MultiLine as MultiLineAlias;

/**
* Example.
Expand Down
8 changes: 4 additions & 4 deletions tests/Drupal/Classes/UnusedUseStatementUnitTest.inc.fixed
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

namespace MyNamespace\Depth;

use Example\MyUrlHelper;
use MyNamespace\Depth\SomeClass as CoreSomeClass;
use Thing\NotUsed;
use Thing\Fail\ActuallyUsed;
use Test\TraitTest;
use Thing\DifferentName as UsedOtherName;
use Thing\Fail\ActuallyUsed;
use Thing\NotUsed;
use Example\MyUrlHelper;
use MyNamespace\Depth\SomeClass as CoreSomeClass;

/**
* Bla.
Expand Down
2 changes: 1 addition & 1 deletion tests/Drupal/Classes/UseGlobalClassUnitTest.inc.fixed
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
* Example.
*/

use Namespaced\MultiLine2 as MultiLineAlias2;
use Namespaced\TestClass;
use Namespaced\TestClassSecond as NamespacedAlias;
use Namespaced\MultiLine2 as MultiLineAlias2;
use function count;

/**
Expand Down
Loading