aboutsummaryrefslogtreecommitdiffhomepage
path: root/.php_cs
diff options
context:
space:
mode:
authorJérémy Benoist <j0k3r@users.noreply.github.com>2017-10-23 11:09:17 +0200
committerGitHub <noreply@github.com>2017-10-23 11:09:17 +0200
commit1953a872932a63792293b4aec087880265ba89f7 (patch)
treefd16599e737fcdaf193c933ef3ec4a4ee248b117 /.php_cs
parentd83d25dadec2c38460a32d96f5d2903426fec9d3 (diff)
parent702f2d67d60ca963492b90dad74cb5f8dcc84e51 (diff)
downloadwallabag-1953a872932a63792293b4aec087880265ba89f7.tar.gz
wallabag-1953a872932a63792293b4aec087880265ba89f7.tar.zst
wallabag-1953a872932a63792293b4aec087880265ba89f7.zip
Merge pull request #3011 from wallabag/2.3
wallabag 2.3.0
Diffstat (limited to '.php_cs')
-rw-r--r--.php_cs47
1 files changed, 47 insertions, 0 deletions
diff --git a/.php_cs b/.php_cs
new file mode 100644
index 00000000..8bc79a95
--- /dev/null
+++ b/.php_cs
@@ -0,0 +1,47 @@
1<?php
2
3return PhpCsFixer\Config::create()
4 ->setRiskyAllowed(true)
5 ->setRules([
6 '@Symfony' => true,
7 '@Symfony:risky' => true,
8 'array_syntax' => [
9 'syntax' => 'short'
10 ],
11 'combine_consecutive_unsets' => true,
12 'heredoc_to_nowdoc' => true,
13 'no_extra_consecutive_blank_lines' => [
14 'break',
15 'continue',
16 'extra',
17 'return',
18 'throw',
19 'use',
20 'parenthesis_brace_block',
21 'square_brace_block',
22 'curly_brace_block'
23 ],
24 'no_unreachable_default_argument_value' => true,
25 'no_useless_else' => true,
26 'no_useless_return' => true,
27 'ordered_class_elements' => true,
28 'ordered_imports' => true,
29 'php_unit_strict' => true,
30 'phpdoc_order' => true,
31 // 'psr4' => true,
32 'strict_comparison' => true,
33 'strict_param' => true,
34 'concat_space' => [
35 'spacing' => 'one'
36 ],
37 ])
38 ->setFinder(
39 PhpCsFixer\Finder::create()
40 ->exclude([
41 'vendor',
42 'var',
43 'web'
44 ])
45 ->in(__DIR__)
46 )
47;