Skip to content

Commit

Permalink
Ensure correct namespace usage and line lengths.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixarntz committed Aug 29, 2024
1 parent ecda369 commit 260b9f1
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
18 changes: 18 additions & 0 deletions phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,24 @@
<rule ref="PHPCompatibility"/>
<config name="testVersion" value="7.2-"/>

<rule ref="SlevomatCodingStandard.Namespaces.DisallowGroupUse" />
<rule ref="SlevomatCodingStandard.Namespaces.UseDoesNotStartWithBackslash" />
<rule ref="SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses" />
<rule ref="SlevomatCodingStandard.Namespaces.UseFromSameNamespace" />
<rule ref="SlevomatCodingStandard.Namespaces.UnusedUses">
<properties>
<property name="searchAnnotations" value="true" />
</properties>
</rule>

<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="120"/>
<property name="absoluteLineLimit" value="0"/>
</properties>
<exclude-pattern>tests/*</exclude-pattern>
</rule>

<arg value="ps"/>
<arg name="extensions" value="php"/>

Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/Data/ThirdPartyDataFormatterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

namespace GoogleChromeLabs\ThirdPartyCapital\Tests;

use GoogleChromeLabs\ThirdPartyCapital\Data\ThirdPartyDataFormatter;
use GoogleChromeLabs\ThirdPartyCapital\Data\ThirdPartyData;
use GoogleChromeLabs\ThirdPartyCapital\Data\ThirdPartyDataFormatter;
use GoogleChromeLabs\ThirdPartyCapital\Data\ThirdPartyScriptData;
use GoogleChromeLabs\ThirdPartyCapital\TestUtils\TestCase;

Expand Down
1 change: 0 additions & 1 deletion tests/phpunit/tests/Data/ThirdPartySrcValueTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

namespace GoogleChromeLabs\ThirdPartyCapital\Tests;

use Exception;
use GoogleChromeLabs\ThirdPartyCapital\Data\ThirdPartySrcValue;
use GoogleChromeLabs\ThirdPartyCapital\Exception\InvalidThirdPartyDataException;
use GoogleChromeLabs\ThirdPartyCapital\TestUtils\TestCase;
Expand Down

0 comments on commit 260b9f1

Please sign in to comment.