aboutsummaryrefslogtreecommitdiffstats
path: root/.php_cs.dist
diff options
context:
space:
mode:
authorFran├žois Kooman <fkooman@tuxed.net>2017-12-05 10:15:35 +0100
committerFran├žois Kooman <fkooman@tuxed.net>2017-12-05 10:15:35 +0100
commit722a9b6a395bfdd266b5466c509299ae0251c946 (patch)
treefa1f5397ef41fb11232b945415163bda87b06786 /.php_cs.dist
parentd0e082f0ce7afad0f5dd4daf44bfe801a8d2b32b (diff)
downloadwww.tuxed.net-722a9b6a395bfdd266b5466c509299ae0251c946.zip
www.tuxed.net-722a9b6a395bfdd266b5466c509299ae0251c946.tar.gz
www.tuxed.net-722a9b6a395bfdd266b5466c509299ae0251c946.tar.xz
reduce train logo size
Diffstat (limited to '.php_cs.dist')
-rw-r--r--.php_cs.dist30
1 files changed, 17 insertions, 13 deletions
diff --git a/.php_cs.dist b/.php_cs.dist
index 7caac44..19652c7 100644
--- a/.php_cs.dist
+++ b/.php_cs.dist
@@ -1,16 +1,20 @@
<?php
-$finder = PhpCsFixer\Finder::create()
- ->in(__DIR__)
-;
-
return PhpCsFixer\Config::create()
- ->setRules([
- '@PSR2' => true,
- '@Symfony' => true,
- 'ordered_imports' => true,
- 'array_syntax' => ['syntax' => 'short'],
- 'ordered_class_elements' => true,
- ])
- ->setFinder($finder)
-;
+ ->setRiskyAllowed(true)
+ ->setRules(
+ [
+ '@Symfony' => true,
+ '@Symfony:risky' => true,
+ 'ordered_imports' => true,
+ 'ordered_class_elements' => true,
+ 'array_syntax' => ['syntax' => 'short'],
+ 'phpdoc_order' => true,
+ 'phpdoc_no_empty_return' => false,
+ 'phpdoc_add_missing_param_annotation' => true,
+ 'strict_comparison' => true,
+ 'strict_param' => true,
+ 'php_unit_strict' => true,
+ ]
+ )
+ ->setFinder(PhpCsFixer\Finder::create()->in(__DIR__));