Skip to content

Commit

Permalink
write conditions in yoda style
Browse files Browse the repository at this point in the history
  • Loading branch information
bkrukowski committed Sep 12, 2018
1 parent 625909d commit c3d4ee9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Properties/VarProperty.php
Expand Up @@ -81,17 +81,17 @@ public function isVirtual()

public function isPublic()
{
return $this->visibility === static::VISIBILITY_PUBLIC;
return static::VISIBILITY_PUBLIC === $this->visibility;
}

public function isProtected()
{
return $this->visibility === static::VISIBILITY_PROTECTED;
return static::VISIBILITY_PROTECTED === $this->visibility;
}

public function isPrivate()
{
return $this->visibility === static::VISIBILITY_PRIVATE;
return static::VISIBILITY_PRIVATE === $this->visibility;
}

public function getDeclaringClass()
Expand Down

0 comments on commit c3d4ee9

Please sign in to comment.