<?php
namespace Composer\Installers;

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

    /**
     * Lowercase name and changes the name to a underscores
     *
     * @param  array $vars
     * @return array
     */
    public function inflectPackageVars( $vars)
    {
        $vars['name'] = strtolower(str_replace( '-', '_', $vars['name']));

        return $vars;
    }
}
