|
|
|
@ -42,7 +42,7 @@ do |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
# Run coding standards check over modified files. |
|
|
|
# Run coding standards check over modified files. |
|
|
|
modified_files=`git diff --diff-filter=d --name-only "$range"` |
|
|
|
modified_files=$(git diff --diff-filter=d --name-only "$range" | grep -v '\.\(jpg\|jpeg\|png\|gif\|bmp\|svg\|webp\)$') |
|
|
|
if [ -n "$modified_files" ] |
|
|
|
if [ -n "$modified_files" ] |
|
|
|
then |
|
|
|
then |
|
|
|
$composer phpcs $modified_files |
|
|
|
$composer phpcs $modified_files |
|
|
|
|