diff --git a/.editorconfig b/.editorconfig index cf8d7fa..8fcbf50 100644 --- a/.editorconfig +++ b/.editorconfig @@ -9,3 +9,9 @@ end_of_line = lf charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true + +[*.php] +indent_size = 4 + +[templates/**.php] +indent_size = 2 diff --git a/.travis.yml b/.travis.yml index 6b8492a..9d929a3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -43,5 +43,5 @@ install: script: - npm run build - - phpcs --report=summary + - phpcs -n - phpmd src text cleancode,codesize,controversial,design,naming,unusedcode diff --git a/index.php b/index.php index 83242b4..452d62d 100644 --- a/index.php +++ b/index.php @@ -1,6 +1,6 @@ Roots Coding Standards - templates functions.php + index.php src + templates diff --git a/src/.editorconfig b/src/.editorconfig deleted file mode 100644 index 256f8f8..0000000 --- a/src/.editorconfig +++ /dev/null @@ -1,6 +0,0 @@ -# editorconfig.org - -root = false - -[*.php] -indent_size = 4