Skip to content

Commit 9bdb459

Browse files
authored
[CLEANUP] Rename Classes/ to src/ (#93)
This will bring the project closer to the default Symfony project structure.
1 parent 0a5240c commit 9bdb459

File tree

11 files changed

+11
-11
lines changed

11 files changed

+11
-11
lines changed

.github/CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,25 +116,25 @@ We will only merge pull requests that follow the project's coding style.
116116
Please check your code with the provided PHP_CodeSniffer standard:
117117

118118
```bash
119-
vendor/bin/phpcs --standard=vendor/phplist/phplist4-core/Configuration/PhpCodeSniffer/ Classes/ tests/
119+
vendor/bin/phpcs --standard=vendor/phplist/phplist4-core/Configuration/PhpCodeSniffer/ src/ tests/
120120
```
121121

122122
Please also check the code structure using PHPMD:
123123

124124
```bash
125-
vendor/bin/phpmd Classes/ text vendor/phplist/phplist4-core/Configuration/PHPMD/rules.xml
125+
vendor/bin/phpmd src/ text vendor/phplist/phplist4-core/Configuration/PHPMD/rules.xml
126126
```
127127

128128
And also please run the static code analysis:
129129

130130
```bash
131-
vendor/bin/phpstan analyse -l 5 Classes/ tests/
131+
vendor/bin/phpstan analyse -l 5 src/ tests/
132132
```
133133

134134
You can also run all code style checks using one long line from a bash shell:
135135

136136
```bash
137-
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/
137+
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/
138138
```
139139

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

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ script:
6161
- >
6262
echo;
6363
echo "Linting all PHP files";
64-
find Classes/ tests/ -name ''*.php'' -print0 | xargs -0 -n 1 -P 4 php -l;
64+
find src/ tests/ -name ''*.php'' -print0 | xargs -0 -n 1 -P 4 php -l;
6565
6666
- >
6767
echo;
@@ -76,14 +76,14 @@ script:
7676
- >
7777
echo;
7878
echo "Running the static analysis";
79-
vendor/bin/phpstan analyse -l 5 Classes/ tests/;
79+
vendor/bin/phpstan analyse -l 5 src/ tests/;
8080
8181
- >
8282
echo;
8383
echo "Running PHPMD";
84-
vendor/bin/phpmd Classes/ text vendor/phplist/phplist4-core/Configuration/PHPMD/rules.xml;
84+
vendor/bin/phpmd src/ text vendor/phplist/phplist4-core/Configuration/PHPMD/rules.xml;
8585
8686
- >
8787
echo;
8888
echo "Running PHP_CodeSniffer";
89-
vendor/bin/phpcs --standard=vendor/phplist/phplist4-core/Configuration/PhpCodeSniffer/ Classes/ tests/;
89+
vendor/bin/phpcs --standard=vendor/phplist/phplist4-core/Configuration/PhpCodeSniffer/ src/ tests/;

Configuration/services.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
PhpList\RestBundle\Controller\:
3-
resource: '../Classes/Controller'
3+
resource: '../src/Controller'
44
public: true
55
autowire: true
66
tags: ['controller.service_arguments']

composer.json

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

0 commit comments

Comments
 (0)