From c3d4ee9dfcc6b2c7213cbe44952d56b3a4aba317 Mon Sep 17 00:00:00 2001 From: bkrukowski Date: Thu, 13 Sep 2018 00:13:29 +0400 Subject: [PATCH] write conditions in yoda style --- src/Properties/VarProperty.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Properties/VarProperty.php b/src/Properties/VarProperty.php index 53a05c6..ecc928c 100644 --- a/src/Properties/VarProperty.php +++ b/src/Properties/VarProperty.php @@ -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()