WordPress at a glance
class is not described

Composer\Installers

PlentymarketsInstaller{} WC 1.0

No Hooks.

Return

null. Nothing.

Usage

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

Methods

  1. inflectPackageVars($vars)

Code of PlentymarketsInstaller{} WC 5.2.2

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

    /**
     * Remove hyphen, "plugin" and format to camelcase
     * @param array $vars
     *
     * @return array
     */
    public function inflectPackageVars($vars)
    {
        $vars['name'] = explode("-", $vars['name']);
        foreach ($vars['name'] as $key => $name) {
            $vars['name'][$key] = ucfirst($vars['name'][$key]);
            if (strcasecmp($name, "Plugin") == 0) {
                unset($vars['name'][$key]);
            }
        }
        $vars['name'] = implode("",$vars['name']);

        return $vars;
    }
}