Skip to content

Instantly share code, notes, and snippets.

@pixelbrackets
Created November 25, 2020 17:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pixelbrackets/98664b79c788766e4248f16e268c5745 to your computer and use it in GitHub Desktop.
Save pixelbrackets/98664b79c788766e4248f16e268c5745 to your computer and use it in GitHub Desktop.
Patchbot Patch »add-editorconfig« - Add EditorConfig file to maintain consistent code styles
# Configuration to unify coding styles in IDEs - See https://EditorConfig.org
root = true
[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 2
[*.php]
indent_size = 4
[*.sql]
indent_style = tab
[{composer.json,composer.lock}]
indent_size = 4
[FEATURE] 🔧 Add EditorConfig
Add a EditorConfig configuration file to help maintain consistent
coding styles for multiple developers using various editors and IDEs.
<?php
if(file_exists('.editorconfig')) {
echo 'EditorConfig already exists - Abort';
return;
}
copy(__DIR__ . '/.editorconfig', '.editorconfig');
@pixelbrackets
Copy link
Author

Apply patch using Patchbot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment