Conditions | 3 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
30 | public function handle(): void |
||
31 | { |
||
32 | $user = $this->argument('user'); |
||
33 | $group = $this->argument('group') ?? $user; |
||
34 | |||
35 | $jsonsPath = config('telegram-git-notifier.data_file.storage_folder'); |
||
36 | if (is_string($jsonsPath) && file_exists($jsonsPath)) { |
||
37 | exec("chown -R $user:$group $jsonsPath"); |
||
38 | } |
||
41 |