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

Commit

Permalink
Browse files Browse the repository at this point in the history
…emoving minor code duplication
  • Loading branch information
Ocramius committed Jan 3, 2015
1 parent 95d0ad2 commit c1b25b3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Helper/PartialLoop.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,10 @@ public function setObjectKey($key)
{
if (null === $key) {
unset($this->objectKeyStack[$this->nestingLevel]);

return parent::setObjectKey($key);
} else {
$this->objectKeyStack[$this->nestingLevel] = (string) $key;
}

$this->objectKeyStack[$this->nestingLevel] = (string) $key;

return parent::setObjectKey($key);
}

Expand Down

0 comments on commit c1b25b3

Please sign in to comment.