| Index: third_party/grpc/src/php/bin/run_php_cs_fixer.sh
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/websocket/echo-path_wsh.py b/third_party/grpc/src/php/bin/run_php_cs_fixer.sh
|
| old mode 100644
|
| new mode 100755
|
| similarity index 80%
|
| copy from third_party/WebKit/LayoutTests/http/tests/websocket/echo-path_wsh.py
|
| copy to third_party/grpc/src/php/bin/run_php_cs_fixer.sh
|
| index 6072a28e6c821bdf301d4c1cf7e2c50c2cebdeef..3e11a12bc1fec26144d61fcc06f99e13e0de71f7
|
| --- a/third_party/WebKit/LayoutTests/http/tests/websocket/echo-path_wsh.py
|
| +++ b/third_party/grpc/src/php/bin/run_php_cs_fixer.sh
|
| @@ -1,4 +1,6 @@
|
| -# Copyright (C) 2013 Google Inc. All rights reserved.
|
| +#!/bin/bash
|
| +# Copyright 2015, Google Inc.
|
| +# All rights reserved.
|
| #
|
| # Redistribution and use in source and binary forms, with or without
|
| # modification, are permitted provided that the following conditions are
|
| @@ -26,13 +28,13 @@
|
| # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| -
|
| -from mod_pywebsocket import common, msgutil
|
| -
|
| -
|
| -def web_socket_do_extra_handshake(request):
|
| - pass
|
| -
|
| -
|
| -def web_socket_transfer_data(request):
|
| - msgutil.send_message(request, request.uri)
|
| +set -e
|
| +command -v php-cs-fixer > /dev/null || {
|
| + echo "Cannot find php-cs-fixer. Exiting..."
|
| + exit 1
|
| +}
|
| +cd $(dirname $0)/..
|
| +php-cs-fixer fix lib/Grpc || true
|
| +php-cs-fixer fix tests/generated_code || true
|
| +php-cs-fixer fix tests/interop || true
|
| +php-cs-fixer fix tests/unit_tests || true
|
|
|