Skip to content
This repository has been archived by the owner on Jun 18, 2019. It is now read-only.

Commit

Permalink
Merge pull request #15 from afoucret/phpcs-enhancement
Browse files Browse the repository at this point in the history
Use PSR12 instead of PSR2 in CI.
  • Loading branch information
afoucret committed Jan 25, 2019
2 parents 4914717 + d13c1cb commit 35765d1
Show file tree
Hide file tree
Showing 65 changed files with 359 additions and 294 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Expand Up @@ -51,7 +51,7 @@ jobs:
at: .
- run:
name: PHPCS
command: vendor/bin/phpcs --ignore=vendor,resources --standard=PSR2 .
command: vendor/bin/phpcs --ignore=vendor,resources --standard=PSR12 .

workflows:
version: 2
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -5,6 +5,7 @@ composer.lock

### OpenAPI metadata ###
.openapi-generator/
.openapi-generator-ignore

### IDEs ###
*.tmp
Expand All @@ -20,4 +21,4 @@ local.properties
.idea/*
out/
.idea_modules/

.php_cs.cache
18 changes: 18 additions & 0 deletions .php_cs.dist
@@ -0,0 +1,18 @@
<?php

$finder = PhpCsFixer\Finder::create()
->exclude('vendor')
->exclude('.circleci')
->exclude('resources')
->in(__DIR__)
;

return PhpCsFixer\Config::create()
->setRules([
'@Symfony' => true,
'phpdoc_no_package' => false,
'phpdoc_annotation_without_dot' => false,
'concat_space' => ['spacing' => 'one'],
])
->setFinder($finder)
;

0 comments on commit 35765d1

Please sign in to comment.