Remove redundant ternary expression

Replace it with casting to a boolean
This commit is contained in:
Cam Spiers 2014-05-30 14:54:57 +12:00
parent fda91b7f8c
commit 9aa7414aed

View File

@ -277,7 +277,7 @@ each class that it is extended by.
class CustomerWorkflow extends DataExtension {
public function IsMarkedForDeletion() {
return ($this->owner->Account()->IsMarkedForDeletion == 1) ? true : false;
return (bool) $this->owner->Account()->IsMarkedForDeletion;
}
}