Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
9 changes: 9 additions & 0 deletions .phpcs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="PHP_CodeSniffer" xsi:noNamespaceSchemaLocation="phpcs.xsd">
<description>Coding standard configuration for the Bigcommerce V3 API Client.</description>

<file>src</file>
<file>tests</file>

<rule ref="PSR12"/>
</ruleset>
1 change: 1 addition & 0 deletions src/BigCommerce/Api/Catalog/BrandsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down