diff options
author | Christian Schneider | 2021-01-13 16:13:25 +0100 |
---|---|---|
committer | Christian Schneider | 2021-01-13 16:13:25 +0100 |
commit | 81e5fda87626dfe94d46be511ebc546076b1975b (patch) | |
tree | 9669ecb252500e514ff932df2e1036ab13cf8008 /test/it_url_server.php | |
parent | 1f57cc663c83ec44ec292256147f9811945e260a (diff) | |
download | itools-81e5fda87626dfe94d46be511ebc546076b1975b.tar.gz itools-81e5fda87626dfe94d46be511ebc546076b1975b.tar.bz2 itools-81e5fda87626dfe94d46be511ebc546076b1975b.zip |
Unified brace and else if style
Diffstat (limited to 'test/it_url_server.php')
-rw-r--r-- | test/it_url_server.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/it_url_server.php b/test/it_url_server.php index d8049b1..b113be1 100644 --- a/test/it_url_server.php +++ b/test/it_url_server.php @@ -14,13 +14,15 @@ register_shutdown_function( usleep(100000); stream_set_blocking($pipes[2], 0); -function server_output() { +function server_output() +{ $result = array(); while (($result[] = trim(fgets($GLOBALS['pipes'][2])))) {}; return array_filter($result); } -function handle_server($args) { +function handle_server($args) +{ $res = true; foreach ((array)$args as $arg) $res = $res && $arg; |