public function inflectPackageVars($vars)
    {
        $restrictedWords = implode('|', array_keys($this->locations));

        $vars['name'] = strtolower($vars['name']);
        $vars['name'] = preg_replace('/^(?:grav-)?(?:(?:'.$restrictedWords.')-)?(.*?)(?:-(?:'.$restrictedWords.'))?$/ui',
            '$1',
            $vars['name']
        );

        return $vars;
    }
public function inflectPackageVars($vars)
    {
        $restrictedWords = implode('|', array_keys($this->locations));

        $vars['name'] = strtolower($vars['name']);
        $vars['name'] = preg_replace('/^(?:grav-)?(?:(?:'.$restrictedWords.')-)?(.*?)(?:-(?:'.$restrictedWords.'))?$/ui',
            '$1',
            $vars['name']
        );

        return $vars;
    }
public function inflectPackageVars ( $ vars ) { $ restrictedWords = implode ( '|' , array_keys ( $ this -> locations ) ) ; $ vars [ 'name' ] = strtolower ( $ vars [ 'name' ] ) ; $ vars [ 'name' ] = preg_replace ( '/^(?:grav-)?(?:(?:' . $ restrictedWords . ')-)?(.*?)(?:-(?:' . $ restrictedWords . '))?$/ui' , '$1' , $ vars [ 'name' ] ) ; return $ vars ; }
Format package name

@param array $vars

@return array
Format package name