Registry / other / magento-ecg-coding-standard

magento-ecg-coding-standard

JSON →
library4.5.4phppackagistunverified

A set of PHP_CodeSniffer rules and sniffs for Magento coding standards.

composer require magento-ecg/coding-standard
INSTALL
IMPORT
SIG · MAGENTO-ECG-CODING
M
magento-ecg-coding-standard
otherphpv4.5.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ObjectInstantiationSniff
use MagentoEcg\CodingStandard\Sniffs\Classes\ObjectInstantiationSniff;

Use the Magento ECG coding standard with PHP_CodeSniffer.

use MagentoEcg\CodingStandard\Sniffs\Classes\ObjectInstantiationSniff; $sniff = new ObjectInstantiationSniff(); // Typically used with PHP_CodeSniffer $phpcs = new PHP_CodeSniffer\Runner(); $phpcs->config->standards = ['MagentoEcg']; $phpcs->run();
Debug
Known issues
breakingThis package is deprecated and no longer maintained; consider using the official Magento Coding Standard.
fix
Switch to magento/magento-coding-standard for up-to-date rules.
affects: >=4.0.0
Upgrade
Version history
4.5.4latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
14
Resources
magento-ecg-coding-standard — pip install magento-ecg-coding-standard · libregistry