| Conditions | 4 |
| Paths | 4 |
| Total Lines | 21 |
| Code Lines | 14 |
| Lines | 16 |
| Ratio | 76.19 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php namespace Bantenprov\VueWorkflow\Console\Commands; |
||
| 43 | public function handle() |
||
| 44 | { |
||
| 45 | if(!File::exists(base_path().'/app/Http/Controllers/Traits')){ |
||
| 46 | File::makeDirectory(base_path().'/app/Http/Controllers/Traits'); |
||
| 47 | View Code Duplication | if(!File::exists(base_path().'/app/Http/Controllers/Traits/WorkflowConditionTrait.php')){ |
|
| 48 | File::put(base_path().'/app/Http/Controllers/Traits/WorkflowConditionTrait.php',File::get(__DIR__.'/../../stubs/WorkflowConditionTrait.stub')); |
||
| 49 | |||
| 50 | $this->info('Publishing complete'); |
||
| 51 | }else{ |
||
| 52 | $this->error('File WorkflowConditionTrait.php already exist'); |
||
| 53 | } |
||
| 54 | View Code Duplication | }else{ |
|
| 55 | if(!File::exists(base_path().'/app/Http/Controllers/Traits/WorkflowConditionTrait.php')){ |
||
| 56 | File::put(base_path().'/app/Http/Controllers/Traits/WorkflowConditionTrait.php',File::get(__DIR__.'/../../stubs/WorkflowConditionTrait.stub')); |
||
| 57 | |||
| 58 | $this->info('Publishing complete'); |
||
| 59 | }else{ |
||
| 60 | $this->error('File WorkflowConditionTrait.php already exist'); |
||
| 61 | } |
||
| 62 | } |
||
| 63 | } |
||
| 64 | } |
||
| 65 |
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.