Skip to content

Commit

Permalink
Add PHPCS action
Browse files Browse the repository at this point in the history
  • Loading branch information
philipobenito committed Jan 25, 2021
1 parent 088e0e3 commit 508359a
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Expand Up @@ -27,7 +27,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php: ['7.2', '7.3', '7.4', '8.0']
php: ['7.2', '7.3', '7.4']
coverage: [true]
composer-flags: ['']
include:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -3,6 +3,7 @@ composer.lock
vendor
.sass-cache
.phpunit*
.phpcs*

### Jekyll ###
.jekyll-cache
Expand Down
17 changes: 17 additions & 0 deletions phpcs.xml
@@ -0,0 +1,17 @@
<?xml version="1.0"?>
<ruleset>
<arg name="basepath" value="."/>
<arg name="extensions" value="php"/>
<arg name="parallel" value="80"/>
<arg name="cache" value=".phpcs-cache"/>
<arg name="colors"/>

<!-- Ignore warnings, show progress of the run and show sniff names -->
<arg value="nps"/>

<!-- Directories to be checked -->
<file>src</file>
<file>tests</file>

<rule ref="PSR12"/>
</ruleset>
4 changes: 3 additions & 1 deletion src/Strategy/StrategyAwareTrait.php
@@ -1,4 +1,6 @@
<?php declare(strict_types=1);
<?php

declare(strict_types=1);

namespace League\Route\Strategy;

Expand Down

0 comments on commit 508359a

Please sign in to comment.