Skip to content
Snippets Groups Projects
Commit f997209e authored by Daniel Siepmann's avatar Daniel Siepmann
Browse files

Merge branch '24-change-installer-type-to-phpcodesniffer-standard' into 'develop'

TASK: Rename primary composer plugin type

Closes #24

See merge request !24
parents 34865ae6 62bc8db6
3 merge requests!37Release 0.4.0,!29Feature/integrate psr2 into ci,!24TASK: Rename primary composer plugin type
......@@ -16,7 +16,7 @@ use Higidi\ComposerPhpCSStandardsPlugin\PHPCodeSniffer\Standards;
class Installer extends LibraryInstaller
{
const TYPE = 'php-codesniffer-standards';
const TYPE = 'phpcodesniffer-standard';
/**
* Initializes library installer.
......@@ -224,4 +224,16 @@ class Installer extends LibraryInstaller
{
return $this->getInstallPath($this->getPHPCodeSnifferPackage($repo));
}
/**
* {@inheritDoc}
*/
public function supports($packageType)
{
$secondaryPackageTypes = array('phpcodesniffer-standards');
$deprecatedPackageTypes = array('php-codesniffer-standards');
return parent::supports($packageType)
|| in_array($packageType, array_merge($secondaryPackageTypes, $deprecatedPackageTypes));
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment