| 1 |
<?php |
| 2 |
|
| 3 |
namespace Composer\Installers; |
| 4 |
|
| 5 |
class CroogoInstaller extends BaseInstaller |
| 6 |
{ |
| 7 |
/** @var array<string, string> */ |
| 8 |
protected $locations = array( |
| 9 |
'plugin' => 'Plugin/{$name}/', |
| 10 |
'theme' => 'View/Themed/{$name}/', |
| 11 |
); |
| 12 |
|
| 13 |
/** |
| 14 |
* Format package name to CamelCase |
| 15 |
*/ |
| 16 |
public function inflectPackageVars(array $vars): array |
| 17 |
{ |
| 18 |
$vars['name'] = strtolower(str_replace(array('-', '_'), ' ', $vars['name'])); |
| 19 |
$vars['name'] = str_replace(' ', '', ucwords($vars['name'])); |
| 20 |
|
| 21 |
return $vars; |
| 22 |
} |
| 23 |
} |
| 24 |
|