From 70fb0b15d8bf10feb1305567085e389c5f3055f4 Mon Sep 17 00:00:00 2001 From: Benjamin Blake Date: Thu, 18 May 2023 22:27:59 -0600 Subject: [PATCH] Added coding standards --- .editorconfig | 3 ++- .gitattributes | 12 ------------ .phpcs.xml | 10 ++++++++++ 3 files changed, 12 insertions(+), 13 deletions(-) create mode 100644 .phpcs.xml diff --git a/.editorconfig b/.editorconfig index fe4bfba..80e2ab1 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,8 +1,9 @@ # https://editorconfig.org root = true -[*.php] +[*] charset = utf-8 +end_of_line = lf indent_size = 4 indent_style = space insert_final_newline = true diff --git a/.gitattributes b/.gitattributes index bea40f6..5c2550a 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,17 +1,5 @@ * text=auto -.* text -*.http text -*.info text -*.json text -*.md text -*.neon text -*.php text diff=php -*.txt text -*.xml text -*.yml text -*.yaml text - *.ico binary *.jpg binary *.pdf binary diff --git a/.phpcs.xml b/.phpcs.xml new file mode 100644 index 0000000..fd1d94a --- /dev/null +++ b/.phpcs.xml @@ -0,0 +1,10 @@ + + + Sitelease's augmented PSR-12 standard + + + + + + +