You are here

protected function DokuWikiInstaller::inflectPluginVars in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/composer/installers/src/Composer/Installers/DokuWikiInstaller.php \Composer\Installers\DokuWikiInstaller::inflectPluginVars()
1 call to DokuWikiInstaller::inflectPluginVars()
DokuWikiInstaller::inflectPackageVars in vendor/composer/installers/src/Composer/Installers/DokuWikiInstaller.php
Format package name.

File

vendor/composer/installers/src/Composer/Installers/DokuWikiInstaller.php, line 34

Class

DokuWikiInstaller

Namespace

Composer\Installers

Code

protected function inflectPluginVars($vars) {
  $vars['name'] = preg_replace('/-plugin$/', '', $vars['name']);
  $vars['name'] = preg_replace('/^dokuwiki_?-?/', '', $vars['name']);
  return $vars;
}