GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Config::mergeConfig()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 31
Code Lines 24

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 24
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 31
rs 9.536
1
<?php
2
3
namespace Honeybadger;
4
5
use Honeybadger\Support\Repository;
6
7
class Config extends Repository
8
{
9
    /**
10
     * @param  array  $config
11
     */
12
    public function __construct($config = [])
13
    {
14
        $this->items = $this->mergeConfig($config);
15
    }
16
17
    /**
18
     * @param  array  $config
19
     * @return array
20
     */
21
    private function mergeConfig($config = []): array
22
    {
23
        return array_merge([
24
            'api_key' => null,
25
            'notifier' => [
26
                'name' => 'Honeybadger PHP',
27
                'url' => 'https://github.com/honeybadger-io/honeybadger-php',
28
                'version' => Honeybadger::VERSION,
29
            ],
30
            'environment' => [
31
                'filter' => [],
32
                'include' => [],
33
            ],
34
            'request' => [
35
                'filter' => [],
36
            ],
37
            'version' => '',
38
            'hostname' => gethostname(),
39
            'project_root' => '',
40
            'environment_name' => 'production',
41
            'handlers' => [
42
                'exception' => true,
43
                'error' => true,
44
            ],
45
            'client' => [
46
                'timeout' => 0,
47
                'proxy' => [],
48
            ],
49
            'excluded_exceptions' => [],
50
            'report_data' => true,
51
        ], $config);
52
    }
53
}
54