| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 40 | public function create() |
||
| 41 | {
|
||
| 42 | |||
| 43 | if(!file_exists(app()->path()->helpers())){
|
||
| 44 | $this->directory['helper'] = app()->path()->helpers(); |
||
| 45 | $this->file->makeDirectory($this); |
||
| 46 | } |
||
| 47 | |||
| 48 | $this->touch['helpers/general']= app()->path()->helpers().'/'.ucfirst($this->argument['helper']).'.php'; |
||
| 49 | |||
| 50 | |||
| 51 | $this->file->touch($this); |
||
| 52 | |||
| 53 | echo $this->classical(' > Helper called as "'.$this->argument['helper'].'" has been successfully created in the '.app()->namespace()->helpers().'');
|
||
| 54 | |||
| 56 | } |