From 6f4a8f4d03020f459ffd1e16432d201ed02efdea Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Thu, 15 Nov 2018 19:17:18 +0100 Subject: [PATCH] [Bridge] Rename to in setWorkingDir --- lib/Bridge.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/Bridge.php b/lib/Bridge.php index a8a41697..8824232e 100644 --- a/lib/Bridge.php +++ b/lib/Bridge.php @@ -101,21 +101,21 @@ class Bridge { /** * Sets the working directory. * - * @param string $dirBridge Path to the directory containing bridges. + * @param string $dir Path to the directory containing bridges. * @throws \LogicException if the provided path is not a valid string. * @throws \Exception if the provided path does not exist. * @return void */ - public static function setWorkingDir($dirBridge){ - if(!is_string($dirBridge)) { + public static function setWorkingDir($dir){ + if(!is_string($dir)) { throw new \InvalidArgumentException('Working directory is not a valid string!'); } - if(!file_exists($dirBridge)) { + if(!file_exists($dir)) { throw new \Exception('Working directory does not exist!'); } - self::$workingDir = $dirBridge; + self::$workingDir = $dir; } /**