Issues (38)

src/config/laravelpackagist.php (1 issue)

Labels
Severity
1
<?php
2
3
return [
4
5
    /*
6
    |--------------------------------------------------------------------------
7
    | Packagist Caching Settings
8
    |--------------------------------------------------------------------------
9
    */
10
    'caching' => [
11
        'enabled'               => env('PACKAGIST_CACHE_ENABLED', true),
0 ignored issues
show
The function env was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

11
        'enabled'               => /** @scrutinizer ignore-call */ env('PACKAGIST_CACHE_ENABLED', true),
Loading history...
12
        'vendorListCacheTime'   => env('PACKAGIST_VENDOR_LIST_CACHE_TIME_MINUTES', 100),
13
        'vendorItemCacheTime'   => env('PACKAGIST_VENDOR_ITEM_CACHE_TIME_MINUTES', 100),
14
    ],
15
16
    /*
17
    |--------------------------------------------------------------------------
18
    | Packagist CURL Settings
19
    |--------------------------------------------------------------------------
20
    */
21
    'curl' => [
22
        'timeout'       => env('PACKAGIST_CURL_TIMEOUT', 30),
23
        'maxredirects'  => env('PACKAGIST_CURL_MAX_REDIRECTS', 10),
24
    ],
25
26
    /*
27
    |--------------------------------------------------------------------------
28
    | Packagist API URLS
29
    |--------------------------------------------------------------------------
30
    */
31
    'urls' => [
32
        'vendorBase'     => env('PACKAGIST_API_VENDOR_URL_BASE', 'https://packagist.org/packages/list.json?vendor='),
33
        'projectPreFix'  => env('PACKAGIST_API_VENDOR_PROJECT_BASE_PREFIX', 'https://packagist.org/packages/'),
34
        'projectPostFix' => env('PACKAGIST_API_VENDOR_PROJECT_BASE_POSTFIX', '.json'),
35
    ],
36
37
    /*
38
    |--------------------------------------------------------------------------
39
    | Packagist default vendor
40
    |--------------------------------------------------------------------------
41
    */
42
    'vendor' => [
43
        'default' => env('PACKAGIST_DEFAULT_VENDOR', 'jeremykenedy'),
44
    ],
45
46
    /*
47
    |--------------------------------------------------------------------------
48
    | Packagist logging
49
    |--------------------------------------------------------------------------
50
    */
51
    'logging' => [
52
        'curlErrors' => env('PACKAGIST_LOG_CURL_ERROR', true),
53
    ],
54
55
];
56