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
#!/bin/sh | |
cp ./bin/gitHook/pre-commit .git/hooks/pre-commit | |
chmod +x .git/hooks/pre-commit | |
echo "Pre-commit git hook installed (or updated)" |
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
#!/bin/sh | |
# No PHP ? Exit | |
if [[ -z $(which php) ]]; then | |
exit 0 | |
fi | |
PROJECT=`php -r "echo dirname(dirname(dirname(realpath('$0'))));"` | |
SFILES=`git diff --cached --name-only --diff-filter=ACMR HEAD | grep \\\\.php` |
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
parameters: | |
level: 6 | |
paths: | |
- public/ | |
- src/ |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<ruleset name="Mesresa Custom standard"> | |
<arg name="basepath" value="."/> | |
<arg name="cache" value=".phpcs-cache"/> | |
<arg name="colors"/> | |
<arg name="extensions" value="php"/> | |
<arg value="sp"/> |
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
root = true | |
[*] | |
trim_trailing_whitespace = true | |
insert_final_newline = true | |
end_of_line = lf | |
charset = utf-8 | |
tab_width = 4 | |
indent_size = 4 | |
indent_style = space |