From 5b2c47c30f657b444510947059406ec63102070a Mon Sep 17 00:00:00 2001 From: Niklas Keller Date: Sat, 22 Oct 2016 12:15:07 +0200 Subject: [PATCH] =?UTF-8?q?Args::exists=20=E2=86=92=20Args::defined?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Commands/Auto.php | 4 ++-- src/Commands/Check.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Commands/Auto.php b/src/Commands/Auto.php index b5b8942..323778f 100644 --- a/src/Commands/Auto.php +++ b/src/Commands/Auto.php @@ -53,11 +53,11 @@ class Auto implements Command { return; } - if ($args->exists("server")) { + if ($args->defined("server")) { $config["server"] = $args->get("server"); } - if ($args->exists("storage")) { + if ($args->defined("storage")) { $config["storage"] = $args->get("storage"); } diff --git a/src/Commands/Check.php b/src/Commands/Check.php index 82b1b3b..a1bc930 100644 --- a/src/Commands/Check.php +++ b/src/Commands/Check.php @@ -45,7 +45,7 @@ class Check implements Command { $this->climate->br(); $this->climate->whisper(" Certificate is valid until " . date("d.m.Y", $cert->getValidTo()))->br(); - if ($args->exists("names")) { + if ($args->defined("names")) { $names = array_map("trim", explode(",", $args->get("names"))); $missingNames = array_diff($names, $cert->getNames());