File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -5,3 +5,4 @@ for file in $FILES; do
5
5
./vendor/bin/phpcs --extensions=php --standard=PSR12 " $file "
6
6
./vendor/bin/phpmd " $file " text phpmd.xml --exclude vendor
7
7
done
8
+ ./vendor/bin/phpunit tests/
Original file line number Diff line number Diff line change @@ -17,16 +17,18 @@ private function setCodingApi(): void
17
17
if (is_null ($ codingTeamDomain )) {
18
18
$ codingTeamDomain = config ('coding.team_domain ' ) ?? $ this ->ask ('CODING 团队域名: ' );
19
19
}
20
- $ this ->codingTeamDomain = str_replace ('.coding.net ' , '' , $ codingTeamDomain );
20
+ $ this ->codingTeamDomain = str_replace ('.coding.net ' , '' , " $ codingTeamDomain" );
21
21
22
- $ this -> codingProjectUri = $ this ->option ('coding_project_uri ' );
23
- if (is_null ($ this -> codingProjectUri )) {
24
- $ this -> codingProjectUri = config ('coding.project_uri ' ) ?? $ this ->ask ('CODING 项目标识: ' );
22
+ $ codingProjectUri = $ this ->option ('coding_project_uri ' );
23
+ if (is_null ($ codingProjectUri )) {
24
+ $ codingProjectUri = config ('coding.project_uri ' ) ?? $ this ->ask ('CODING 项目标识: ' );
25
25
}
26
+ $ this ->codingProjectUri = "$ codingProjectUri " ;
26
27
27
- $ this -> codingToken = $ this ->option ('coding_token ' );
28
- if (is_null ($ this -> codingToken )) {
29
- $ this -> codingToken = config ('coding.token ' ) ?? $ this ->ask ('CODING Token: ' );
28
+ $ codingToken = $ this ->option ('coding_token ' );
29
+ if (is_null ($ codingToken )) {
30
+ $ codingToken = config ('coding.token ' ) ?? $ this ->ask ('CODING Token: ' );
30
31
}
32
+ $ this ->codingToken = "$ codingToken " ;
31
33
}
32
34
}
You can’t perform that action at this time.
0 commit comments