Issues (22)

src/config/config.php (1 issue)

1
<?php
2
3
return [
4
    /*
5
    |--------------------------------------------------------------------------
6
    | Cache the HTML
7
    |--------------------------------------------------------------------------
8
    | You can Globally turn caching on and off for all widgets from here
9
    |
10
    */
11
    'enable_cache' => false,
12
    /*
13
    |--------------------------------------------------------------------------
14
    | Default Cache Lifetime
15
    |--------------------------------------------------------------------------
16
    | You Can Specify a fallback value for the cache lifetime of your
17
    | widgets, so you do not have to define the "public $cacheLifeTime"
18
    | on each and every widget class in your application.
19
    |
20
    */
21
    'default_cache_lifetime' => 1, //(minutes)
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...
22
    /*
23
    |--------------------------------------------------------------------------
24
    | Minify Widget HTML
25
    |--------------------------------------------------------------------------
26
    | Minify widgets to save both 'cache storage space' and the 'page size'
27
    |
28
    | * Putting "APP_ENV=production" in .env will forcefully enable minification.
29
    |
30
    */
31
    'minify_html' => false,
32
    /*
33
    |--------------------------------------------------------------------------
34
    | Debug Mode for Widgets
35
    |--------------------------------------------------------------------------
36
    | It is helpful for you to see information about your widgets in the browser
37
    | as HTML title attribute.So it is recommended to turn it on for development.
38
    |
39
    | * Putting "APP_ENV=production" in .env will forcefully disable debug_info.
40
    |
41
    */
42
    'debug_info' => true,
43
];
44