Skip to content

Commit ac5cd15

Browse files
committed
PHP docs.
1 parent d082fba commit ac5cd15

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

e_header.php

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@
9393
$domain_mode = vartrue($prefs['domain_mode'], 0);
9494
$googleanalytics_adsense_script = '';
9595

96-
// Per RFC 2109, cookie domains must contain at least one dot other than the
97-
// first. For hosts such as 'localhost' or IP Addresses we don't set a cookie domain.
96+
// Per RFC 2109, cookie domains must contain at least one dot other than the first. For hosts such as 'localhost'
97+
// or IP Addresses we don't set a cookie domain.
9898
if($domain_mode == 1 && count(explode('.', $cookie_domain)) > 2 && !is_numeric(str_replace('.', '', $cookie_domain)))
9999
{
100100
$create_only_fields = array_merge($create_only_fields, array('cookieDomain' => $cookie_domain));
@@ -110,9 +110,8 @@
110110
// Track logged in users across all devices.
111111
if(vartrue($prefs['track_user_id'], 0) && USERID)
112112
{
113-
// The USERID value should be a unique, persistent, and non-personally
114-
// identifiable string identifier that represents a user or signed-in
115-
// account across devices.
113+
// The USERID value should be a unique, persistent, and non-personally identifiable string identifier that
114+
// represents a user or signed-in account across devices.
116115
$userID = google_analytics_hmac_base64(USERID, google_analytics_get_private_key()); // TODO: Salt private key.
117116
$create_only_fields['userId'] = $userID;
118117
}
@@ -180,8 +179,8 @@
180179
}
181180

182181
/**
183-
* Based on visibility setting this function returns TRUE if GA code should
184-
* be added to the current user class and otherwise FALSE.
182+
* Based on visibility setting this function returns TRUE if GA code should be added to the current user class and
183+
* otherwise FALSE.
185184
*/
186185
function google_analytics_visibility_roles()
187186
{
@@ -190,8 +189,8 @@ function google_analytics_visibility_roles()
190189
}
191190

192191
/**
193-
* Based on visibility setting this function returns TRUE if GA code should
194-
* be added to the current page and otherwise FALSE.
192+
* Based on visibility setting this function returns TRUE if GA code should be added to the current page and otherwise
193+
* FALSE.
195194
*/
196195
function google_analytics_visibility_pages()
197196
{
@@ -258,7 +257,7 @@ function google_analytics_visibility_pages()
258257
* <code>
259258
* <?php
260259
* google_analytics_match_path('my/path/here', 'my/path/*'); // returns true
261-
* google_analytics_match_path('my/path/here', '*my*'); // returns true
260+
* google_analytics_match_path('my/path/here', '*path*'); // returns true
262261
* ?>
263262
* </code>
264263
*

0 commit comments

Comments
 (0)