| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 50 | public function create() |
||
| 51 | {
|
||
| 52 | if(!file_exists(app()->path()->workers())){
|
||
| 53 | $this->directory['worker'] = app()->path()->workers(); |
||
| 54 | $this->file->makeDirectory($this); |
||
| 55 | } |
||
| 56 | |||
| 57 | $this->argument['workerNamespace'] = app()->namespace()->workers(); |
||
| 58 | $this->argument['workerClass'] = ucfirst($this->argument['worker']).''; |
||
| 59 | $this->argument['projectName'] = strtolower($this->projectName()); |
||
| 60 | |||
| 61 | $this->touch['worker/worker']= app()->path()->workers().'/'.$this->argument['worker'].'.php'; |
||
| 62 | |||
| 63 | |||
| 64 | $this->file->touch($this); |
||
| 65 | |||
| 66 | echo $this->classical(' > Worker file called as "'.$this->argument['worker'].'" has been successfully created in the '.app()->path()->workers().'');
|
||
| 67 | } |
||
| 70 | } |