Test Failed
Branch master (9dd5cd)
by Blackred
03:57
created

config.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php declare(strict_types=1);
2
3
$settings = [
4
    'apiKey'                 => getenv('WW_TOKEN') ? getenv('WW_TOKEN') : 'your-api-key-here',
5
    'externalProxyProviders' => getenv('WW_EXTERNAL_PROXIES') !== false ? getenv('WW_EXTERNAL_PROXIES') : '',
6
    'cache'                  => new \Doctrine\Common\Cache\FilesystemCache(__DIR__ . '/var/cache'),
7
    'connectionTimeout'      => getenv('WW_TIMEOUT') !== false ? (int)getenv('WW_TIMEOUT') : 10,
8
9
    // examples
10
    #'externalProxyProviders' => 'FreeProxyListProvider',
0 ignored issues
show
Unused Code Comprehensibility introduced by
67% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
11
];
12
13
if (is_file(__DIR__ . '/config.custom.php')) {
14
    $settings = array_merge(
15
        $settings,
16
        require __DIR__ . '/config.custom.php'
17
    );
18
}
19
20
return $settings;