@@ -5,31 +5,31 @@ |
||
5 | 5 | $COOKIE_LIFETIME_UM = 'months'; |
6 | 6 | |
7 | 7 | return [ |
8 | - /* |
|
8 | + /* |
|
9 | 9 | * Use this setting to enable the cookie consent dialog. |
10 | 10 | */ |
11 | - 'enabled' => env('COOKIE_CONSENT_ENABLED', true), |
|
11 | + 'enabled' => env('COOKIE_CONSENT_ENABLED', true), |
|
12 | 12 | |
13 | - /* |
|
13 | + /* |
|
14 | 14 | * The name of the cookie in which we store if the user |
15 | 15 | * has agreed to accept the conditions. |
16 | 16 | */ |
17 | - 'cookie_name' => $COOKIE_CONSENT_NAME, |
|
17 | + 'cookie_name' => $COOKIE_CONSENT_NAME, |
|
18 | 18 | |
19 | - /* |
|
19 | + /* |
|
20 | 20 | * Set the cookie duration in days. |
21 | 21 | */ |
22 | - 'cookie_lifetime' => $COOKIE_LIFETIME, |
|
22 | + 'cookie_lifetime' => $COOKIE_LIFETIME, |
|
23 | 23 | |
24 | 24 | /* |
25 | 25 | * 4 types of cookie |
26 | 26 | */ |
27 | - 'cookie_types' => [ |
|
28 | - 'necessary' => $COOKIE_CONSENT_NAME.'_necessary', |
|
29 | - 'statistics' => $COOKIE_CONSENT_NAME.'_statistics', |
|
27 | + 'cookie_types' => [ |
|
28 | + 'necessary' => $COOKIE_CONSENT_NAME.'_necessary', |
|
29 | + 'statistics' => $COOKIE_CONSENT_NAME.'_statistics', |
|
30 | 30 | 'marketing' => $COOKIE_CONSENT_NAME.'_marketing', |
31 | - 'functional' => $COOKIE_CONSENT_NAME.'_functional', |
|
32 | - ], |
|
31 | + 'functional' => $COOKIE_CONSENT_NAME.'_functional', |
|
32 | + ], |
|
33 | 33 | |
34 | 34 | /* |
35 | 35 | * All cookies by type |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | 'um' => 'minutes' |
44 | 44 | ], |
45 | 45 | 'provider' => env('APP_NAME'), |
46 | - 'domain' => str_replace(['http://', 'https://'], '', env('APP_URL')), |
|
46 | + 'domain' => str_replace([ 'http://', 'https://' ], '', env('APP_URL')), |
|
47 | 47 | ], |
48 | 48 | 'laravel_session' => [ |
49 | 49 | 'duration' => [ |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | 'um' => 'minutes' |
52 | 52 | ], |
53 | 53 | 'provider' => env('APP_NAME'), |
54 | - 'domain' => str_replace(['http://', 'https://'], '', env('APP_URL')), |
|
54 | + 'domain' => str_replace([ 'http://', 'https://' ], '', env('APP_URL')), |
|
55 | 55 | ], |
56 | 56 | // Laravel Cookie Consent |
57 | 57 | $COOKIE_CONSENT_NAME => [ |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | 'um' => $COOKIE_LIFETIME_UM |
61 | 61 | ], |
62 | 62 | 'provider' => env('APP_NAME'), |
63 | - 'domain' => str_replace(['http://', 'https://'], '', env('APP_URL')), |
|
63 | + 'domain' => str_replace([ 'http://', 'https://' ], '', env('APP_URL')), |
|
64 | 64 | ], |
65 | 65 | $COOKIE_CONSENT_NAME.'_statistics' => [ |
66 | 66 | 'duration' => [ |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | 'um' => $COOKIE_LIFETIME_UM |
69 | 69 | ], |
70 | 70 | 'provider' => env('APP_NAME'), |
71 | - 'domain' => str_replace(['http://', 'https://'], '', env('APP_URL')), |
|
71 | + 'domain' => str_replace([ 'http://', 'https://' ], '', env('APP_URL')), |
|
72 | 72 | ], |
73 | 73 | $COOKIE_CONSENT_NAME.'_marketing' => [ |
74 | 74 | 'duration' => [ |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | 'um' => $COOKIE_LIFETIME_UM |
77 | 77 | ], |
78 | 78 | 'provider' => env('APP_NAME'), |
79 | - 'domain' => str_replace(['http://', 'https://'], '', env('APP_URL')), |
|
79 | + 'domain' => str_replace([ 'http://', 'https://' ], '', env('APP_URL')), |
|
80 | 80 | ], |
81 | 81 | $COOKIE_CONSENT_NAME.'_functions' => [ |
82 | 82 | 'duration' => [ |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | 'um' => $COOKIE_LIFETIME_UM |
85 | 85 | ], |
86 | 86 | 'provider' => env('APP_NAME'), |
87 | - 'domain' => str_replace(['http://', 'https://'], '', env('APP_URL')), |
|
87 | + 'domain' => str_replace([ 'http://', 'https://' ], '', env('APP_URL')), |
|
88 | 88 | ], |
89 | 89 | // Google reCAPTCHA |
90 | 90 | '_GRECAPTCHA' => [ |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | 'um' => 'years' |
105 | 105 | ], |
106 | 106 | 'provider' => 'Google Analytics', |
107 | - 'domain' => str_replace(['http://', 'https://'], '', str_replace('www', '', env('APP_URL'))), |
|
107 | + 'domain' => str_replace([ 'http://', 'https://' ], '', str_replace('www', '', env('APP_URL'))), |
|
108 | 108 | ], |
109 | 109 | '_gid' => [ |
110 | 110 | 'duration' => [ |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | 'um' => 'day' |
113 | 113 | ], |
114 | 114 | 'provider' => 'Google Analytics', |
115 | - 'domain' => str_replace(['http://', 'https://'], '', str_replace('www', '', env('APP_URL'))), |
|
115 | + 'domain' => str_replace([ 'http://', 'https://' ], '', str_replace('www', '', env('APP_URL'))), |
|
116 | 116 | ], |
117 | 117 | '_ga_*' => [ |
118 | 118 | 'duration' => [ |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | 'um' => 'years' |
121 | 121 | ], |
122 | 122 | 'provider' => 'Google Analytics', |
123 | - 'domain' => str_replace(['http://', 'https://'], '', str_replace('www', '', env('APP_URL'))), |
|
123 | + 'domain' => str_replace([ 'http://', 'https://' ], '', str_replace('www', '', env('APP_URL'))), |
|
124 | 124 | ], |
125 | 125 | '_gat_*' => [ |
126 | 126 | 'duration' => [ |
@@ -128,10 +128,10 @@ discard block |
||
128 | 128 | 'um' => 'minute' |
129 | 129 | ], |
130 | 130 | 'provider' => 'Google Analytics', |
131 | - 'domain' => str_replace(['http://', 'https://'], '', str_replace('www', '', env('APP_URL'))), |
|
131 | + 'domain' => str_replace([ 'http://', 'https://' ], '', str_replace('www', '', env('APP_URL'))), |
|
132 | 132 | ], |
133 | 133 | ], |
134 | - 'marketing' => [], |
|
135 | - 'functional' => [], |
|
134 | + 'marketing' => [ ], |
|
135 | + 'functional' => [ ], |
|
136 | 136 | ] |
137 | 137 | ]; |