Skip to content

Conversation

@coderimus
Copy link
Contributor

@coderimus coderimus commented Mar 29, 2018

Description

Hello,
Worked on the internal issue I have found that there is possible to simplify some ternary operators for catalog module. I would be happy to do this for all modules in future by phpcs-fixer automatically but as I can see it doesn't have such ability.

Fixed Issues (if relevant)

N/A

Manual testing scenarios

N/A

Contribution checklist

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)

@magento-engcom-team magento-engcom-team added this to the March 2018 milestone Mar 29, 2018
@magento-engcom-team magento-engcom-team added Partner: Vaimo Pull Request is created by partner Vaimo partners-contribution Pull Request is created by Magento Partner labels Mar 29, 2018

Choose a reason for hiding this comment

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

This change breaks expected functionality, try:

$cacheKey = $storeId ?? 'all';

@coderimus
Copy link
Contributor Author

Hi @adrian-martinez-interactiv4 thank you for your detail review. I implemented requested fix and squashed commits to one. Please, review it.

@orlangur
Copy link
Contributor

I would be happy to do this for all modules in future by php-cs-fixer automatically but as I can see it doesn't have such ability.

Just do it 😉 There is no reason to waste time on performing such changes manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component: Catalog Partner: Vaimo Pull Request is created by partner Vaimo partners-contribution Pull Request is created by Magento Partner Progress: accept Release Line: 2.2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants