1<?php
2namespace Composer\Installers;
3
4class RoundcubeInstaller extends BaseInstaller
5{
6    protected $locations = array(
7        'plugin' => 'plugins/{$name}/',
8    );
9
10    /**
11     * Lowercase name and changes the name to a underscores
12     *
13     * @param  array $vars
14     * @return array
15     */
16    public function inflectPackageVars($vars)
17    {
18        $vars['name'] = strtolower(str_replace('-', '_', $vars['name']));
19
20        return $vars;
21    }
22}
23