Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
zendframework/zendframework#6545 - reversing conditional for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Jan 1, 2015
1 parent 3a51ee9 commit bfb9e0b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/UpperCaseWords.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
Expand Down

0 comments on commit bfb9e0b

Please sign in to comment.