diff options
Diffstat (limited to 'UserFunctions/vendor/composer/installers/src/Composer/Installers/MediaWikiInstaller.php')
-rw-r--r-- | UserFunctions/vendor/composer/installers/src/Composer/Installers/MediaWikiInstaller.php | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/UserFunctions/vendor/composer/installers/src/Composer/Installers/MediaWikiInstaller.php b/UserFunctions/vendor/composer/installers/src/Composer/Installers/MediaWikiInstaller.php deleted file mode 100644 index 01008c63..00000000 --- a/UserFunctions/vendor/composer/installers/src/Composer/Installers/MediaWikiInstaller.php +++ /dev/null @@ -1,50 +0,0 @@ -<?php -namespace Composer\Installers; - -class MediaWikiInstaller extends BaseInstaller -{ - protected $locations = array( - 'extension' => 'extensions/{$name}/', - 'skin' => 'skins/{$name}/', - ); - - /** - * Format package name. - * - * For package type mediawiki-extension, cut off a trailing '-extension' if present and transform - * to CamelCase keeping existing uppercase chars. - * - * For package type mediawiki-skin, cut off a trailing '-skin' if present. - * - */ - public function inflectPackageVars($vars) - { - - if ($vars['type'] === 'mediawiki-extension') { - return $this->inflectExtensionVars($vars); - } - - if ($vars['type'] === 'mediawiki-skin') { - return $this->inflectSkinVars($vars); - } - - return $vars; - } - - protected function inflectExtensionVars($vars) - { - $vars['name'] = preg_replace('/-extension$/', '', $vars['name']); - $vars['name'] = str_replace('-', ' ', $vars['name']); - $vars['name'] = str_replace(' ', '', ucwords($vars['name'])); - - return $vars; - } - - protected function inflectSkinVars($vars) - { - $vars['name'] = preg_replace('/-skin$/', '', $vars['name']); - - return $vars; - } - -} |