Created
November 25, 2020 17:07
-
-
Save pixelbrackets/98664b79c788766e4248f16e268c5745 to your computer and use it in GitHub Desktop.
Patchbot Patch »add-editorconfig« - Add EditorConfig file to maintain consistent code styles
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[FEATURE] 🔧 Add EditorConfig | |
Add a EditorConfig configuration file to help maintain consistent | |
coding styles for multiple developers using various editors and IDEs. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(file_exists('.editorconfig')) { | |
echo 'EditorConfig already exists - Abort'; | |
return; | |
} | |
copy(__DIR__ . '/.editorconfig', '.editorconfig'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Apply patch using Patchbot