Skip to content

Conversation

@AimalAzmi
Copy link
Contributor

No description provided.

Copy link
Collaborator

@daneastmond daneastmond left a comment

Choose a reason for hiding this comment

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

Was looking at the Scrutinizer fail on PurchaseRequest::GetData() here and wondering if this would benefit from using the elvis operator to get rid of all the if checks?

Eg
replacing

if ( $this->getStoreCard() ) {
  $data['storeCard'] = true;
}

with
$data['storeCard'] = $this->getStoreCard() ?: false

Would this work?

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.

3 participants