Split availability windows into bookable lesson-length slots; weekly calendar views; 12-hour times #50
@@ -97,7 +97,8 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Check for debug statements
|
- name: Check for debug statements
|
||||||
run: |
|
run: |
|
||||||
if grep -rn --include="*.php" -E "(var_dump|var_export|print_r|error_log|dd\(|dump\()" src/; then
|
# \b keeps method calls like DateTimeImmutable::add() from matching dd(.
|
||||||
|
if grep -rn --include="*.php" -E "\b(var_dump|var_export|print_r|error_log|dd|dump)\s*\(" src/; then
|
||||||
echo "Debug code found in src/ — please remove before merging."
|
echo "Debug code found in src/ — please remove before merging."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user