Skip to content

Commit b015999

Browse files
committed
Remove --phpcs-standard flag from $phpcs_standard var
1 parent aa5afdc commit b015999

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

main.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -244,21 +244,21 @@ phpcsfilefound=1
244244

245245
for phpcsfile in "${defaultFiles[@]}"; do
246246
if [[ -f "$DOCKER_GITHUB_WORKSPACE/$phpcsfile" ]]; then
247-
phpcs_standard="--phpcs-standard=$DOCKER_GITHUB_WORKSPACE/$phpcsfile"
247+
phpcs_standard="$DOCKER_GITHUB_WORKSPACE/$phpcsfile"
248248
phpcsfilefound=0
249249
fi
250250
done
251251

252252
if [[ $phpcsfilefound -ne 0 ]]; then
253253
if [[ -n "$1" ]]; then
254-
phpcs_standard="--phpcs-standard=$1"
254+
phpcs_standard="$1"
255255
else
256-
phpcs_standard="--phpcs-standard=WordPress"
256+
phpcs_standard="WordPress"
257257
fi
258258
fi
259259

260260
if [[ -n "$PHPCS_STANDARD_FILE_NAME" ]] && [[ -f "$DOCKER_GITHUB_WORKSPACE/$PHPCS_STANDARD_FILE_NAME" ]]; then
261-
phpcs_standard="--phpcs-standard=$DOCKER_GITHUB_WORKSPACE/$PHPCS_STANDARD_FILE_NAME"
261+
phpcs_standard="$DOCKER_GITHUB_WORKSPACE/$PHPCS_STANDARD_FILE_NAME"
262262
fi;
263263

264264
CMD+=( "--phpcs-standard=$phpcs_standard" )

0 commit comments

Comments
 (0)