Skip to content

Commit

Permalink
format: fix PSR4 violations
Browse files Browse the repository at this point in the history
  • Loading branch information
shvlv committed Mar 11, 2024
1 parent 2385ad2 commit 0aae3e5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
"psr-4": {
"Inpsyde\\CodingStandard\\Tests\\": [
"tests/src/",
"tests/unit/",
"tests/e2e/"
"tests/unit/cases",
"tests/e2e/cases"
]
}
},
Expand Down
10 changes: 10 additions & 0 deletions phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,14 @@
<exclude-pattern>./tests/unit/cases/</exclude-pattern>
</rule>

<rule ref="Inpsyde.CodeQuality.Psr4">
<exclude-pattern>./Inpsyde/Sniffs/</exclude-pattern>
<properties>
<property name="psr4" type="array">
<element key="Inpsyde\CodingStandard\Helpers" value="Inpsyde/Helpers"/>
<element key="Inpsyde\CodingStandard\Tests" value="tests/src|tests/unit/cases|tests/e2e/cases"/>
</property>
</properties>
</rule>

</ruleset>
3 changes: 1 addition & 2 deletions tests/e2e/cases/E2eTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@

declare(strict_types=1);

namespace Inpsyde\CodingStandard\Tests\cases;
namespace Inpsyde\CodingStandard\Tests;

use Inpsyde\CodingStandard\Tests\TestCase;
use RuntimeException;

class E2eTest extends TestCase
Expand Down

0 comments on commit 0aae3e5

Please sign in to comment.