Skip to content

Commit

Permalink
Code style fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
corpsee committed Mar 11, 2019
1 parent 183f07a commit 62cddc4
Show file tree
Hide file tree
Showing 138 changed files with 1,029 additions and 517 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -2,6 +2,7 @@

/vendor
/public/assets/vendor
/.php_cs.cache

/app/config.yml
/app/periodical.yml
Expand Down
2 changes: 2 additions & 0 deletions .php-censor.yml
Expand Up @@ -17,6 +17,8 @@ test:
standard: PSR2
encoding: UTF-8
allow_failures: true
ignore:
- src/Migrations

php_cpd:
allow_failures: true
Expand Down
14 changes: 14 additions & 0 deletions .php_cs.dist
@@ -0,0 +1,14 @@
<?php

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

return PhpCsFixer\Config::create()
->setRules([
'@PSR2' => true,
'@PSR1' => true
])
->setFinder($finder)
;
5 changes: 3 additions & 2 deletions composer.json
Expand Up @@ -110,8 +110,9 @@
"symfony/polyfill": "~1.10.0"
},
"require-dev": {
"phpunit/dbunit": "~2.0.0",
"symfony/var-dumper": "~3.4.0"
"phpunit/dbunit": "~2.0.0",
"symfony/var-dumper": "~3.4.0",
"friendsofphp/php-cs-fixer": "~2.14.0"
},
"extra": {
"platform": {
Expand Down

0 comments on commit 62cddc4

Please sign in to comment.