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   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 45
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 26
c 1
b 0
f 0
dl 0
loc 45
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A mergeConfig() 0 31 1
A __construct() 0 3 1
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