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'
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Apr 13, 2014
3 parents 63cc2ee + fe40c59 + e9a2af2 commit 9c18b10
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 9c18b10

Please sign in to comment.