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

Commit

Permalink
Merge branch 'cs/zendframework/zendframework#6129-is_null-removal' in…
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Apr 13, 2014
5 parents 38b98d2 + 63cc2ee + aecaa35 + fe40c59 + e9a2af2 commit 6c38730
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Translator/TranslatorAwareTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function setTranslator(TranslatorInterface $translator = null, $textDomai
{
$this->translator = $translator;

if (!is_null($textDomain)) {
if (null !== $textDomain) {
$this->setTranslatorTextDomain($textDomain);
}

Expand All @@ -61,7 +61,7 @@ public function getTranslator()
*/
public function hasTranslator()
{
return !is_null($this->translator);
return (null !== $this->translator);
}

/**
Expand Down

0 comments on commit 6c38730

Please sign in to comment.