| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | public static function get($type, $name, $skeleton) |
||
| 29 | { |
||
| 30 | $skeletonView = MailEclipse::VIEW_NAMESPACE."::skeletons.{$type}.{$name}.{$skeleton}"; |
||
| 31 | |||
| 32 | if (View::exists($skeletonView)) { |
||
| 33 | $skeletonViewPath = View::make($skeletonView)->getPath(); |
||
| 34 | $templateContent = File::get($skeletonViewPath); |
||
| 35 | |||
| 36 | return [ |
||
| 37 | 'type' => $type, |
||
| 38 | 'name' => $name, |
||
| 39 | 'skeleton' => $skeleton, |
||
| 40 | 'template' => Replacer::toEditor($templateContent), |
||
| 41 | 'view' => $skeletonView, |
||
| 42 | 'view_path' => $skeletonViewPath, |
||
| 43 | ]; |
||
| 47 |