ensure you have run composer install locally. If you are not running docker:
$ composer install
Run the following command:
$ ./vendor/bin/phpcs --standard=PSR12 \
includes/ \
public/*.php \
tests/api/ \
tests/_support/Helper/ \
tests/runner_generate_db.php
Clone, configure and run the ApiOpenStudio docker dev repository.
SSH into the php container:
$ docker exec -it apiopenstudio-php bash
Inside the container, run phpcs
linting:
$ ./api/vendor/bin/phpcs --standard=PSR12 \
includes/ \
public/*.php \
tests/api/ \
tests/_support/Helper/ \
tests/runner_generate_db.php