blob: 49f00759cf83a6a80358c6366cc31f9377651f0c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# Use php-cs-fixer as a source filter.
self=phpcsff
<%
include(`include/mktd.m4')
%>
# Duplicate stdin into a file
if ! command -v php-cs-fixer >/dev/null 2>&1 ; then
printf >&2 'php-cs-fixer: command not found\n'
exit 1
fi
cat -- "${@:--}" > "$td"/src.php
php-cs-fixer fix --quiet --using-cache=no -- "$td"/src.php
cat -- "$td"/src.php
|