summaryrefslogtreecommitdiff
path: root/.php_cs.dist
diff options
context:
space:
mode:
authorLaria Carolin Chabowski <laria@laria.me>2020-04-30 09:38:05 +0200
committerLaria Carolin Chabowski <laria@laria.me>2020-04-30 09:38:25 +0200
commit2381c52c690342f773a7cfa500387b6bfad76952 (patch)
tree340296ea529e40b81012c936703429a86481788e /.php_cs.dist
parent2d26169b367af60cbc03d417c09918f50aa3b882 (diff)
downloadste-2381c52c690342f773a7cfa500387b6bfad76952.tar.gz
ste-2381c52c690342f773a7cfa500387b6bfad76952.tar.bz2
ste-2381c52c690342f773a7cfa500387b6bfad76952.zip
Automatic code formatting
Also add git hooks that checks formatting
Diffstat (limited to '.php_cs.dist')
-rw-r--r--.php_cs.dist12
1 files changed, 12 insertions, 0 deletions
diff --git a/.php_cs.dist b/.php_cs.dist
new file mode 100644
index 0000000..314dfd7
--- /dev/null
+++ b/.php_cs.dist
@@ -0,0 +1,12 @@
+<?php
+$finder = PhpCsFixer\Finder::create()
+ ->notPath('vendor')
+ ->in(__DIR__);
+
+return PhpCsFixer\Config::create()
+ ->setRules([
+ '@PSR1' => true,
+ '@PSR2' => true,
+ ])
+ ->setFinder($finder)
+;