File tree 6 files changed +11
-11
lines changed
6 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -108,24 +108,24 @@ We will only merge pull requests that follow the project's coding style.
108
108
Please check your code with the provided PHP_CodeSniffer standard:
109
109
110
110
``` 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/
112
112
```
113
113
114
114
Please also check the code structure using PHPMD:
115
115
116
116
``` 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
118
118
```
119
119
120
120
And also please run the static code analysis:
121
121
122
122
``` bash
123
- vendor/bin/phpstan analyse -l 5 Classes / tests/
123
+ vendor/bin/phpstan analyse -l 5 src / tests/
124
124
```
125
125
126
126
You can also run all code style checks using one long line from a bash shell:
127
127
``` 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/
129
129
```
130
130
131
131
This will execute all tests except for the unit tests and the integration
Original file line number Diff line number Diff line change 22
22
23
23
You can check for this using this command:
24
24
25
- vendor/bin/phpcs --standard=PSR2 Classes / tests/
25
+ vendor/bin/phpcs --standard=PSR2 src / tests/
26
26
27
27
28
28
### Other Information
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ script:
58
58
- >
59
59
echo;
60
60
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;
62
62
63
63
- >
64
64
echo;
@@ -68,14 +68,14 @@ script:
68
68
- >
69
69
echo;
70
70
echo "Running the static analysis";
71
- vendor/bin/phpstan analyse -l 5 Classes / tests/;
71
+ vendor/bin/phpstan analyse -l 5 src / tests/;
72
72
73
73
- >
74
74
echo;
75
75
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;
77
77
78
78
- >
79
79
echo;
80
80
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/;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
10
10
- System tests for the test and dev environment (#69 )
11
11
12
12
### Changed
13
- - Adopt more of the default Symfony project structure (#73 )
13
+ - Adopt more of the default Symfony project structure (#73 , # 74 )
14
14
15
15
### Deprecated
16
16
Original file line number Diff line number Diff line change 44
44
},
45
45
"autoload" : {
46
46
"psr-4" : {
47
- "PhpList\\ BaseDistribution\\ " : " Classes /"
47
+ "PhpList\\ BaseDistribution\\ " : " src /"
48
48
}
49
49
},
50
50
"autoload-dev" : {
File renamed without changes.
You can’t perform that action at this time.
0 commit comments