From bfb9e0bc7d6f89cf0a12985b52da00785dc3da38 Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Thu, 1 Jan 2015 18:59:17 +0100 Subject: [PATCH] zendframework/zf2#6545 - reversing conditional for clarity --- src/UpperCaseWords.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/UpperCaseWords.php b/src/UpperCaseWords.php index 06e65f83..18567ad6 100644 --- a/src/UpperCaseWords.php +++ b/src/UpperCaseWords.php @@ -26,10 +26,10 @@ class UpperCaseWords extends AbstractUnicode public function __construct($encodingOrOptions = null) { if ($encodingOrOptions !== null) { - if (!static::isOptions($encodingOrOptions)) { - $this->setEncoding($encodingOrOptions); - } else { + if (static::isOptions($encodingOrOptions)) { $this->setOptions($encodingOrOptions); + } else { + $this->setEncoding($encodingOrOptions); } } }