| Conditions | 2 |
| Paths | 6 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | public function handle() |
||
| 36 | { |
||
| 37 | try { |
||
| 38 | |||
| 39 | $name = $this->getDirectiveArgument(); |
||
| 40 | |||
| 41 | $theme = $this->getThemeArgument(); |
||
| 42 | |||
| 43 | $include = Samurai::theme($theme)->include($name)->create(); |
||
|
|
|||
| 44 | |||
| 45 | $this->clean(); |
||
| 46 | |||
| 47 | return $this->success($name, $theme, $include->relative()); |
||
| 48 | |||
| 49 | } catch (Exception $e) { |
||
| 50 | return $this->failure($e); |
||
| 51 | } |
||
| 54 |