Skip to content

Commit

Permalink
Simplify PHPCS check on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
gmazzap committed Feb 24, 2022
1 parent 78f113e commit 27a478f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/php-qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ jobs:
uses: ramsey/composer-install@v2

- name: Check code styles
run: |
./vendor/bin/phpcs -q --report-full --report-checkstyle="phpcs-report.xml" --runtime-set testVersion 7.2- --runtime-set ignore_errors_on_exit 1
cs2pr --graceful-warnings phpcs-report.xml
run: ./vendor/bin/phpcs -q --report=checkstyle | cs2pr

- name: Check Psalm
run: ./vendor/bin/psalm --output-format=github --no-cache
Expand Down
2 changes: 1 addition & 1 deletion src/QueryTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function findTemplate(?\WP_Query $query = null, bool $filters = true): st
$found = '';
while ($types && !$found) {
$type = array_shift($types);
$found = $this->finder->findFirst($leaves[$type], (string) $type);
$found = $this->finder->findFirst($leaves[$type], (string)$type);
$filters and $found = $this->applyFilter("{$type}_template", $found, $query);
}

Expand Down

0 comments on commit 27a478f

Please sign in to comment.