Source of file AglInstaller.php
Size: 0,674 Bytes - Last Modified: 2021-12-24T06:19:18+00:00
/var/www/docs.ssmods.com/process/src/vendor/composer/installers/src/Composer/Installers/AglInstaller.php
123456789101112131415161718192021222324252627282930 | <?php namespace Composer\Installers; class AglInstaller extends BaseInstaller { /** @var array<string, string> */ protected $locations = array( 'module' => 'More/{$name}/', ); /** * Format package name to CamelCase */ public function inflectPackageVars(array $vars): array { $name = preg_replace_callback('/(?:^|_|-)(.?)/', function ($matches) { return strtoupper($matches[1]); }, $vars['name']); if (null === $name) { throw new \RuntimeException('Failed to run preg_replace_callback: '.preg_last_error()); } $vars['name'] = $name; return $vars; } } |