This is the MediaCT coding standard for Magento 1 projects. It is a mix of the default MediaCT coding standard and the Magento marketplace standard.
Some tests have been removed from both of the standards to create a workable and fast standard.
Use composer to require the standard in a project.
$ composer require --dev mediact/coding-standard-magento1
To let PHPCS know that this standard should be used add a phpcs.xml file in the root of the project.
<?xml version="1.0"?>
<ruleset>
<rule ref="./vendor/mediact/coding-standard-magento1/src/MediactMagento1"/>
</ruleset>
When the phpcs.xml file exists it will be automatically configured by
media/coding-standard-phpstorm
. This is triggered by the composer command.
$ composer install
Contributions are welcome. Please create pull requests which add or remove tests.