Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH Remove unnecessary condition #546

Merged

Conversation

GuySartorelli
Copy link
Collaborator

if (method_exists($target, 'CMSEditLink')) {
$instance->setField('ObjectRecordLink', $target->CMSEditLink());
}
$instance->setField('ObjectRecordLink', $target->CMSEditLink());
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$instance->setField('ObjectRecordLink', $target->CMSEditLink());
$instance->setField('ObjectRecordLink', $target->getCMSEditLink());

@GuySartorelli GuySartorelli force-pushed the pulls/7/standardise-cmseditlink branch from 58bdac6 to bf9a282 Compare August 22, 2024 03:52
@GuySartorelli GuySartorelli force-pushed the pulls/7/standardise-cmseditlink branch from bf9a282 to 1d64985 Compare August 22, 2024 23:36
@emteknetnz emteknetnz merged commit 1ef6b77 into symbiote:7 Aug 25, 2024
10 checks passed
@emteknetnz emteknetnz deleted the pulls/7/standardise-cmseditlink branch August 25, 2024 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants