Skip to content

Conversation

@svera
Copy link
Contributor

@svera svera commented Sep 23, 2021

This sniff checks that no obsolete upgrade files are used, pointing to modern alternatives in that case.

@svera svera changed the title Ac 669 install upgrade test AC-669 install upgrade test Sep 23, 2021
loginesta
loginesta previously approved these changes Sep 23, 2021

$fileInfo = new SplFileInfo($phpcsFile->getFilename());

if (strpos($fileInfo->getFilename(), 'install-') === 0) {
Copy link
Contributor

Choose a reason for hiding this comment

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

You are doing the same logic with different data several times. Could you extract a method to simplify it?

@svera
Copy link
Contributor Author

svera commented Sep 27, 2021

@magento import pr to magento-commerce/magento-coding-standard

@m2-github-services
Copy link
Contributor

@svera the Pull Request is successfully imported.

@magento-devops-reposync-svc magento-devops-reposync-svc merged commit e5a5848 into magento:develop Sep 27, 2021
@svera svera deleted the AC-669_InstallUpgradeTest branch September 27, 2021 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

5 participants