Skip to content

Commit 667bc07

Browse files
committed
Move sniff to "Architecture"
1 parent 9111541 commit 667bc07

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Proton/Sniffs/CodingStandard/ForbiddenNamespacedFunctionsSniff.php renamed to Proton/Sniffs/Architecture/ForbiddenNamespacedFunctionsSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Proton\Sniffs\CodingStandard;
5+
namespace Proton\Sniffs\Architecture;
66

77
use PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\ForbiddenFunctionsSniff;
88
use SlevomatCodingStandard\Helpers\NamespaceHelper;

tests/expected_csv.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Line,Column,Type,Source
2929
32,13,error,SlevomatCodingStandard.Classes.UnusedPrivateElements.UnusedMethod
3030
28,27,error,PSR12.Classes.AnonClassDeclaration.SpaceAfterKeyword
3131
25,13,error,SlevomatCodingStandard.Arrays.TrailingArrayComma.MissingTrailingComma
32-
22,9,error,Proton.CodingStandard.ForbiddenNamespacedFunctions.FoundWithAlternative
32+
22,9,error,Proton.Architecture.ForbiddenNamespacedFunctions.FoundWithAlternative
3333
20,19,error,Generic.PHP.BacktickOperator.Found
3434
20,14,error,Generic.PHP.BacktickOperator.Found
3535
16,5,error,PSR12.Traits.UseDeclaration.UseAfterBrace

tests/phpcs.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<rule ref="Proton"/>
1010

11-
<rule ref="Proton.CodingStandard.ForbiddenNamespacedFunctions">
11+
<rule ref="Proton.Architecture.ForbiddenNamespacedFunctions">
1212
<properties>
1313
<property name="forbiddenFunctions" type="array">
1414
<element key="phpinfo2" value="\Proton\Support\phpinfo2"/>

0 commit comments

Comments
 (0)