Permalink
Browse files

exclude docs dir from dists, run php-cs-fixer

  • Loading branch information...
1 parent 50aad9a commit ed6961d23410abc631d0db17f04f3e4d817110b4 @alcohol alcohol committed Sep 14, 2016
Showing with 508 additions and 505 deletions.
  1. +2 −1 .gitattributes
  2. +7 −5 .php_cs → .php_cs.dist
  3. +499 −499 src/ISO3166.php
View
@@ -8,10 +8,11 @@
*.yml text eol=lf whitespace=blank-at-eol,blank-at-eof,space-before-tab,tab-in-indent,tabwidth=4
# don't add these files/directories to github release tarballs (composer dist install)
+/docs/ export-ignore
/tests/ export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
-/.php_cs export-ignore
+/.php_cs.dist export-ignore
/.travis.yml export-ignore
/CHANGELOG.md export-ignore
/phpunit.xml.dist export-ignore
@@ -7,15 +7,15 @@ For the full copyright and license information, please view
the LICENSE file that was distributed with this source code.
EOF;
-$finder = (new Symfony\Component\Finder\Finder)
- ->files()
- ->name('*.php')
+$finder = new PhpCsFixer\Finder();
+$config = new PhpCsFixer\Config('ISO3166', 'ISO3166 style guide');
+
+$finder
->in(__DIR__)
- ->exclude('vendor')
;
/* Based on dev-master|^2.0 of php-cs-fixer */
-return (new PhpCsFixer\Config('ISO3166', 'ISO3166 style guide'))
+$config
->setUsingCache(true)
->setUsingLinter(true)
->setRiskyAllowed(true)
@@ -35,3 +35,5 @@ return (new PhpCsFixer\Config('ISO3166', 'ISO3166 style guide'))
])
->finder($finder)
;
+
+return $config;
Oops, something went wrong.

0 comments on commit ed6961d

Please sign in to comment.