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

Commit

Permalink
change is_null($var) to (null === $var) for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik authored and Ocramius committed Apr 13, 2014
2 parents 63cc2ee + fe40c59 commit e9a2af2
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 e9a2af2

Please sign in to comment.