From 155960d7dde9b1da1508f55127285e0a090d4d8b Mon Sep 17 00:00:00 2001 From: Aaron Piotrowski Date: Mon, 25 Feb 2019 22:50:25 -0600 Subject: [PATCH] Rename escape function Renamed constants.php to functions.php since it now contains a function. --- composer.json | 2 +- lib/Process.php | 2 +- lib/constants.php | 20 -------------------- lib/functions.php | 34 ++++++++++++++++++++++++++++++++++ 4 files changed, 36 insertions(+), 22 deletions(-) delete mode 100644 lib/constants.php create mode 100644 lib/functions.php diff --git a/composer.json b/composer.json index 662f859..acb99ca 100644 --- a/composer.json +++ b/composer.json @@ -31,7 +31,7 @@ "psr-4": { "Amp\\Process\\": "lib" }, - "files": ["lib/constants.php"] + "files": ["lib/functions.php"] }, "autoload-dev": { "psr-4": { diff --git a/lib/Process.php b/lib/Process.php index d885f8b..2826b80 100644 --- a/lib/Process.php +++ b/lib/Process.php @@ -46,7 +46,7 @@ final class Process public function __construct($command, string $cwd = null, array $env = [], array $options = []) { $command = \is_array($command) - ? \implode(" ", \array_map(__NAMESPACE__ . "\\escape_arg", $command)) + ? \implode(" ", \array_map(__NAMESPACE__ . "\\escapeArguments", $command)) : (string) $command; $cwd = $cwd ?? ""; diff --git a/lib/constants.php b/lib/constants.php deleted file mode 100644 index f8cddcf..0000000 --- a/lib/constants.php +++ /dev/null @@ -1,20 +0,0 @@ -