Skip to content

Commit

Permalink
Merge pull request #7 from chapeupreto/patch-1
Browse files Browse the repository at this point in the history
removes if/else
  • Loading branch information
BenSampo authored May 18, 2018
2 parents aa607c3 + 7878a16 commit 8cf29b8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Rules/EnumValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,7 @@ public function __construct(string $enum)
*/
public function passes($attribute, $value)
{
if (in_array($value, $this->validValues, true)) {
return true;
} else {
return false;
}
return in_array($value, $this->validValues, true);
}

/**
Expand Down

0 comments on commit 8cf29b8

Please sign in to comment.