WordPress at a glance
class is not described

Composer\Installers

MantisBTInstaller{} WC 1.0

No Hooks.

Return

null. Nothing.

Usage

$MantisBTInstaller = new MantisBTInstaller();
// use class methods

Methods

  1. inflectPackageVars($vars)

Code of MantisBTInstaller{} WC 5.2.2

<?php
class MantisBTInstaller extends BaseInstaller
{
    protected $locations = array(
        'plugin' => 'plugins/{$name}/',
    );

    /**
     * Format package name to CamelCase
     */
    public function inflectPackageVars($vars)
    {
        $vars['name'] = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $vars['name']));
        $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']);
        $vars['name'] = str_replace(' ', '', ucwords($vars['name']));

        return $vars;
    }
}