Skip to content

Commit da78e3e

Browse files
committed
fix indentation
1 parent d4e7d6a commit da78e3e

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

bin/phpstorm-stubs.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
set -e
44

55
if [ $# -ne 1 ]; then
6-
echo "Usage: $0 <version>"
7-
exit 1
6+
echo "Usage: $0 <version>"
7+
exit 1
88
fi
99

1010
VERSION="$1"
@@ -15,17 +15,17 @@ echo "Downloading ${VERSION} stubs..."
1515
curl -s -o "relay.stub.php" "$URL"
1616

1717
if [[ "$OSTYPE" == "darwin"* ]]; then
18-
SED="gsed"
18+
SED="gsed"
1919
else
20-
SED="sed"
20+
SED="sed"
2121
fi
2222

2323
echo "Adjusting stubs..."
2424

2525
"$SED" -i -E \
26-
-e 's/^(.*\bfunction\b.*);/\1 {}/' \
27-
-e 's/^(\s*)\);$/\1) {}/'\
28-
-e 's/^(\s*)\): ([^;]+);$/\1): \2 {}/' \
29-
-e 's/^(\s+\*) @alias (.+)$/\1 @see \2()/' \
30-
-e 's/^(\s+\*) @var \$context array/\1 @example $context array/' \
31-
relay.stub.php
26+
-e 's/^(.*\bfunction\b.*);/\1 {}/' \
27+
-e 's/^(\s*)\);$/\1) {}/'\
28+
-e 's/^(\s*)\): ([^;]+);$/\1): \2 {}/' \
29+
-e 's/^(\s+\*) @alias (.+)$/\1 @see \2()/' \
30+
-e 's/^(\s+\*) @var \$context array/\1 @example $context array/' \
31+
relay.stub.php

0 commit comments

Comments
 (0)