Total Complexity | 7 |
Total Lines | 59 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class Installer implements InstallerContract |
||
12 | { |
||
13 | /** |
||
14 | * {@inheritdoc} |
||
15 | */ |
||
16 | public function writeConfig(array $config, string $filePath): bool |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * {@inheritdoc} |
||
34 | */ |
||
35 | public function sendTestException(): array |
||
36 | { |
||
37 | return app('honeybadger.loud')->notify(new TestException); |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * {@inheritdoc} |
||
42 | */ |
||
43 | public function publishLaravelConfig(): bool |
||
44 | { |
||
45 | return Artisan::call('vendor:publish', [ |
||
46 | '--tag' => 'honeybadger-config', |
||
47 | ]) === 0; |
||
48 | } |
||
49 | |||
50 | /** |
||
51 | * {@inheritdoc} |
||
52 | */ |
||
53 | public function shouldPublishConfig(): bool |
||
54 | { |
||
55 | return ! file_exists(base_path('config/honeybadger.php')); |
||
56 | } |
||
57 | |||
58 | /** |
||
59 | * {@inheritdoc} |
||
60 | */ |
||
61 | public function publishLumenConfig(string $stubPath = null): bool |
||
70 | ); |
||
71 | } |
||
72 | } |
||
73 |