Blame view

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