Conditions | 3 |
Paths | 4 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | public function inflectPackageVars($vars) |
||
20 | { |
||
21 | if ($vars['type'] === 'tastyigniter-extension') { |
||
22 | $vars['vendor'] = preg_replace('/[^a-z0-9_]/i', '', $vars['vendor']); |
||
23 | $vars['name'] = preg_replace('/^ti-ext-/', '', $vars['name']); |
||
24 | } |
||
25 | |||
26 | if ($vars['type'] === 'tastyigniter-theme') { |
||
27 | $vars['name'] = preg_replace('/^ti-theme-/', '', $vars['name']); |
||
28 | } |
||
29 | |||
30 | return $vars; |
||
31 | } |
||
32 | } |