Source of file PiwikInstaller.php
Size: 0,667 Bytes - Last Modified: 2021-12-24T06:19:18+00:00
/var/www/docs.ssmods.com/process/src/vendor/composer/installers/src/Composer/Installers/PiwikInstaller.php
1234567891011121314151617181920212223242526272829 | <?php namespace Composer\Installers; /** * Class PiwikInstaller * * @package Composer\Installers */ class PiwikInstaller extends BaseInstaller { /** @var array<string, string> */ protected $locations = array( 'plugin' => 'plugins/{$name}/', ); /** * Format package name to CamelCase */ public function inflectPackageVars(array $vars): array { $vars['name'] = strtolower($this->pregReplace('/(?<=\\w)([A-Z])/', '_\\1', $vars['name'])); $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']); $vars['name'] = str_replace(' ', '', ucwords($vars['name'])); return $vars; } } |