| Conditions | 3 |
| Paths | 3 |
| Total Lines | 20 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public function handle() |
||
| 15 | { |
||
| 16 | $this->info('Begining to set ticket statuses'); |
||
| 17 | |||
| 18 | |||
| 19 | |||
| 20 | if (! $this->configExists('blogpackage.php')) { |
||
|
|
|||
| 21 | $this->publishConfiguration(); |
||
| 22 | $this->info('Published configuration'); |
||
| 23 | } else { |
||
| 24 | if ($this->shouldOverwriteConfig()) { |
||
| 25 | $this->info('Overwriting configuration file...'); |
||
| 26 | $this->publishConfiguration($force = true); |
||
| 27 | } else { |
||
| 28 | $this->info('Existing configuration was not overwritten'); |
||
| 29 | } |
||
| 30 | } |
||
| 31 | |||
| 32 | $this->info('End setting ticket status'); |
||
| 33 | } |
||
| 34 | |||
| 36 | } |
If you implement
__calland you know which methods are available, you can improve IDE auto-completion and static analysis by adding a @method annotation to the class.This is often the case, when
__callis implemented by a parent class and only the child class knows which methods exist: