Skip to content

Commit

Permalink
Move visitor classes according to PSR-4 (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor authored Apr 17, 2024
1 parent 97a1e36 commit c89cf60
Show file tree
Hide file tree
Showing 9 changed files with 1,113 additions and 1,071 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
/phpunit.xml.dist export-ignore
/release-latest-versions.sh export-ignore
/source/ export-ignore
/src/ export-ignore
/visitor.php export-ignore
/tests/ export-ignore
7 changes: 5 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
},
"minimum-stability": "stable",
"autoload-dev": {
"psr-4": {
"PhpStubs\\WordPress\\Core\\": "src/"
},
"classmap": [
"tests/"
]
Expand All @@ -43,9 +46,9 @@
"post-update-cmd": "@composer --working-dir=source/ update --no-interaction",
"cleanup": "git status --short --ignored | sed -n -e 's#^!! ##p' | xargs -r rm -vrf",
"test": [
"@test:cs",
"@test:phpunit",
"@test:phpstan",
"@test:phpunit"
"@test:cs"
],
"test:cs": "phpcs",
"test:cs:fix": "phpcbf",
Expand Down
3 changes: 2 additions & 1 deletion phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<ruleset>
<file>finder.php</file>
<file>functionMap.php</file>
<!-- <file>visitor.php</file> -->
<file>src/</file>
<file>visitor.php</file>

<rule ref="PSR12NeutronRuleset">
<exclude name="Generic.Files.LineLength"/>
Expand Down
1 change: 1 addition & 0 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ parameters:
- finder.php
- functionMap.php
- visitor.php
- src/
- tests/
excludePaths:
- tests/data/
Expand Down
Loading

0 comments on commit c89cf60

Please sign in to comment.