Skip to content

Commit 16f6040

Browse files
oliverkleeSam Tuke
authored and
Sam Tuke
committed
[CLEANUP] Rename Classes/ to src/ (#74)
This will bring the project closer to the default Symfony project structure.
1 parent 0e7cf64 commit 16f6040

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

.github/CONTRIBUTING.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -108,24 +108,24 @@ We will only merge pull requests that follow the project's coding style.
108108
Please check your code with the provided PHP_CodeSniffer standard:
109109

110110
```bash
111-
vendor/bin/phpcs --standard=vendor/phplist/phplist4-core/Configuration/PhpCodeSniffer/ Classes/ tests/
111+
vendor/bin/phpcs --standard=vendor/phplist/phplist4-core/Configuration/PhpCodeSniffer/ src/ tests/
112112
```
113113

114114
Please also check the code structure using PHPMD:
115115

116116
```bash
117-
vendor/bin/phpmd Classes/ text vendor/phplist/phplist4-core/Configuration/PHPMD/rules.xml
117+
vendor/bin/phpmd src/ text vendor/phplist/phplist4-core/Configuration/PHPMD/rules.xml
118118
```
119119

120120
And also please run the static code analysis:
121121

122122
```bash
123-
vendor/bin/phpstan analyse -l 5 Classes/ tests/
123+
vendor/bin/phpstan analyse -l 5 src/ tests/
124124
```
125125

126126
You can also run all code style checks using one long line from a bash shell:
127127
```bash
128-
find Classes/ tests/ -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l && vendor/bin/phpstan analyse -l 5 Classes/ tests/ && vendor/bin/phpmd Classes/ text vendor/phplist/phplist4-core/Configuration/PHPMD/rules.xml && vendor/bin/phpcs --standard=vendor/phplist/phplist4-core/Configuration/PhpCodeSniffer/ Classes/ tests/
128+
find src/ tests/ -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l && vendor/bin/phpstan analyse -l 5 src/ tests/ && vendor/bin/phpmd src/ text vendor/phplist/phplist4-core/Configuration/PHPMD/rules.xml && vendor/bin/phpcs --standard=vendor/phplist/phplist4-core/Configuration/PhpCodeSniffer/ src/ tests/
129129
```
130130

131131
This will execute all tests except for the unit tests and the integration

.github/PULL_REQUEST_TEMPLATE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ style?
2222

2323
You can check for this using this command:
2424

25-
vendor/bin/phpcs --standard=PSR2 Classes/ tests/
25+
vendor/bin/phpcs --standard=PSR2 src/ tests/
2626

2727

2828
### Other Information

.travis.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ script:
5858
- >
5959
echo;
6060
echo "Linting all PHP files";
61-
find Classes/ tests/ -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l;
61+
find src/ tests/ -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l;
6262
6363
- >
6464
echo;
@@ -68,14 +68,14 @@ script:
6868
- >
6969
echo;
7070
echo "Running the static analysis";
71-
vendor/bin/phpstan analyse -l 5 Classes/ tests/;
71+
vendor/bin/phpstan analyse -l 5 src/ tests/;
7272
7373
- >
7474
echo;
7575
echo "Running PHPMD";
76-
vendor/bin/phpmd Classes/ text vendor/phplist/phplist4-core/Configuration/PHPMD/rules.xml;
76+
vendor/bin/phpmd src/ text vendor/phplist/phplist4-core/Configuration/PHPMD/rules.xml;
7777
7878
- >
7979
echo;
8080
echo "Running PHP_CodeSniffer";
81-
vendor/bin/phpcs --standard=vendor/phplist/phplist4-core/Configuration/PhpCodeSniffer/ Classes/ tests/;
81+
vendor/bin/phpcs --standard=vendor/phplist/phplist4-core/Configuration/PhpCodeSniffer/ src/ tests/;

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
1010
- System tests for the test and dev environment (#69)
1111

1212
### Changed
13-
- Adopt more of the default Symfony project structure (#73)
13+
- Adopt more of the default Symfony project structure (#73, #74)
1414

1515
### Deprecated
1616

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
},
4545
"autoload": {
4646
"psr-4": {
47-
"PhpList\\BaseDistribution\\": "Classes/"
47+
"PhpList\\BaseDistribution\\": "src/"
4848
}
4949
},
5050
"autoload-dev": {
File renamed without changes.

0 commit comments

Comments
 (0)