mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #3174 from camspiers/patch-1
Remove redundant ternary expression
This commit is contained in:
commit
89333d575d
@ -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