diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index d75ad370..2ea6c436 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -38,4 +38,6 @@ jobs: run: composer run-script test - name: Run linter to check code style - run: composer run-script check-style + uses: chekalsky/phpcs-action@v1 + with: + enable_warnings: true diff --git a/.phpcs.xml b/.phpcs.xml new file mode 100644 index 00000000..fd7103ec --- /dev/null +++ b/.phpcs.xml @@ -0,0 +1,9 @@ + + + Coding standard configuration for the Bigcommerce V3 API Client. + + src + tests + + + \ No newline at end of file diff --git a/src/BigCommerce/Api/Catalog/BrandsApi.php b/src/BigCommerce/Api/Catalog/BrandsApi.php index 605a145b..e3510987 100644 --- a/src/BigCommerce/Api/Catalog/BrandsApi.php +++ b/src/BigCommerce/Api/Catalog/BrandsApi.php @@ -33,6 +33,7 @@ class BrandsApi extends ResourceApi private const BRAND_ENDPOINT = 'catalog/brands/%d'; private const BRANDS_ENDPOINT = 'catalog/brands'; + public const DO_NOT_MERGE = "this because it's only to test the new phpcs github action with annotations. This line is clearly too long."; public const FILTER_INCLUDE_FIELDS = 'include_fields'; public const FILTER_EXCLUDE_FIELDS = 'exclude_fields';