Skip to content

Merge pull request #18 from nextcloud/add-types-spaces-rule #31

Merge pull request #18 from nextcloud/add-types-spaces-rule

Merge pull request #18 from nextcloud/add-types-spaces-rule #31

Workflow file for this run

name: Lint
on:
push:
branches:
- master
- stable*
pull_request:
jobs:
lint-php:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Dependencies
run: composer install --prefer-dist
- name: Load problem matcher for php -l
uses: korelstar/phplint-problem-matcher@v1
- name: PHP syntax check
run: "find src/ -type f -name '*.php' -print0 | xargs -0 -L1 -P4 -- php -l -f"
- name: PHP Coding Standards Fixer
run: vendor/bin/php-cs-fixer fix --dry-run --diff