Total Complexity | 6 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | class Policies |
||
6 | { |
||
7 | /** |
||
8 | * Detects the widget Should Have Debug Info. |
||
9 | * |
||
10 | * @return bool |
||
11 | */ |
||
12 | 20 | public function widgetShouldHaveDebugInfo(): bool |
|
15 | } |
||
16 | |||
17 | /** |
||
18 | * The caching is turned off when: |
||
19 | * 1 - we are running tests |
||
20 | * 2 - have disabled it in config file. |
||
21 | * |
||
22 | * @return bool |
||
23 | */ |
||
24 | 24 | public function widgetShouldUseCache(): bool |
|
27 | } |
||
28 | |||
29 | /** |
||
30 | * Widget Should Be Minified or Not. |
||
31 | * |
||
32 | * @param $widget |
||
33 | * @return bool |
||
34 | */ |
||
35 | 20 | public function widgetShouldBeMinified($widget): bool |
|
42 |