mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Remove redundant ternary expression
Replace it with casting to a boolean
This commit is contained in:
parent
fda91b7f8c
commit
9aa7414aed
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user