| Conditions | 4 |
| Paths | 6 |
| Total Lines | 17 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 36 | public static function setup($prefix = null) |
||
| 37 | { |
||
| 38 | $theme = self::name($prefix); |
||
| 39 | $path = self::find($theme); |
||
| 40 | |||
| 41 | if ($path !== null) { |
||
| 42 | $config = self::getData($theme, 'meta'); |
||
| 43 | if ($config->get('type') == 'theme') { |
||
| 44 | return $theme; |
||
| 45 | } |
||
| 46 | } |
||
| 47 | |||
| 48 | return null; |
||
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Get name by prefix. |
||
| 53 | * |
||
| 83 |