Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
33 | protected function publishConfig() |
||
34 | { |
||
35 | $configPath = __DIR__.'/../config/repository-generator.php'; |
||
36 | |||
37 | if (function_exists('config_path')) { |
||
38 | $publishPath = config_path('repository-generator.php'); |
||
|
|||
39 | } else { |
||
40 | $publishPath = base_path('config/repository-generator.php'); |
||
41 | } |
||
42 | |||
43 | // Publish config files |
||
44 | $this->publishes([$configPath => $publishPath], 'config'); |
||
45 | } |
||
69 |