WordPress at a glance
class is not described

Composer\Installers

YawikInstaller{} WC 1.0

No Hooks.

Return

null. Nothing.

Usage

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

Methods

  1. inflectPackageVars($vars)

Code of YawikInstaller{} WC 5.3.0

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

    /**
     * Format package name to CamelCase
     * @param array $vars
     *
     * @return array
     */
    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;
    }
}