Test Failed
Pull Request — master (#296)
by Viruthagiri
11:50
created
geodirectory-functions/google_analytics.php 4 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
  * @param string $page Page url to use in analytics filters.
56 56
  * @param bool   $ga_start The start date of the data to include in YYYY-MM-DD format.
57 57
  * @param bool   $ga_end The end date of the data to include in YYYY-MM-DD format.
58
- * @return string Html text content.
58
+ * @return false|null Html text content.
59 59
  */
60 60
 function geodir_getGoogleAnalytics($page, $ga_start, $ga_end)
61 61
 {
Please login to merge, or discard this patch.
Indentation   +128 added lines, -128 removed lines patch added patch discarded remove patch
@@ -17,34 +17,34 @@  discard block
 block discarded – undo
17 17
  */
18 18
 function geodir_sec2hms($sec, $padHours = false)
19 19
 {
20
-    // holds formatted string
21
-    $hms = "";
22
-    // there are 3600 seconds in an hour, so if we
23
-    // divide total seconds by 3600 and throw away
24
-    // the remainder, we've got the number of hours
25
-    $hours = intval(intval($sec) / 3600);
26
-
27
-    // add to $hms, with a leading 0 if asked for
28
-    $hms .= ($padHours) ? str_pad($hours, 2, "0", STR_PAD_LEFT) . ':' : $hours . ':';
29
-
30
-    // dividing the total seconds by 60 will give us
31
-    // the number of minutes, but we're interested in
32
-    // minutes past the hour: to get that, we need to
33
-    // divide by 60 again and keep the remainder
34
-    $minutes = intval(($sec / 60) % 60);
35
-
36
-    // then add to $hms (with a leading 0 if needed)
37
-    $hms .= str_pad($minutes, 2, "0", STR_PAD_LEFT) . ':';
38
-
39
-    // seconds are simple - just divide the total
40
-    // seconds by 60 and keep the remainder
41
-    $seconds = intval($sec % 60);
42
-
43
-    // add to $hms, again with a leading 0 if needed
44
-    $hms .= str_pad($seconds, 2, "0", STR_PAD_LEFT);
45
-
46
-    // done!
47
-    return $hms;
20
+	// holds formatted string
21
+	$hms = "";
22
+	// there are 3600 seconds in an hour, so if we
23
+	// divide total seconds by 3600 and throw away
24
+	// the remainder, we've got the number of hours
25
+	$hours = intval(intval($sec) / 3600);
26
+
27
+	// add to $hms, with a leading 0 if asked for
28
+	$hms .= ($padHours) ? str_pad($hours, 2, "0", STR_PAD_LEFT) . ':' : $hours . ':';
29
+
30
+	// dividing the total seconds by 60 will give us
31
+	// the number of minutes, but we're interested in
32
+	// minutes past the hour: to get that, we need to
33
+	// divide by 60 again and keep the remainder
34
+	$minutes = intval(($sec / 60) % 60);
35
+
36
+	// then add to $hms (with a leading 0 if needed)
37
+	$hms .= str_pad($minutes, 2, "0", STR_PAD_LEFT) . ':';
38
+
39
+	// seconds are simple - just divide the total
40
+	// seconds by 60 and keep the remainder
41
+	$seconds = intval($sec % 60);
42
+
43
+	// add to $hms, again with a leading 0 if needed
44
+	$hms .= str_pad($seconds, 2, "0", STR_PAD_LEFT);
45
+
46
+	// done!
47
+	return $hms;
48 48
 }
49 49
 
50 50
 /**
@@ -60,122 +60,122 @@  discard block
 block discarded – undo
60 60
 function geodir_getGoogleAnalytics($page, $ga_start, $ga_end)
61 61
 {
62 62
 
63
-    // NEW ANALYTICS
64
-
65
-    $start_date = '';
66
-    $end_date = '';
67
-    $dimensions = '';
68
-    $sort = '';
69
-    $filters = "ga:pagePath==".$page;
70
-    $metrics = "ga:pageviews";
71
-    $realtime = false;
72
-    $limit = false;
73
-    if(isset($_REQUEST['ga_type']) && $_REQUEST['ga_type']=='thisweek'){
74
-        $start_date = date('Y-m-d', strtotime("-6 day"));
75
-        $end_date = date('Y-m-d');
76
-        $dimensions = "ga:date,ga:nthDay";
77
-    }elseif(isset($_REQUEST['ga_type']) && $_REQUEST['ga_type']=='lastweek'){
78
-        $start_date = date('Y-m-d', strtotime("-13 day"));
79
-        $end_date = date('Y-m-d', strtotime("-7 day"));
80
-        $dimensions = "ga:date,ga:nthDay";
81
-    }
82
-    elseif(isset($_REQUEST['ga_type']) && $_REQUEST['ga_type']=='thisyear'){
83
-        $start_date = date('Y')."-01-01";
84
-        $end_date = date('Y-m-d');
85
-        $dimensions = "ga:month,ga:nthMonth";
86
-    }
87
-    elseif(isset($_REQUEST['ga_type']) && $_REQUEST['ga_type']=='lastyear'){
88
-        $start_date = date('Y', strtotime("-1 year"))."-01-01";
89
-        $end_date = date('Y', strtotime("-1 year"))."-12-31";
90
-        $dimensions = "ga:month,ga:nthMonth";
91
-    }
92
-    elseif(isset($_REQUEST['ga_type']) && $_REQUEST['ga_type']=='country'){
93
-        $start_date = "14daysAgo";
94
-        $end_date = "yesterday";
95
-        $dimensions = "ga:country";
96
-        $sort = "ga:pageviews";
97
-        $limit  = 5;
98
-    }elseif(isset($_REQUEST['ga_type']) && $_REQUEST['ga_type']=='realtime'){
99
-        $metrics = "rt:activeUsers";
100
-        $realtime = true;
101
-    }
102
-
103
-    # Create a new Gdata call
104
-    $gaApi = new GDGoogleAnalyticsStats();
105
-
106
-    # Check if Google sucessfully logged in
107
-    if (!$gaApi->checkLogin()){
108
-        echo json_encode(array('error'=>__('Please check Google Analytics Settings','geodirectory')));
109
-        return false;
110
-    }
111
-
112
-    $account = $gaApi->getSingleProfile();
113
-
114
-    if(!isset($account[0]['id'])){
115
-        echo json_encode(array('error'=>__('Please check Google Analytics Settings','geodirectory')));
116
-        return false;
117
-    }
118
-
119
-    $account = $account[0]['id'];
120
-
121
-    # Set the account to the one requested
122
-    $gaApi->setAccount($account);
123
-
124
-
125
-
126
-    # Get the metrics needed to build the visits graph;
127
-    try {
128
-        $stats = $gaApi->getMetrics($metrics, $start_date, $end_date, $dimensions, $sort, $filters, $limit , $realtime);
129
-    }
130
-    catch (Exception $e) {
131
-        print 'GA Summary Widget - there was a service error ' . $e->getCode() . ':' . $e->getMessage();
132
-    }
133
-
134
-
135
-    //print_r($stats);
136
-    echo json_encode($stats);
137
-    exit;
63
+	// NEW ANALYTICS
64
+
65
+	$start_date = '';
66
+	$end_date = '';
67
+	$dimensions = '';
68
+	$sort = '';
69
+	$filters = "ga:pagePath==".$page;
70
+	$metrics = "ga:pageviews";
71
+	$realtime = false;
72
+	$limit = false;
73
+	if(isset($_REQUEST['ga_type']) && $_REQUEST['ga_type']=='thisweek'){
74
+		$start_date = date('Y-m-d', strtotime("-6 day"));
75
+		$end_date = date('Y-m-d');
76
+		$dimensions = "ga:date,ga:nthDay";
77
+	}elseif(isset($_REQUEST['ga_type']) && $_REQUEST['ga_type']=='lastweek'){
78
+		$start_date = date('Y-m-d', strtotime("-13 day"));
79
+		$end_date = date('Y-m-d', strtotime("-7 day"));
80
+		$dimensions = "ga:date,ga:nthDay";
81
+	}
82
+	elseif(isset($_REQUEST['ga_type']) && $_REQUEST['ga_type']=='thisyear'){
83
+		$start_date = date('Y')."-01-01";
84
+		$end_date = date('Y-m-d');
85
+		$dimensions = "ga:month,ga:nthMonth";
86
+	}
87
+	elseif(isset($_REQUEST['ga_type']) && $_REQUEST['ga_type']=='lastyear'){
88
+		$start_date = date('Y', strtotime("-1 year"))."-01-01";
89
+		$end_date = date('Y', strtotime("-1 year"))."-12-31";
90
+		$dimensions = "ga:month,ga:nthMonth";
91
+	}
92
+	elseif(isset($_REQUEST['ga_type']) && $_REQUEST['ga_type']=='country'){
93
+		$start_date = "14daysAgo";
94
+		$end_date = "yesterday";
95
+		$dimensions = "ga:country";
96
+		$sort = "ga:pageviews";
97
+		$limit  = 5;
98
+	}elseif(isset($_REQUEST['ga_type']) && $_REQUEST['ga_type']=='realtime'){
99
+		$metrics = "rt:activeUsers";
100
+		$realtime = true;
101
+	}
102
+
103
+	# Create a new Gdata call
104
+	$gaApi = new GDGoogleAnalyticsStats();
105
+
106
+	# Check if Google sucessfully logged in
107
+	if (!$gaApi->checkLogin()){
108
+		echo json_encode(array('error'=>__('Please check Google Analytics Settings','geodirectory')));
109
+		return false;
110
+	}
111
+
112
+	$account = $gaApi->getSingleProfile();
113
+
114
+	if(!isset($account[0]['id'])){
115
+		echo json_encode(array('error'=>__('Please check Google Analytics Settings','geodirectory')));
116
+		return false;
117
+	}
118
+
119
+	$account = $account[0]['id'];
120
+
121
+	# Set the account to the one requested
122
+	$gaApi->setAccount($account);
123
+
124
+
125
+
126
+	# Get the metrics needed to build the visits graph;
127
+	try {
128
+		$stats = $gaApi->getMetrics($metrics, $start_date, $end_date, $dimensions, $sort, $filters, $limit , $realtime);
129
+	}
130
+	catch (Exception $e) {
131
+		print 'GA Summary Widget - there was a service error ' . $e->getCode() . ':' . $e->getMessage();
132
+	}
133
+
134
+
135
+	//print_r($stats);
136
+	echo json_encode($stats);
137
+	exit;
138 138
 
139 139
 
140 140
 }// end GA function
141 141
 
142 142
 
143 143
 function geodir_ga_get_token(){
144
-    $at = get_option('gd_ga_access_token');
145
-    $use_url = "https://www.googleapis.com/oauth2/v1/tokeninfo?access_token=".$at;
146
-    $response =  wp_remote_get($use_url,array('timeout' => 15));
144
+	$at = get_option('gd_ga_access_token');
145
+	$use_url = "https://www.googleapis.com/oauth2/v1/tokeninfo?access_token=".$at;
146
+	$response =  wp_remote_get($use_url,array('timeout' => 15));
147 147
 
148
-    if(!empty($response['response']['code']) && $response['response']['code']==200) {//access token is valid
148
+	if(!empty($response['response']['code']) && $response['response']['code']==200) {//access token is valid
149 149
 
150
-    return $at;
151
-    }else{//else get new access token
150
+	return $at;
151
+	}else{//else get new access token
152 152
 
153
-        $refresh_at = get_option('gd_ga_refresh_token');
154
-        if(!$refresh_at){
155
-            echo json_encode(array('error'=>__('Not authorized, please click authorized in GD > Google analytic settings.', 'geodirectory')));exit;
156
-        }
153
+		$refresh_at = get_option('gd_ga_refresh_token');
154
+		if(!$refresh_at){
155
+			echo json_encode(array('error'=>__('Not authorized, please click authorized in GD > Google analytic settings.', 'geodirectory')));exit;
156
+		}
157 157
 
158
-        $rat_url = "https://www.googleapis.com/oauth2/v3/token?";
159
-        $client_id = "client_id=".get_option('geodir_ga_client_id');
160
-        $client_secret = "&client_secret=".get_option('geodir_ga_client_secret');
161
-        $refresh_token = "&refresh_token=".$refresh_at;
162
-        $grant_type = "&grant_type=refresh_token";
158
+		$rat_url = "https://www.googleapis.com/oauth2/v3/token?";
159
+		$client_id = "client_id=".get_option('geodir_ga_client_id');
160
+		$client_secret = "&client_secret=".get_option('geodir_ga_client_secret');
161
+		$refresh_token = "&refresh_token=".$refresh_at;
162
+		$grant_type = "&grant_type=refresh_token";
163 163
 
164
-        $rat_url_use = $rat_url.$client_id.$client_secret.$refresh_token.$grant_type;
164
+		$rat_url_use = $rat_url.$client_id.$client_secret.$refresh_token.$grant_type;
165 165
 
166
-        $rat_response =  wp_remote_post($rat_url_use,array('timeout' => 15));
167
-        if(!empty($rat_response['response']['code']) && $rat_response['response']['code']==200) {
168
-            $parts = json_decode($rat_response['body']);
166
+		$rat_response =  wp_remote_post($rat_url_use,array('timeout' => 15));
167
+		if(!empty($rat_response['response']['code']) && $rat_response['response']['code']==200) {
168
+			$parts = json_decode($rat_response['body']);
169 169
 
170 170
 
171
-            update_option('gd_ga_access_token', $parts->access_token);
172
-            return $parts->access_token;
171
+			update_option('gd_ga_access_token', $parts->access_token);
172
+			return $parts->access_token;
173 173
 
174
-        }else{
175
-            echo json_encode(array('error'=>__('Login failed', 'geodirectory')));exit;
176
-        }
174
+		}else{
175
+			echo json_encode(array('error'=>__('Login failed', 'geodirectory')));exit;
176
+		}
177 177
 
178 178
 
179
-    }
179
+	}
180 180
 
181 181
 }
182 182
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     $hours = intval(intval($sec) / 3600);
26 26
 
27 27
     // add to $hms, with a leading 0 if asked for
28
-    $hms .= ($padHours) ? str_pad($hours, 2, "0", STR_PAD_LEFT) . ':' : $hours . ':';
28
+    $hms .= ($padHours) ? str_pad($hours, 2, "0", STR_PAD_LEFT).':' : $hours.':';
29 29
 
30 30
     // dividing the total seconds by 60 will give us
31 31
     // the number of minutes, but we're interested in
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     $minutes = intval(($sec / 60) % 60);
35 35
 
36 36
     // then add to $hms (with a leading 0 if needed)
37
-    $hms .= str_pad($minutes, 2, "0", STR_PAD_LEFT) . ':';
37
+    $hms .= str_pad($minutes, 2, "0", STR_PAD_LEFT).':';
38 38
 
39 39
     // seconds are simple - just divide the total
40 40
     // seconds by 60 and keep the remainder
@@ -70,32 +70,32 @@  discard block
 block discarded – undo
70 70
     $metrics = "ga:pageviews";
71 71
     $realtime = false;
72 72
     $limit = false;
73
-    if(isset($_REQUEST['ga_type']) && $_REQUEST['ga_type']=='thisweek'){
73
+    if (isset($_REQUEST['ga_type']) && $_REQUEST['ga_type'] == 'thisweek') {
74 74
         $start_date = date('Y-m-d', strtotime("-6 day"));
75 75
         $end_date = date('Y-m-d');
76 76
         $dimensions = "ga:date,ga:nthDay";
77
-    }elseif(isset($_REQUEST['ga_type']) && $_REQUEST['ga_type']=='lastweek'){
77
+    }elseif (isset($_REQUEST['ga_type']) && $_REQUEST['ga_type'] == 'lastweek') {
78 78
         $start_date = date('Y-m-d', strtotime("-13 day"));
79 79
         $end_date = date('Y-m-d', strtotime("-7 day"));
80 80
         $dimensions = "ga:date,ga:nthDay";
81 81
     }
82
-    elseif(isset($_REQUEST['ga_type']) && $_REQUEST['ga_type']=='thisyear'){
82
+    elseif (isset($_REQUEST['ga_type']) && $_REQUEST['ga_type'] == 'thisyear') {
83 83
         $start_date = date('Y')."-01-01";
84 84
         $end_date = date('Y-m-d');
85 85
         $dimensions = "ga:month,ga:nthMonth";
86 86
     }
87
-    elseif(isset($_REQUEST['ga_type']) && $_REQUEST['ga_type']=='lastyear'){
87
+    elseif (isset($_REQUEST['ga_type']) && $_REQUEST['ga_type'] == 'lastyear') {
88 88
         $start_date = date('Y', strtotime("-1 year"))."-01-01";
89 89
         $end_date = date('Y', strtotime("-1 year"))."-12-31";
90 90
         $dimensions = "ga:month,ga:nthMonth";
91 91
     }
92
-    elseif(isset($_REQUEST['ga_type']) && $_REQUEST['ga_type']=='country'){
92
+    elseif (isset($_REQUEST['ga_type']) && $_REQUEST['ga_type'] == 'country') {
93 93
         $start_date = "14daysAgo";
94 94
         $end_date = "yesterday";
95 95
         $dimensions = "ga:country";
96 96
         $sort = "ga:pageviews";
97
-        $limit  = 5;
98
-    }elseif(isset($_REQUEST['ga_type']) && $_REQUEST['ga_type']=='realtime'){
97
+        $limit = 5;
98
+    }elseif (isset($_REQUEST['ga_type']) && $_REQUEST['ga_type'] == 'realtime') {
99 99
         $metrics = "rt:activeUsers";
100 100
         $realtime = true;
101 101
     }
@@ -104,15 +104,15 @@  discard block
 block discarded – undo
104 104
     $gaApi = new GDGoogleAnalyticsStats();
105 105
 
106 106
     # Check if Google sucessfully logged in
107
-    if (!$gaApi->checkLogin()){
108
-        echo json_encode(array('error'=>__('Please check Google Analytics Settings','geodirectory')));
107
+    if (!$gaApi->checkLogin()) {
108
+        echo json_encode(array('error'=>__('Please check Google Analytics Settings', 'geodirectory')));
109 109
         return false;
110 110
     }
111 111
 
112 112
     $account = $gaApi->getSingleProfile();
113 113
 
114
-    if(!isset($account[0]['id'])){
115
-        echo json_encode(array('error'=>__('Please check Google Analytics Settings','geodirectory')));
114
+    if (!isset($account[0]['id'])) {
115
+        echo json_encode(array('error'=>__('Please check Google Analytics Settings', 'geodirectory')));
116 116
         return false;
117 117
     }
118 118
 
@@ -125,10 +125,10 @@  discard block
 block discarded – undo
125 125
 
126 126
     # Get the metrics needed to build the visits graph;
127 127
     try {
128
-        $stats = $gaApi->getMetrics($metrics, $start_date, $end_date, $dimensions, $sort, $filters, $limit , $realtime);
128
+        $stats = $gaApi->getMetrics($metrics, $start_date, $end_date, $dimensions, $sort, $filters, $limit, $realtime);
129 129
     }
130 130
     catch (Exception $e) {
131
-        print 'GA Summary Widget - there was a service error ' . $e->getCode() . ':' . $e->getMessage();
131
+        print 'GA Summary Widget - there was a service error '.$e->getCode().':'.$e->getMessage();
132 132
     }
133 133
 
134 134
 
@@ -140,19 +140,19 @@  discard block
 block discarded – undo
140 140
 }// end GA function
141 141
 
142 142
 
143
-function geodir_ga_get_token(){
143
+function geodir_ga_get_token() {
144 144
     $at = get_option('gd_ga_access_token');
145 145
     $use_url = "https://www.googleapis.com/oauth2/v1/tokeninfo?access_token=".$at;
146
-    $response =  wp_remote_get($use_url,array('timeout' => 15));
146
+    $response = wp_remote_get($use_url, array('timeout' => 15));
147 147
 
148
-    if(!empty($response['response']['code']) && $response['response']['code']==200) {//access token is valid
148
+    if (!empty($response['response']['code']) && $response['response']['code'] == 200) {//access token is valid
149 149
 
150 150
     return $at;
151
-    }else{//else get new access token
151
+    } else {//else get new access token
152 152
 
153 153
         $refresh_at = get_option('gd_ga_refresh_token');
154
-        if(!$refresh_at){
155
-            echo json_encode(array('error'=>__('Not authorized, please click authorized in GD > Google analytic settings.', 'geodirectory')));exit;
154
+        if (!$refresh_at) {
155
+            echo json_encode(array('error'=>__('Not authorized, please click authorized in GD > Google analytic settings.', 'geodirectory'))); exit;
156 156
         }
157 157
 
158 158
         $rat_url = "https://www.googleapis.com/oauth2/v3/token?";
@@ -163,16 +163,16 @@  discard block
 block discarded – undo
163 163
 
164 164
         $rat_url_use = $rat_url.$client_id.$client_secret.$refresh_token.$grant_type;
165 165
 
166
-        $rat_response =  wp_remote_post($rat_url_use,array('timeout' => 15));
167
-        if(!empty($rat_response['response']['code']) && $rat_response['response']['code']==200) {
166
+        $rat_response = wp_remote_post($rat_url_use, array('timeout' => 15));
167
+        if (!empty($rat_response['response']['code']) && $rat_response['response']['code'] == 200) {
168 168
             $parts = json_decode($rat_response['body']);
169 169
 
170 170
 
171 171
             update_option('gd_ga_access_token', $parts->access_token);
172 172
             return $parts->access_token;
173 173
 
174
-        }else{
175
-            echo json_encode(array('error'=>__('Login failed', 'geodirectory')));exit;
174
+        } else {
175
+            echo json_encode(array('error'=>__('Login failed', 'geodirectory'))); exit;
176 176
         }
177 177
 
178 178
 
Please login to merge, or discard this patch.
Braces   +8 added lines, -12 removed lines patch added patch discarded remove patch
@@ -74,28 +74,25 @@  discard block
 block discarded – undo
74 74
         $start_date = date('Y-m-d', strtotime("-6 day"));
75 75
         $end_date = date('Y-m-d');
76 76
         $dimensions = "ga:date,ga:nthDay";
77
-    }elseif(isset($_REQUEST['ga_type']) && $_REQUEST['ga_type']=='lastweek'){
77
+    } elseif(isset($_REQUEST['ga_type']) && $_REQUEST['ga_type']=='lastweek'){
78 78
         $start_date = date('Y-m-d', strtotime("-13 day"));
79 79
         $end_date = date('Y-m-d', strtotime("-7 day"));
80 80
         $dimensions = "ga:date,ga:nthDay";
81
-    }
82
-    elseif(isset($_REQUEST['ga_type']) && $_REQUEST['ga_type']=='thisyear'){
81
+    } elseif(isset($_REQUEST['ga_type']) && $_REQUEST['ga_type']=='thisyear'){
83 82
         $start_date = date('Y')."-01-01";
84 83
         $end_date = date('Y-m-d');
85 84
         $dimensions = "ga:month,ga:nthMonth";
86
-    }
87
-    elseif(isset($_REQUEST['ga_type']) && $_REQUEST['ga_type']=='lastyear'){
85
+    } elseif(isset($_REQUEST['ga_type']) && $_REQUEST['ga_type']=='lastyear'){
88 86
         $start_date = date('Y', strtotime("-1 year"))."-01-01";
89 87
         $end_date = date('Y', strtotime("-1 year"))."-12-31";
90 88
         $dimensions = "ga:month,ga:nthMonth";
91
-    }
92
-    elseif(isset($_REQUEST['ga_type']) && $_REQUEST['ga_type']=='country'){
89
+    } elseif(isset($_REQUEST['ga_type']) && $_REQUEST['ga_type']=='country'){
93 90
         $start_date = "14daysAgo";
94 91
         $end_date = "yesterday";
95 92
         $dimensions = "ga:country";
96 93
         $sort = "ga:pageviews";
97 94
         $limit  = 5;
98
-    }elseif(isset($_REQUEST['ga_type']) && $_REQUEST['ga_type']=='realtime'){
95
+    } elseif(isset($_REQUEST['ga_type']) && $_REQUEST['ga_type']=='realtime'){
99 96
         $metrics = "rt:activeUsers";
100 97
         $realtime = true;
101 98
     }
@@ -126,8 +123,7 @@  discard block
 block discarded – undo
126 123
     # Get the metrics needed to build the visits graph;
127 124
     try {
128 125
         $stats = $gaApi->getMetrics($metrics, $start_date, $end_date, $dimensions, $sort, $filters, $limit , $realtime);
129
-    }
130
-    catch (Exception $e) {
126
+    } catch (Exception $e) {
131 127
         print 'GA Summary Widget - there was a service error ' . $e->getCode() . ':' . $e->getMessage();
132 128
     }
133 129
 
@@ -148,7 +144,7 @@  discard block
 block discarded – undo
148 144
     if(!empty($response['response']['code']) && $response['response']['code']==200) {//access token is valid
149 145
 
150 146
     return $at;
151
-    }else{//else get new access token
147
+    } else{//else get new access token
152 148
 
153 149
         $refresh_at = get_option('gd_ga_refresh_token');
154 150
         if(!$refresh_at){
@@ -171,7 +167,7 @@  discard block
 block discarded – undo
171 167
             update_option('gd_ga_access_token', $parts->access_token);
172 168
             return $parts->access_token;
173 169
 
174
-        }else{
170
+        } else{
175 171
             echo json_encode(array('error'=>__('Login failed', 'geodirectory')));exit;
176 172
         }
177 173
 
Please login to merge, or discard this patch.
geodirectory.php 3 patches
Indentation   +90 added lines, -90 removed lines patch added patch discarded remove patch
@@ -31,30 +31,30 @@  discard block
 block discarded – undo
31 31
  * CHECK FOR OLD COMPATIBILITY PACKS AND DISABLE IF THEY ARE ACTIVE
32 32
  */
33 33
 if (is_admin()) {
34
-    /**
35
-     * Include WordPress core file so we can use core functions to check for active plugins.
36
-     */
37
-    include_once(ABSPATH . 'wp-admin/includes/plugin.php');
34
+	/**
35
+	 * Include WordPress core file so we can use core functions to check for active plugins.
36
+	 */
37
+	include_once(ABSPATH . 'wp-admin/includes/plugin.php');
38 38
 
39
-    if (is_plugin_active('geodirectory-genesis-compatibility-pack/geodir_genesis_compatibility.php')) {
40
-        deactivate_plugins('geodirectory-genesis-compatibility-pack/geodir_genesis_compatibility.php');
41
-    }
39
+	if (is_plugin_active('geodirectory-genesis-compatibility-pack/geodir_genesis_compatibility.php')) {
40
+		deactivate_plugins('geodirectory-genesis-compatibility-pack/geodir_genesis_compatibility.php');
41
+	}
42 42
 
43
-    if (is_plugin_active('geodirectory-x-theme-compatibility-pack/geodir_x_compatibility.php')) {
44
-        deactivate_plugins('geodirectory-x-theme-compatibility-pack/geodir_x_compatibility.php');
45
-    }
43
+	if (is_plugin_active('geodirectory-x-theme-compatibility-pack/geodir_x_compatibility.php')) {
44
+		deactivate_plugins('geodirectory-x-theme-compatibility-pack/geodir_x_compatibility.php');
45
+	}
46 46
 
47
-    if (is_plugin_active('geodirectory-enfold-theme-compatibility-pack/geodir_enfold_compatibility.php')) {
48
-        deactivate_plugins('geodirectory-enfold-theme-compatibility-pack/geodir_enfold_compatibility.php');
49
-    }
47
+	if (is_plugin_active('geodirectory-enfold-theme-compatibility-pack/geodir_enfold_compatibility.php')) {
48
+		deactivate_plugins('geodirectory-enfold-theme-compatibility-pack/geodir_enfold_compatibility.php');
49
+	}
50 50
 
51
-    if (is_plugin_active('geodir_avada_compatibility/geodir_avada_compatibility.php')) {
52
-        deactivate_plugins('geodir_avada_compatibility/geodir_avada_compatibility.php');
53
-    }
51
+	if (is_plugin_active('geodir_avada_compatibility/geodir_avada_compatibility.php')) {
52
+		deactivate_plugins('geodir_avada_compatibility/geodir_avada_compatibility.php');
53
+	}
54 54
 
55
-    if (is_plugin_active('geodir_compat_pack_divi/geodir_divi_compatibility.php')) {
56
-        deactivate_plugins('geodir_compat_pack_divi/geodir_divi_compatibility.php');
57
-    }
55
+	if (is_plugin_active('geodir_compat_pack_divi/geodir_divi_compatibility.php')) {
56
+		deactivate_plugins('geodir_compat_pack_divi/geodir_divi_compatibility.php');
57
+	}
58 58
 
59 59
 }
60 60
 
@@ -130,19 +130,19 @@  discard block
 block discarded – undo
130 130
  * @package GeoDirectory
131 131
  */
132 132
 function geodir_error_log($log){
133
-    /*
133
+	/*
134 134
      * A filter to override the WP_DEBUG setting for function geodir_error_log().
135 135
      *
136 136
      * @since 1.5.7
137 137
      */
138
-    $should_log = apply_filters( 'geodir_log_errors', WP_DEBUG);
139
-    if ( true === $should_log ) {
140
-        if ( is_array( $log ) || is_object( $log ) ) {
141
-            error_log( print_r( $log, true ) );
142
-        } else {
143
-            error_log( $log );
144
-        }
145
-    }
138
+	$should_log = apply_filters( 'geodir_log_errors', WP_DEBUG);
139
+	if ( true === $should_log ) {
140
+		if ( is_array( $log ) || is_object( $log ) ) {
141
+			error_log( print_r( $log, true ) );
142
+		} else {
143
+			error_log( $log );
144
+		}
145
+	}
146 146
 }
147 147
 /**
148 148
  * Include all plugin functions.
@@ -181,72 +181,72 @@  discard block
 block discarded – undo
181 181
  */
182 182
 if (is_admin() || defined( 'GD_TESTING_MODE' )) {
183 183
 
184
-    /**
185
-     * Include functions used in admin area only.
186
-     *
187
-     * @since 1.0.0
188
-     */
189
-    require_once('geodirectory-admin/admin_functions.php');
190
-    /**
191
-     * Most actions/hooks used in admin area only are called from here.
192
-     *
193
-     * @since 1.6.11
194
-     */
195
-    require_once('geodirectory-admin/admin_dummy_data_functions.php');
196
-    /**
197
-     * Most actions/hooks used in admin area only are called from here.
198
-     *
199
-     * @since 1.0.0
200
-     */
201
-    require_once('geodirectory-admin/admin_hooks_actions.php');
202
-    /**
203
-     * Most admin JS and CSS is called from here.
204
-     *
205
-     * @since 1.0.0
206
-     */
207
-    require_once('geodirectory-admin/admin_template_tags.php');
208
-    /**
209
-     * Include Google Analytics Class.
210
-     *
211
-     * @since 1.6.11
212
-     */
213
-    require_once('geodirectory-admin/class.analytics.stats.php');
214
-    /**
215
-     * Include any functions needed for upgrades.
216
-     *
217
-     * @since 1.0.0
218
-     */
219
-    require_once(geodir_plugin_path() . '/upgrade.php');
220
-    if (get_option('geodir_installed') != 1) {
221
-        /**
222
-         * Define language constants, here as they are not loaded yet.
223
-         *
224
-         * @since 1.0.0
225
-         */
226
-        require_once(geodir_plugin_path() . '/language.php');
227
-        /**
228
-         * Include the plugin install file that sets up the databases and any options on first run.
229
-         *
230
-         * @since 1.0.0
231
-         */
232
-        require_once('geodirectory-admin/admin_install.php');
233
-        register_activation_hook(__FILE__, 'geodir_activation');
234
-    }
235
-    register_deactivation_hook(__FILE__, 'geodir_deactivation');
236
-
237
-    /*
184
+	/**
185
+	 * Include functions used in admin area only.
186
+	 *
187
+	 * @since 1.0.0
188
+	 */
189
+	require_once('geodirectory-admin/admin_functions.php');
190
+	/**
191
+	 * Most actions/hooks used in admin area only are called from here.
192
+	 *
193
+	 * @since 1.6.11
194
+	 */
195
+	require_once('geodirectory-admin/admin_dummy_data_functions.php');
196
+	/**
197
+	 * Most actions/hooks used in admin area only are called from here.
198
+	 *
199
+	 * @since 1.0.0
200
+	 */
201
+	require_once('geodirectory-admin/admin_hooks_actions.php');
202
+	/**
203
+	 * Most admin JS and CSS is called from here.
204
+	 *
205
+	 * @since 1.0.0
206
+	 */
207
+	require_once('geodirectory-admin/admin_template_tags.php');
208
+	/**
209
+	 * Include Google Analytics Class.
210
+	 *
211
+	 * @since 1.6.11
212
+	 */
213
+	require_once('geodirectory-admin/class.analytics.stats.php');
214
+	/**
215
+	 * Include any functions needed for upgrades.
216
+	 *
217
+	 * @since 1.0.0
218
+	 */
219
+	require_once(geodir_plugin_path() . '/upgrade.php');
220
+	if (get_option('geodir_installed') != 1) {
221
+		/**
222
+		 * Define language constants, here as they are not loaded yet.
223
+		 *
224
+		 * @since 1.0.0
225
+		 */
226
+		require_once(geodir_plugin_path() . '/language.php');
227
+		/**
228
+		 * Include the plugin install file that sets up the databases and any options on first run.
229
+		 *
230
+		 * @since 1.0.0
231
+		 */
232
+		require_once('geodirectory-admin/admin_install.php');
233
+		register_activation_hook(__FILE__, 'geodir_activation');
234
+	}
235
+	register_deactivation_hook(__FILE__, 'geodir_deactivation');
236
+
237
+	/*
238 238
      * Show a upgrade warning message if applicable.
239 239
      *
240 240
      * @since 1.5.6
241 241
      */
242
-    global $pagenow;
242
+	global $pagenow;
243 243
    if ( 'plugins.php' === $pagenow )
244
-    {
245
-        // Better update message
246
-        $file   = basename( __FILE__ );
247
-        $folder = basename( dirname( __FILE__ ) );
248
-        $hook = "in_plugin_update_message-{$folder}/{$file}";
249
-        add_action( $hook, 'geodire_admin_upgrade_notice', 20, 2 );
250
-    }
244
+	{
245
+		// Better update message
246
+		$file   = basename( __FILE__ );
247
+		$folder = basename( dirname( __FILE__ ) );
248
+		$hook = "in_plugin_update_message-{$folder}/{$file}";
249
+		add_action( $hook, 'geodire_admin_upgrade_notice', 20, 2 );
250
+	}
251 251
 
252 252
 }
Please login to merge, or discard this patch.
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     /**
35 35
      * Include WordPress core file so we can use core functions to check for active plugins.
36 36
      */
37
-    include_once(ABSPATH . 'wp-admin/includes/plugin.php');
37
+    include_once(ABSPATH.'wp-admin/includes/plugin.php');
38 38
 
39 39
     if (is_plugin_active('geodirectory-genesis-compatibility-pack/geodir_genesis_compatibility.php')) {
40 40
         deactivate_plugins('geodirectory-genesis-compatibility-pack/geodir_genesis_compatibility.php');
@@ -68,8 +68,8 @@  discard block
 block discarded – undo
68 68
  * @global string $plugin_file_name Base file name. 'geodirectory/geodirectory.php'.
69 69
  */
70 70
 global $wpdb, $plugin_prefix, $geodir_addon_list, $plugin_file_name;
71
-$plugin_prefix = $wpdb->prefix . 'geodir_';
72
-$plugin_file_name = basename(plugin_dir_path(__FILE__)) . '/' . basename(__FILE__);
71
+$plugin_prefix = $wpdb->prefix.'geodir_';
72
+$plugin_file_name = basename(plugin_dir_path(__FILE__)).'/'.basename(__FILE__);
73 73
 
74 74
 /*
75 75
  * This will store the cached post custom fields per package for each page load so not to run for each listing.
@@ -84,24 +84,24 @@  discard block
 block discarded – undo
84 84
 /**
85 85
  * Define constants
86 86
  */
87
-if(!defined('GEODIRECTORY_PLUGIN_DIR')) define('GEODIRECTORY_PLUGIN_DIR', plugin_dir_path( __FILE__ ));
87
+if (!defined('GEODIRECTORY_PLUGIN_DIR')) define('GEODIRECTORY_PLUGIN_DIR', plugin_dir_path(__FILE__));
88 88
 
89 89
 /*
90 90
  * Declare database table names. All since version 1.0.0
91 91
  */
92 92
 
93 93
 /** Define the database name for the countries table. */
94
-if (!defined('GEODIR_COUNTRIES_TABLE')) define('GEODIR_COUNTRIES_TABLE', $plugin_prefix . 'countries');
94
+if (!defined('GEODIR_COUNTRIES_TABLE')) define('GEODIR_COUNTRIES_TABLE', $plugin_prefix.'countries');
95 95
 /** Define the database name for the custom fields table. */
96
-if (!defined('GEODIR_CUSTOM_FIELDS_TABLE')) define('GEODIR_CUSTOM_FIELDS_TABLE', $plugin_prefix . 'custom_fields');
96
+if (!defined('GEODIR_CUSTOM_FIELDS_TABLE')) define('GEODIR_CUSTOM_FIELDS_TABLE', $plugin_prefix.'custom_fields');
97 97
 /** Define the database name for the icons table. */
98
-if (!defined('GEODIR_ICON_TABLE')) define('GEODIR_ICON_TABLE', $plugin_prefix . 'post_icon');
98
+if (!defined('GEODIR_ICON_TABLE')) define('GEODIR_ICON_TABLE', $plugin_prefix.'post_icon');
99 99
 /** Define the database name for the attachments table. */
100
-if (!defined('GEODIR_ATTACHMENT_TABLE')) define('GEODIR_ATTACHMENT_TABLE', $plugin_prefix . 'attachments');
100
+if (!defined('GEODIR_ATTACHMENT_TABLE')) define('GEODIR_ATTACHMENT_TABLE', $plugin_prefix.'attachments');
101 101
 /** Define the database name for the review table. */
102
-if (!defined('GEODIR_REVIEW_TABLE')) define('GEODIR_REVIEW_TABLE', $plugin_prefix . 'post_review');
102
+if (!defined('GEODIR_REVIEW_TABLE')) define('GEODIR_REVIEW_TABLE', $plugin_prefix.'post_review');
103 103
 /** Define the database name for the custom sort fields table. */
104
-if (!defined('GEODIR_CUSTOM_SORT_FIELDS_TABLE')) define('GEODIR_CUSTOM_SORT_FIELDS_TABLE', $plugin_prefix . 'custom_sort_fields');
104
+if (!defined('GEODIR_CUSTOM_SORT_FIELDS_TABLE')) define('GEODIR_CUSTOM_SORT_FIELDS_TABLE', $plugin_prefix.'custom_sort_fields');
105 105
 
106 106
 /*
107 107
  * Define our Google Analytic app settings
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 if (!defined('GEODIR_GA_CLIENTID')) define('GEODIR_GA_CLIENTID', '687912069872-sdpsjssrdt7t3ao1dnv1ib71hkckbt5s.apps.googleusercontent.com');
110 110
 if (!defined('GEODIR_GA_CLIENTSECRET')) define('GEODIR_GA_CLIENTSECRET', 'yBVkDpqJ1B9nAETHy738Zn8C'); //don't worry - this don't need to be secret in our case
111 111
 if (!defined('GEODIR_GA_REDIRECT')) define('GEODIR_GA_REDIRECT', 'urn:ietf:wg:oauth:2.0:oob');
112
-if (!defined('GEODIR_GA_SCOPE')) define('GEODIR_GA_SCOPE', 'https://www.googleapis.com/auth/analytics');//.readonly
112
+if (!defined('GEODIR_GA_SCOPE')) define('GEODIR_GA_SCOPE', 'https://www.googleapis.com/auth/analytics'); //.readonly
113 113
 
114 114
 
115 115
 /*
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
 if (!defined('GEODIRECTORY_TEXTDOMAIN')) define('GEODIRECTORY_TEXTDOMAIN', 'geodirectory');
119 119
 
120 120
 // Load geodirectory plugin textdomain.
121
-add_action( 'init', 'geodir_load_textdomain' );
121
+add_action('init', 'geodir_load_textdomain');
122 122
 
123 123
 /*
124 124
  * A function to log GD errors no matter the type given.
@@ -129,18 +129,18 @@  discard block
 block discarded – undo
129 129
  * @param mixed $log The thing that should be logged.
130 130
  * @package GeoDirectory
131 131
  */
132
-function geodir_error_log($log){
132
+function geodir_error_log($log) {
133 133
     /*
134 134
      * A filter to override the WP_DEBUG setting for function geodir_error_log().
135 135
      *
136 136
      * @since 1.5.7
137 137
      */
138
-    $should_log = apply_filters( 'geodir_log_errors', WP_DEBUG);
139
-    if ( true === $should_log ) {
140
-        if ( is_array( $log ) || is_object( $log ) ) {
141
-            error_log( print_r( $log, true ) );
138
+    $should_log = apply_filters('geodir_log_errors', WP_DEBUG);
139
+    if (true === $should_log) {
140
+        if (is_array($log) || is_object($log)) {
141
+            error_log(print_r($log, true));
142 142
         } else {
143
-            error_log( $log );
143
+            error_log($log);
144 144
         }
145 145
     }
146 146
 }
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
 /*
180 180
  * Admin init + activation hooks
181 181
  */
182
-if (is_admin() || defined( 'GD_TESTING_MODE' )) {
182
+if (is_admin() || defined('GD_TESTING_MODE')) {
183 183
 
184 184
     /**
185 185
      * Include functions used in admin area only.
@@ -216,14 +216,14 @@  discard block
 block discarded – undo
216 216
      *
217 217
      * @since 1.0.0
218 218
      */
219
-    require_once(geodir_plugin_path() . '/upgrade.php');
219
+    require_once(geodir_plugin_path().'/upgrade.php');
220 220
     if (get_option('geodir_installed') != 1) {
221 221
         /**
222 222
          * Define language constants, here as they are not loaded yet.
223 223
          *
224 224
          * @since 1.0.0
225 225
          */
226
-        require_once(geodir_plugin_path() . '/language.php');
226
+        require_once(geodir_plugin_path().'/language.php');
227 227
         /**
228 228
          * Include the plugin install file that sets up the databases and any options on first run.
229 229
          *
@@ -240,13 +240,13 @@  discard block
 block discarded – undo
240 240
      * @since 1.5.6
241 241
      */
242 242
     global $pagenow;
243
-   if ( 'plugins.php' === $pagenow )
243
+   if ('plugins.php' === $pagenow)
244 244
     {
245 245
         // Better update message
246
-        $file   = basename( __FILE__ );
247
-        $folder = basename( dirname( __FILE__ ) );
246
+        $file   = basename(__FILE__);
247
+        $folder = basename(dirname(__FILE__));
248 248
         $hook = "in_plugin_update_message-{$folder}/{$file}";
249
-        add_action( $hook, 'geodire_admin_upgrade_notice', 20, 2 );
249
+        add_action($hook, 'geodire_admin_upgrade_notice', 20, 2);
250 250
     }
251 251
 
252 252
 }
Please login to merge, or discard this patch.
Braces   +41 added lines, -13 removed lines patch added patch discarded remove patch
@@ -79,43 +79,71 @@
 block discarded – undo
79 79
 /**
80 80
  * Do not store any revisions (except the one autosave per post).
81 81
  */
82
-if (!defined('WP_POST_REVISIONS')) define('WP_POST_REVISIONS', 0);
82
+if (!defined('WP_POST_REVISIONS')) {
83
+	define('WP_POST_REVISIONS', 0);
84
+}
83 85
 
84 86
 /**
85 87
  * Define constants
86 88
  */
87
-if(!defined('GEODIRECTORY_PLUGIN_DIR')) define('GEODIRECTORY_PLUGIN_DIR', plugin_dir_path( __FILE__ ));
89
+if(!defined('GEODIRECTORY_PLUGIN_DIR')) {
90
+	define('GEODIRECTORY_PLUGIN_DIR', plugin_dir_path( __FILE__ ));
91
+}
88 92
 
89 93
 /*
90 94
  * Declare database table names. All since version 1.0.0
91 95
  */
92 96
 
93 97
 /** Define the database name for the countries table. */
94
-if (!defined('GEODIR_COUNTRIES_TABLE')) define('GEODIR_COUNTRIES_TABLE', $plugin_prefix . 'countries');
98
+if (!defined('GEODIR_COUNTRIES_TABLE')) {
99
+	define('GEODIR_COUNTRIES_TABLE', $plugin_prefix . 'countries');
100
+}
95 101
 /** Define the database name for the custom fields table. */
96
-if (!defined('GEODIR_CUSTOM_FIELDS_TABLE')) define('GEODIR_CUSTOM_FIELDS_TABLE', $plugin_prefix . 'custom_fields');
102
+if (!defined('GEODIR_CUSTOM_FIELDS_TABLE')) {
103
+	define('GEODIR_CUSTOM_FIELDS_TABLE', $plugin_prefix . 'custom_fields');
104
+}
97 105
 /** Define the database name for the icons table. */
98
-if (!defined('GEODIR_ICON_TABLE')) define('GEODIR_ICON_TABLE', $plugin_prefix . 'post_icon');
106
+if (!defined('GEODIR_ICON_TABLE')) {
107
+	define('GEODIR_ICON_TABLE', $plugin_prefix . 'post_icon');
108
+}
99 109
 /** Define the database name for the attachments table. */
100
-if (!defined('GEODIR_ATTACHMENT_TABLE')) define('GEODIR_ATTACHMENT_TABLE', $plugin_prefix . 'attachments');
110
+if (!defined('GEODIR_ATTACHMENT_TABLE')) {
111
+	define('GEODIR_ATTACHMENT_TABLE', $plugin_prefix . 'attachments');
112
+}
101 113
 /** Define the database name for the review table. */
102
-if (!defined('GEODIR_REVIEW_TABLE')) define('GEODIR_REVIEW_TABLE', $plugin_prefix . 'post_review');
114
+if (!defined('GEODIR_REVIEW_TABLE')) {
115
+	define('GEODIR_REVIEW_TABLE', $plugin_prefix . 'post_review');
116
+}
103 117
 /** Define the database name for the custom sort fields table. */
104
-if (!defined('GEODIR_CUSTOM_SORT_FIELDS_TABLE')) define('GEODIR_CUSTOM_SORT_FIELDS_TABLE', $plugin_prefix . 'custom_sort_fields');
118
+if (!defined('GEODIR_CUSTOM_SORT_FIELDS_TABLE')) {
119
+	define('GEODIR_CUSTOM_SORT_FIELDS_TABLE', $plugin_prefix . 'custom_sort_fields');
120
+}
105 121
 
106 122
 /*
107 123
  * Define our Google Analytic app settings
108 124
  */
109
-if (!defined('GEODIR_GA_CLIENTID')) define('GEODIR_GA_CLIENTID', '687912069872-sdpsjssrdt7t3ao1dnv1ib71hkckbt5s.apps.googleusercontent.com');
110
-if (!defined('GEODIR_GA_CLIENTSECRET')) define('GEODIR_GA_CLIENTSECRET', 'yBVkDpqJ1B9nAETHy738Zn8C'); //don't worry - this don't need to be secret in our case
111
-if (!defined('GEODIR_GA_REDIRECT')) define('GEODIR_GA_REDIRECT', 'urn:ietf:wg:oauth:2.0:oob');
112
-if (!defined('GEODIR_GA_SCOPE')) define('GEODIR_GA_SCOPE', 'https://www.googleapis.com/auth/analytics');//.readonly
125
+if (!defined('GEODIR_GA_CLIENTID')) {
126
+	define('GEODIR_GA_CLIENTID', '687912069872-sdpsjssrdt7t3ao1dnv1ib71hkckbt5s.apps.googleusercontent.com');
127
+}
128
+if (!defined('GEODIR_GA_CLIENTSECRET')) {
129
+	define('GEODIR_GA_CLIENTSECRET', 'yBVkDpqJ1B9nAETHy738Zn8C');
130
+}
131
+//don't worry - this don't need to be secret in our case
132
+if (!defined('GEODIR_GA_REDIRECT')) {
133
+	define('GEODIR_GA_REDIRECT', 'urn:ietf:wg:oauth:2.0:oob');
134
+}
135
+if (!defined('GEODIR_GA_SCOPE')) {
136
+	define('GEODIR_GA_SCOPE', 'https://www.googleapis.com/auth/analytics');
137
+}
138
+//.readonly
113 139
 
114 140
 
115 141
 /*
116 142
  * Localisation items.
117 143
  */
118
-if (!defined('GEODIRECTORY_TEXTDOMAIN')) define('GEODIRECTORY_TEXTDOMAIN', 'geodirectory');
144
+if (!defined('GEODIRECTORY_TEXTDOMAIN')) {
145
+	define('GEODIRECTORY_TEXTDOMAIN', 'geodirectory');
146
+}
119 147
 
120 148
 // Load geodirectory plugin textdomain.
121 149
 add_action( 'init', 'geodir_load_textdomain' );
Please login to merge, or discard this patch.
geodirectory_template_tags.php 3 patches
Indentation   +333 added lines, -333 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
  */
23 23
 function geodir_core_dequeue_script()
24 24
 {
25
-    wp_dequeue_script('flexslider');
25
+	wp_dequeue_script('flexslider');
26 26
 }
27 27
 
28 28
 add_action('wp_print_scripts', 'geodir_core_dequeue_script', 100);
@@ -35,168 +35,168 @@  discard block
 block discarded – undo
35 35
  */
36 36
 function geodir_templates_scripts()
37 37
 {
38
-    $is_detail_page = false;
39
-    $geodir_map_name = geodir_map_name();
38
+	$is_detail_page = false;
39
+	$geodir_map_name = geodir_map_name();
40 40
 
41
-    if((is_single() && geodir_is_geodir_page()) || (is_page() && geodir_is_page('preview') )) {
42
-        $is_detail_page = true;
43
-    }
44
-
45
-    wp_enqueue_script('jquery');
46
-
47
-    wp_register_script('geodirectory-script', geodir_plugin_url() . '/geodirectory-assets/js/geodirectory.min.js', array(), GEODIRECTORY_VERSION);
48
-    wp_enqueue_script('geodirectory-script');
41
+	if((is_single() && geodir_is_geodir_page()) || (is_page() && geodir_is_page('preview') )) {
42
+		$is_detail_page = true;
43
+	}
49 44
 
50
-    $geodir_vars_data = array(
51
-        'siteurl' => get_option('siteurl'),
52
-        'geodir_plugin_url' => geodir_plugin_url(),
53
-        'geodir_lazy_load' => get_option('geodir_lazy_load',1),
54
-        'geodir_ajax_url' => geodir_get_ajax_url(),
55
-        'geodir_gd_modal' => (int)get_option('geodir_disable_gb_modal'),
56
-        'is_rtl' => is_rtl() ? 1 : 0 // fix rtl issue
57
-    );
45
+	wp_enqueue_script('jquery');
46
+
47
+	wp_register_script('geodirectory-script', geodir_plugin_url() . '/geodirectory-assets/js/geodirectory.min.js', array(), GEODIRECTORY_VERSION);
48
+	wp_enqueue_script('geodirectory-script');
49
+
50
+	$geodir_vars_data = array(
51
+		'siteurl' => get_option('siteurl'),
52
+		'geodir_plugin_url' => geodir_plugin_url(),
53
+		'geodir_lazy_load' => get_option('geodir_lazy_load',1),
54
+		'geodir_ajax_url' => geodir_get_ajax_url(),
55
+		'geodir_gd_modal' => (int)get_option('geodir_disable_gb_modal'),
56
+		'is_rtl' => is_rtl() ? 1 : 0 // fix rtl issue
57
+	);
58
+
59
+	/**
60
+	 * Filter the `geodir_var` data array that outputs the  wp_localize_script() translations and variables.
61
+	 *
62
+	 * This is used by addons to add JS translatable variables.
63
+	 *
64
+	 * @since 1.4.4
65
+	 * @param array $geodir_vars_data {
66
+	 *    geodir var data used by addons to add JS translatable variables.
67
+	 *
68
+	 *    @type string $siteurl Site url.
69
+	 *    @type string $geodir_plugin_url Geodirectory core plugin url.
70
+	 *    @type string $geodir_ajax_url Geodirectory plugin ajax url.
71
+	 *    @type int $geodir_gd_modal Disable GD modal that displays slideshow images in popup?.
72
+	 *    @type int $is_rtl Checks if current locale is RTL.
73
+	 *
74
+	 * }
75
+	 */
76
+	$geodir_vars_data = apply_filters('geodir_vars_data',$geodir_vars_data);
77
+
78
+	wp_localize_script('geodirectory-script', 'geodir_var', $geodir_vars_data);
79
+
80
+	wp_register_script('geodirectory-jquery-flexslider-js', geodir_plugin_url() . '/geodirectory-assets/js/jquery.flexslider.min.js', array(), GEODIRECTORY_VERSION,true);
81
+	if($is_detail_page){wp_enqueue_script('geodirectory-jquery-flexslider-js');}
82
+
83
+	wp_register_script('geodirectory-lightbox-jquery', geodir_plugin_url() . '/geodirectory-assets/js/jquery.lightbox-0.5.min.js', array(), GEODIRECTORY_VERSION,true);
84
+	wp_enqueue_script('geodirectory-lightbox-jquery');
85
+
86
+	wp_register_script('geodirectory-jquery-simplemodal', geodir_plugin_url() . '/geodirectory-assets/js/jquery.simplemodal.min.js', array(), GEODIRECTORY_VERSION,true);
87
+	if ($is_detail_page) {
88
+		wp_enqueue_script('geodirectory-jquery-simplemodal');
89
+	}
58 90
 
59
-    /**
60
-     * Filter the `geodir_var` data array that outputs the  wp_localize_script() translations and variables.
61
-     *
62
-     * This is used by addons to add JS translatable variables.
63
-     *
64
-     * @since 1.4.4
65
-     * @param array $geodir_vars_data {
66
-     *    geodir var data used by addons to add JS translatable variables.
67
-     *
68
-     *    @type string $siteurl Site url.
69
-     *    @type string $geodir_plugin_url Geodirectory core plugin url.
70
-     *    @type string $geodir_ajax_url Geodirectory plugin ajax url.
71
-     *    @type int $geodir_gd_modal Disable GD modal that displays slideshow images in popup?.
72
-     *    @type int $is_rtl Checks if current locale is RTL.
73
-     *
74
-     * }
75
-     */
76
-    $geodir_vars_data = apply_filters('geodir_vars_data',$geodir_vars_data);
77
-
78
-    wp_localize_script('geodirectory-script', 'geodir_var', $geodir_vars_data);
79
-
80
-    wp_register_script('geodirectory-jquery-flexslider-js', geodir_plugin_url() . '/geodirectory-assets/js/jquery.flexslider.min.js', array(), GEODIRECTORY_VERSION,true);
81
-    if($is_detail_page){wp_enqueue_script('geodirectory-jquery-flexslider-js');}
82
-
83
-    wp_register_script('geodirectory-lightbox-jquery', geodir_plugin_url() . '/geodirectory-assets/js/jquery.lightbox-0.5.min.js', array(), GEODIRECTORY_VERSION,true);
84
-    wp_enqueue_script('geodirectory-lightbox-jquery');
85
-
86
-    wp_register_script('geodirectory-jquery-simplemodal', geodir_plugin_url() . '/geodirectory-assets/js/jquery.simplemodal.min.js', array(), GEODIRECTORY_VERSION,true);
87
-    if ($is_detail_page) {
88
-        wp_enqueue_script('geodirectory-jquery-simplemodal');
89
-    }
90
-
91
-    if (in_array($geodir_map_name, array('auto', 'google'))) {
92
-        $map_lang = "&language=" . geodir_get_map_default_language();
93
-        $map_key = "&key=" . geodir_get_map_api_key();
94
-        /**
95
-         * Filter the variables that are added to the end of the google maps script call.
96
-         *
97
-         * This i used to change things like google maps language etc.
98
-         *
99
-         * @since 1.0.0
100
-         * @param string $var The string to filter, default is empty string.
101
-         */
102
-        $map_extra = apply_filters('geodir_googlemap_script_extra', '');
103
-        wp_enqueue_script('geodirectory-googlemap-script', 'https://maps.google.com/maps/api/js?' . $map_lang . $map_key . $map_extra , '', NULL);
104
-    }
91
+	if (in_array($geodir_map_name, array('auto', 'google'))) {
92
+		$map_lang = "&language=" . geodir_get_map_default_language();
93
+		$map_key = "&key=" . geodir_get_map_api_key();
94
+		/**
95
+		 * Filter the variables that are added to the end of the google maps script call.
96
+		 *
97
+		 * This i used to change things like google maps language etc.
98
+		 *
99
+		 * @since 1.0.0
100
+		 * @param string $var The string to filter, default is empty string.
101
+		 */
102
+		$map_extra = apply_filters('geodir_googlemap_script_extra', '');
103
+		wp_enqueue_script('geodirectory-googlemap-script', 'https://maps.google.com/maps/api/js?' . $map_lang . $map_key . $map_extra , '', NULL);
104
+	}
105 105
     
106
-    if ($geodir_map_name == 'osm') {
107
-        // Leaflet OpenStreetMap
108
-        wp_register_style('geodirectory-leaflet-style', geodir_plugin_url() . '/geodirectory-assets/leaflet/leaflet.css', array(), GEODIRECTORY_VERSION);
109
-        wp_enqueue_style('geodirectory-leaflet-style');
106
+	if ($geodir_map_name == 'osm') {
107
+		// Leaflet OpenStreetMap
108
+		wp_register_style('geodirectory-leaflet-style', geodir_plugin_url() . '/geodirectory-assets/leaflet/leaflet.css', array(), GEODIRECTORY_VERSION);
109
+		wp_enqueue_style('geodirectory-leaflet-style');
110 110
             
111
-        wp_register_script('geodirectory-leaflet-script', geodir_plugin_url() . '/geodirectory-assets/leaflet/leaflet.min.js', array(), GEODIRECTORY_VERSION);
112
-        wp_enqueue_script('geodirectory-leaflet-script');
111
+		wp_register_script('geodirectory-leaflet-script', geodir_plugin_url() . '/geodirectory-assets/leaflet/leaflet.min.js', array(), GEODIRECTORY_VERSION);
112
+		wp_enqueue_script('geodirectory-leaflet-script');
113 113
         
114
-        wp_register_script('geodirectory-leaflet-geo-script', geodir_plugin_url() . '/geodirectory-assets/leaflet/osm.geocode.js', array(), GEODIRECTORY_VERSION);
115
-        wp_enqueue_script('geodirectory-leaflet-geo-script');
114
+		wp_register_script('geodirectory-leaflet-geo-script', geodir_plugin_url() . '/geodirectory-assets/leaflet/osm.geocode.js', array(), GEODIRECTORY_VERSION);
115
+		wp_enqueue_script('geodirectory-leaflet-geo-script');
116 116
         
117
-        if ($is_detail_page) {
118
-            wp_register_style('geodirectory-leaflet-routing-style', geodir_plugin_url() . '/geodirectory-assets/leaflet/routing/leaflet-routing-machine.css', array(), GEODIRECTORY_VERSION);
119
-            wp_enqueue_style('geodirectory-leaflet-routing-style');
117
+		if ($is_detail_page) {
118
+			wp_register_style('geodirectory-leaflet-routing-style', geodir_plugin_url() . '/geodirectory-assets/leaflet/routing/leaflet-routing-machine.css', array(), GEODIRECTORY_VERSION);
119
+			wp_enqueue_style('geodirectory-leaflet-routing-style');
120 120
                 
121
-            wp_register_script('geodirectory-leaflet-routing-script', geodir_plugin_url() . '/geodirectory-assets/leaflet/routing/leaflet-routing-machine.js', array(), GEODIRECTORY_VERSION);
122
-            wp_enqueue_script('geodirectory-leaflet-routing-script');
123
-        }
124
-    }
125
-    wp_enqueue_script( 'jquery-ui-autocomplete' );
121
+			wp_register_script('geodirectory-leaflet-routing-script', geodir_plugin_url() . '/geodirectory-assets/leaflet/routing/leaflet-routing-machine.js', array(), GEODIRECTORY_VERSION);
122
+			wp_enqueue_script('geodirectory-leaflet-routing-script');
123
+		}
124
+	}
125
+	wp_enqueue_script( 'jquery-ui-autocomplete' );
126 126
     
127
-    wp_register_script('geodirectory-goMap-script', geodir_plugin_url() . '/geodirectory-assets/js/goMap.min.js', array(), GEODIRECTORY_VERSION,true);
128
-    wp_enqueue_script('geodirectory-goMap-script');
129
-
130
-
131
-    wp_register_script('chosen', geodir_plugin_url() . '/geodirectory-assets/js/chosen.jquery.min.js', array(), GEODIRECTORY_VERSION);
132
-    wp_enqueue_script('chosen');
133
-
134
-    wp_register_script('geodirectory-choose-ajax', geodir_plugin_url() . '/geodirectory-assets/js/ajax-chosen.min.js', array(), GEODIRECTORY_VERSION);
135
-    wp_enqueue_script('geodirectory-choose-ajax');
136
-
137
-    wp_enqueue_script('geodirectory-jquery-ui-timepicker-js', geodir_plugin_url() . '/geodirectory-assets/js/jquery.ui.timepicker.min.js', array('jquery-ui-datepicker', 'jquery-ui-slider', 'jquery-effects-core', 'jquery-effects-slide'), '', true);
138
-
139
-    if (is_page() && geodir_is_page('add-listing')) {
140
-        // SCRIPT FOR UPLOAD
141
-        wp_enqueue_script('plupload-all');
142
-        wp_enqueue_script('jquery-ui-sortable');
143
-
144
-        wp_register_script('geodirectory-plupload-script', geodir_plugin_url() . '/geodirectory-assets/js/geodirectory-plupload.min.js#asyncload', array(), GEODIRECTORY_VERSION,true);
145
-        wp_enqueue_script('geodirectory-plupload-script');
146
-        // SCRIPT FOR UPLOAD END
147
-
148
-        // check_ajax_referer function is used to make sure no files are uplaoded remotly but it will fail if used between https and non https so we do the check below of the urls
149
-        if (str_replace("https", "http", admin_url('admin-ajax.php')) && !empty($_SERVER['HTTPS'])) {
150
-            $ajax_url = admin_url('admin-ajax.php');
151
-        } elseif (!str_replace("https", "http", admin_url('admin-ajax.php')) && empty($_SERVER['HTTPS'])) {
152
-            $ajax_url = admin_url('admin-ajax.php');
153
-        } elseif (str_replace("https", "http", admin_url('admin-ajax.php')) && empty($_SERVER['HTTPS'])) {
154
-            $ajax_url = str_replace("https", "http", admin_url('admin-ajax.php'));
155
-        } elseif (!str_replace("https", "http", admin_url('admin-ajax.php')) && !empty($_SERVER['HTTPS'])) {
156
-            $ajax_url = str_replace("http", "https", admin_url('admin-ajax.php'));
157
-        } else {
158
-            $ajax_url = admin_url('admin-ajax.php');
159
-        }
127
+	wp_register_script('geodirectory-goMap-script', geodir_plugin_url() . '/geodirectory-assets/js/goMap.min.js', array(), GEODIRECTORY_VERSION,true);
128
+	wp_enqueue_script('geodirectory-goMap-script');
129
+
130
+
131
+	wp_register_script('chosen', geodir_plugin_url() . '/geodirectory-assets/js/chosen.jquery.min.js', array(), GEODIRECTORY_VERSION);
132
+	wp_enqueue_script('chosen');
133
+
134
+	wp_register_script('geodirectory-choose-ajax', geodir_plugin_url() . '/geodirectory-assets/js/ajax-chosen.min.js', array(), GEODIRECTORY_VERSION);
135
+	wp_enqueue_script('geodirectory-choose-ajax');
136
+
137
+	wp_enqueue_script('geodirectory-jquery-ui-timepicker-js', geodir_plugin_url() . '/geodirectory-assets/js/jquery.ui.timepicker.min.js', array('jquery-ui-datepicker', 'jquery-ui-slider', 'jquery-effects-core', 'jquery-effects-slide'), '', true);
138
+
139
+	if (is_page() && geodir_is_page('add-listing')) {
140
+		// SCRIPT FOR UPLOAD
141
+		wp_enqueue_script('plupload-all');
142
+		wp_enqueue_script('jquery-ui-sortable');
143
+
144
+		wp_register_script('geodirectory-plupload-script', geodir_plugin_url() . '/geodirectory-assets/js/geodirectory-plupload.min.js#asyncload', array(), GEODIRECTORY_VERSION,true);
145
+		wp_enqueue_script('geodirectory-plupload-script');
146
+		// SCRIPT FOR UPLOAD END
147
+
148
+		// check_ajax_referer function is used to make sure no files are uplaoded remotly but it will fail if used between https and non https so we do the check below of the urls
149
+		if (str_replace("https", "http", admin_url('admin-ajax.php')) && !empty($_SERVER['HTTPS'])) {
150
+			$ajax_url = admin_url('admin-ajax.php');
151
+		} elseif (!str_replace("https", "http", admin_url('admin-ajax.php')) && empty($_SERVER['HTTPS'])) {
152
+			$ajax_url = admin_url('admin-ajax.php');
153
+		} elseif (str_replace("https", "http", admin_url('admin-ajax.php')) && empty($_SERVER['HTTPS'])) {
154
+			$ajax_url = str_replace("https", "http", admin_url('admin-ajax.php'));
155
+		} elseif (!str_replace("https", "http", admin_url('admin-ajax.php')) && !empty($_SERVER['HTTPS'])) {
156
+			$ajax_url = str_replace("http", "https", admin_url('admin-ajax.php'));
157
+		} else {
158
+			$ajax_url = admin_url('admin-ajax.php');
159
+		}
160 160
 
161
-        // place js config array for plupload
162
-        $plupload_init = array(
163
-            'runtimes' => 'html5,silverlight,flash,browserplus,gears,html4',
164
-            'browse_button' => 'plupload-browse-button', // will be adjusted per uploader
165
-            'container' => 'plupload-upload-ui', // will be adjusted per uploader
166
-            'drop_element' => 'dropbox', // will be adjusted per uploader
167
-            'file_data_name' => 'async-upload', // will be adjusted per uploader
168
-            'multiple_queues' => true,
169
-            'max_file_size' => geodir_max_upload_size(),
170
-            'url' => $ajax_url,
171
-            'flash_swf_url' => includes_url('js/plupload/plupload.flash.swf'),
172
-            'silverlight_xap_url' => includes_url('js/plupload/plupload.silverlight.xap'),
173
-            'filters' => array(array('title' => __('Allowed Files', 'geodirectory'), 'extensions' => '*')),
174
-            'multipart' => true,
175
-            'urlstream_upload' => true,
176
-            'multi_selection' => false, // will be added per uploader
177
-            // additional post data to send to our ajax hook
178
-            'multipart_params' => array(
179
-                '_ajax_nonce' => "", // will be added per uploader
180
-                'action' => 'plupload_action', // the ajax action name
181
-                'imgid' => 0 // will be added per uploader
182
-            )
183
-        );
184
-        $base_plupload_config = json_encode($plupload_init);
185
-
186
-        $gd_plupload_init = array('base_plupload_config' => $base_plupload_config,
187
-            'upload_img_size' => geodir_max_upload_size());
188
-
189
-        wp_localize_script('geodirectory-plupload-script', 'gd_plupload', $gd_plupload_init);
190
-
191
-        wp_enqueue_script('geodirectory-listing-validation-script', geodir_plugin_url() . '/geodirectory-assets/js/listing_validation.min.js#asyncload');
192
-    } // End if for add place page
193
-
194
-    wp_register_script('geodirectory-post-custom-js', geodir_plugin_url() . '/geodirectory-assets/js/post.custom.min.js#asyncload', array(), GEODIRECTORY_VERSION, true);
195
-    if ($is_detail_page) {
161
+		// place js config array for plupload
162
+		$plupload_init = array(
163
+			'runtimes' => 'html5,silverlight,flash,browserplus,gears,html4',
164
+			'browse_button' => 'plupload-browse-button', // will be adjusted per uploader
165
+			'container' => 'plupload-upload-ui', // will be adjusted per uploader
166
+			'drop_element' => 'dropbox', // will be adjusted per uploader
167
+			'file_data_name' => 'async-upload', // will be adjusted per uploader
168
+			'multiple_queues' => true,
169
+			'max_file_size' => geodir_max_upload_size(),
170
+			'url' => $ajax_url,
171
+			'flash_swf_url' => includes_url('js/plupload/plupload.flash.swf'),
172
+			'silverlight_xap_url' => includes_url('js/plupload/plupload.silverlight.xap'),
173
+			'filters' => array(array('title' => __('Allowed Files', 'geodirectory'), 'extensions' => '*')),
174
+			'multipart' => true,
175
+			'urlstream_upload' => true,
176
+			'multi_selection' => false, // will be added per uploader
177
+			// additional post data to send to our ajax hook
178
+			'multipart_params' => array(
179
+				'_ajax_nonce' => "", // will be added per uploader
180
+				'action' => 'plupload_action', // the ajax action name
181
+				'imgid' => 0 // will be added per uploader
182
+			)
183
+		);
184
+		$base_plupload_config = json_encode($plupload_init);
185
+
186
+		$gd_plupload_init = array('base_plupload_config' => $base_plupload_config,
187
+			'upload_img_size' => geodir_max_upload_size());
188
+
189
+		wp_localize_script('geodirectory-plupload-script', 'gd_plupload', $gd_plupload_init);
190
+
191
+		wp_enqueue_script('geodirectory-listing-validation-script', geodir_plugin_url() . '/geodirectory-assets/js/listing_validation.min.js#asyncload');
192
+	} // End if for add place page
193
+
194
+	wp_register_script('geodirectory-post-custom-js', geodir_plugin_url() . '/geodirectory-assets/js/post.custom.min.js#asyncload', array(), GEODIRECTORY_VERSION, true);
195
+	if ($is_detail_page) {
196 196
 		wp_enqueue_script('geodirectory-post-custom-js');
197 197
 	}
198 198
 
199
-    // font awesome rating script
199
+	// font awesome rating script
200 200
 	if (get_option('geodir_reviewrating_enable_font_awesome')) {
201 201
 		wp_register_script('geodir-barrating-js', geodir_plugin_url() . '/geodirectory-assets/js/jquery.barrating.min.js', array(), GEODIRECTORY_VERSION, true);
202 202
 		wp_enqueue_script('geodir-barrating-js');
@@ -205,11 +205,11 @@  discard block
 block discarded – undo
205 205
 		wp_enqueue_script('geodir-jRating-js');
206 206
 	}
207 207
 
208
-    wp_register_script('geodir-on-document-load', geodir_plugin_url() . '/geodirectory-assets/js/on_document_load.min.js#asyncload', array(), GEODIRECTORY_VERSION, true);
209
-    wp_enqueue_script('geodir-on-document-load');
208
+	wp_register_script('geodir-on-document-load', geodir_plugin_url() . '/geodirectory-assets/js/on_document_load.min.js#asyncload', array(), GEODIRECTORY_VERSION, true);
209
+	wp_enqueue_script('geodir-on-document-load');
210 210
 
211
-    wp_register_script('google-geometa', geodir_plugin_url() . '/geodirectory-assets/js/geometa.min.js#asyncload', array(), GEODIRECTORY_VERSION, true);
212
-    wp_enqueue_script('google-geometa');
211
+	wp_register_script('google-geometa', geodir_plugin_url() . '/geodirectory-assets/js/geometa.min.js#asyncload', array(), GEODIRECTORY_VERSION, true);
212
+	wp_enqueue_script('google-geometa');
213 213
 }
214 214
 
215 215
 /**
@@ -223,8 +223,8 @@  discard block
 block discarded – undo
223 223
  */
224 224
 function geodir_header_scripts()
225 225
 {
226
-    echo '<style>' . stripslashes(get_option('geodir_coustem_css')) . '</style>';
227
-    echo stripslashes(get_option('geodir_header_scripts'));
226
+	echo '<style>' . stripslashes(get_option('geodir_coustem_css')) . '</style>';
227
+	echo stripslashes(get_option('geodir_header_scripts'));
228 228
 }
229 229
 
230 230
 
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
 function geodir_footer_scripts()
241 241
 {	
242 242
 
243
-    if(get_option('geodir_ga_add_tracking_code') && get_option('geodir_ga_account_id')){?>
243
+	if(get_option('geodir_ga_add_tracking_code') && get_option('geodir_ga_account_id')){?>
244 244
 
245 245
         <script>
246 246
             (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
@@ -254,20 +254,20 @@  discard block
 block discarded – undo
254 254
         </script>
255 255
 
256 256
 <?php
257
-    }elseif(get_option('geodir_ga_tracking_code') && !get_option('geodir_ga_account_id')){
258
-        echo stripslashes(get_option('geodir_ga_tracking_code'));
259
-    }
257
+	}elseif(get_option('geodir_ga_tracking_code') && !get_option('geodir_ga_account_id')){
258
+		echo stripslashes(get_option('geodir_ga_tracking_code'));
259
+	}
260 260
 
261
-    echo stripslashes(get_option('geodir_footer_scripts'));
261
+	echo stripslashes(get_option('geodir_footer_scripts'));
262 262
 
263
-    /*
263
+	/*
264 264
      * Apple suck and can't/won't fix bugs: https://bugs.webkit.org/show_bug.cgi?id=136041
265 265
      *
266 266
      * Flexbox wont wrap on ios for search form items
267 267
      */
268
-    if (preg_match( '/iPad|iPod|iPhone|Safari/', $_SERVER['HTTP_USER_AGENT'] ) ) {
269
-        echo "<style>body .geodir-listing-search.gd-search-bar-style .geodir-loc-bar .clearfix.geodir-loc-bar-in .geodir-search .gd-search-input-wrapper{flex:50 1 auto !important;min-width: initial !important;width:auto !important;}.geodir-filter-container .geodir-filter-cat{width:auto !important;}</style>";
270
-    }
268
+	if (preg_match( '/iPad|iPod|iPhone|Safari/', $_SERVER['HTTP_USER_AGENT'] ) ) {
269
+		echo "<style>body .geodir-listing-search.gd-search-bar-style .geodir-loc-bar .clearfix.geodir-loc-bar-in .geodir-search .gd-search-input-wrapper{flex:50 1 auto !important;min-width: initial !important;width:auto !important;}.geodir-filter-container .geodir-filter-cat{width:auto !important;}</style>";
270
+	}
271 271
 }
272 272
 
273 273
 
@@ -281,12 +281,12 @@  discard block
 block discarded – undo
281 281
  */
282 282
 function geodir_add_async_forscript($url)
283 283
 {
284
-    if (strpos($url, '#asyncload')===false)
285
-        return $url;
286
-    else if (is_admin())
287
-        return str_replace('#asyncload', '', $url);
288
-    else
289
-        return str_replace('#asyncload', '', $url)."' async='async";
284
+	if (strpos($url, '#asyncload')===false)
285
+		return $url;
286
+	else if (is_admin())
287
+		return str_replace('#asyncload', '', $url);
288
+	else
289
+		return str_replace('#asyncload', '', $url)."' async='async";
290 290
 }
291 291
 add_filter('clean_url', 'geodir_add_async_forscript', 11, 1);
292 292
 
@@ -299,17 +299,17 @@  discard block
 block discarded – undo
299 299
 function geodir_templates_styles()
300 300
 {
301 301
 
302
-    wp_register_style('geodir-core-scss', geodir_plugin_url() . '/geodirectory-assets/css/gd_core_frontend.css', array(), GEODIRECTORY_VERSION);
303
-    wp_enqueue_style('geodir-core-scss');
304
-    wp_register_style('geodir-core-scss-footer', geodir_plugin_url() . '/geodirectory-assets/css/gd_core_frontend_footer.css', array(), GEODIRECTORY_VERSION);
302
+	wp_register_style('geodir-core-scss', geodir_plugin_url() . '/geodirectory-assets/css/gd_core_frontend.css', array(), GEODIRECTORY_VERSION);
303
+	wp_enqueue_style('geodir-core-scss');
304
+	wp_register_style('geodir-core-scss-footer', geodir_plugin_url() . '/geodirectory-assets/css/gd_core_frontend_footer.css', array(), GEODIRECTORY_VERSION);
305 305
 
306
-    if(is_rtl()){
307
-    wp_register_style('geodirectory-frontend-rtl-style', geodir_plugin_url() . '/geodirectory-assets/css/rtl-frontend.css', array(), GEODIRECTORY_VERSION);
308
-    wp_enqueue_style('geodirectory-frontend-rtl-style');
309
-    }
306
+	if(is_rtl()){
307
+	wp_register_style('geodirectory-frontend-rtl-style', geodir_plugin_url() . '/geodirectory-assets/css/rtl-frontend.css', array(), GEODIRECTORY_VERSION);
308
+	wp_enqueue_style('geodirectory-frontend-rtl-style');
309
+	}
310 310
 
311
-    wp_register_style('font-awesome', '//maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css', array(), GEODIRECTORY_VERSION);
312
-    wp_enqueue_style('font-awesome');
311
+	wp_register_style('font-awesome', '//maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css', array(), GEODIRECTORY_VERSION);
312
+	wp_enqueue_style('font-awesome');
313 313
 
314 314
 
315 315
 }
@@ -323,7 +323,7 @@  discard block
 block discarded – undo
323 323
  */
324 324
 function geodir_get_sidebar()
325 325
 {
326
-    get_sidebar('geodirectory');
326
+	get_sidebar('geodirectory');
327 327
 }
328 328
 
329 329
 /**
@@ -342,122 +342,122 @@  discard block
 block discarded – undo
342 342
  * @param bool $always_show Do you want to show the pagination always? Default: false.
343 343
  */
344 344
 function geodir_pagination($before = '', $after = '', $prelabel = '', $nxtlabel = '', $pages_to_show = 5, $always_show = false) {
345
-    global $wp_query, $posts_per_page, $wpdb, $paged, $blog_id;
345
+	global $wp_query, $posts_per_page, $wpdb, $paged, $blog_id;
346 346
 
347
-    if (empty($prelabel)) {
348
-        $prelabel = '<strong>&laquo;</strong>';
349
-    }
347
+	if (empty($prelabel)) {
348
+		$prelabel = '<strong>&laquo;</strong>';
349
+	}
350 350
 
351
-    if (empty($nxtlabel)) {
352
-        $nxtlabel = '<strong>&raquo;</strong>';
353
-    }
351
+	if (empty($nxtlabel)) {
352
+		$nxtlabel = '<strong>&raquo;</strong>';
353
+	}
354 354
 
355
-    $half_pages_to_show = round($pages_to_show / 2);
355
+	$half_pages_to_show = round($pages_to_show / 2);
356 356
 
357
-    if (geodir_is_page('home')) // dont apply default  pagination for geodirectory home page.
358
-        return;
357
+	if (geodir_is_page('home')) // dont apply default  pagination for geodirectory home page.
358
+		return;
359 359
 
360
-    if (!is_single()) {
361
-        if (function_exists('geodir_location_geo_home_link')) {
362
-            remove_filter('home_url', 'geodir_location_geo_home_link', 100000);
363
-        }
364
-        $numposts = $wp_query->found_posts;
360
+	if (!is_single()) {
361
+		if (function_exists('geodir_location_geo_home_link')) {
362
+			remove_filter('home_url', 'geodir_location_geo_home_link', 100000);
363
+		}
364
+		$numposts = $wp_query->found_posts;
365 365
 
366
-        $max_page = ceil($numposts / $posts_per_page);
366
+		$max_page = ceil($numposts / $posts_per_page);
367 367
 
368
-        if (empty($paged)) {
369
-            $paged = 1;
370
-        }
368
+		if (empty($paged)) {
369
+			$paged = 1;
370
+		}
371 371
         
372
-        $post_type = geodir_get_current_posttype();
373
-        $listing_type_name = get_post_type_plural_label($post_type);
374
-        if (geodir_is_page('listing') || geodir_is_page('search')) {            
375
-            $term = array();
372
+		$post_type = geodir_get_current_posttype();
373
+		$listing_type_name = get_post_type_plural_label($post_type);
374
+		if (geodir_is_page('listing') || geodir_is_page('search')) {            
375
+			$term = array();
376 376
             
377
-            if (is_tax()) {
378
-                $term_id = get_queried_object_id();
379
-                $taxonomy = get_query_var('taxonomy');
377
+			if (is_tax()) {
378
+				$term_id = get_queried_object_id();
379
+				$taxonomy = get_query_var('taxonomy');
380 380
 
381
-                if ($term_id && $post_type && get_query_var('taxonomy') == $post_type . 'category' ) {
382
-                    $term = get_term($term_id, $post_type . 'category');
383
-                }
384
-            }
381
+				if ($term_id && $post_type && get_query_var('taxonomy') == $post_type . 'category' ) {
382
+					$term = get_term($term_id, $post_type . 'category');
383
+				}
384
+			}
385 385
             
386
-            if (geodir_is_page('search') && !empty($_REQUEST['s' . $post_type . 'category'])) {
387
-                $taxonomy_search = $_REQUEST['s' . $post_type . 'category'];
386
+			if (geodir_is_page('search') && !empty($_REQUEST['s' . $post_type . 'category'])) {
387
+				$taxonomy_search = $_REQUEST['s' . $post_type . 'category'];
388 388
                 
389
-                if (!is_array($taxonomy_search)) {
390
-                    $term = get_term((int)$taxonomy_search, $post_type . 'category');
391
-                } else if(is_array($taxonomy_search) && count($taxonomy_search) == 1) { // single category search
392
-                    $term = get_term((int)$taxonomy_search[0], $post_type . 'category');
393
-                }
394
-            }
389
+				if (!is_array($taxonomy_search)) {
390
+					$term = get_term((int)$taxonomy_search, $post_type . 'category');
391
+				} else if(is_array($taxonomy_search) && count($taxonomy_search) == 1) { // single category search
392
+					$term = get_term((int)$taxonomy_search[0], $post_type . 'category');
393
+				}
394
+			}
395 395
             
396
-            if (!empty($term) && !is_wp_error($term)) {
397
-                $listing_type_name = $term->name;
398
-            }
399
-        }
396
+			if (!empty($term) && !is_wp_error($term)) {
397
+				$listing_type_name = $term->name;
398
+			}
399
+		}
400 400
 
401
-        if ($max_page > 1 || $always_show) {            
402
-            // Extra pagination info
403
-            $geodir_pagination_more_info = get_option('geodir_pagination_advance_info');
404
-            $start_no = ( $paged - 1 ) * $posts_per_page + 1;
405
-            $end_no = min($paged * $posts_per_page, $numposts);
401
+		if ($max_page > 1 || $always_show) {            
402
+			// Extra pagination info
403
+			$geodir_pagination_more_info = get_option('geodir_pagination_advance_info');
404
+			$start_no = ( $paged - 1 ) * $posts_per_page + 1;
405
+			$end_no = min($paged * $posts_per_page, $numposts);
406 406
 
407
-            if ($geodir_pagination_more_info != '') {
408
-                if ($listing_type_name) {
409
-                    $listing_type_name = __($listing_type_name, 'geodirectory');
410
-                    $pegination_desc = wp_sprintf(__('Showing %s %d-%d of %d', 'geodirectory'), $listing_type_name, $start_no, $end_no, $numposts);
411
-                } else {
412
-                    $pegination_desc = wp_sprintf(__('Showing listings %d-%d of %d', 'geodirectory'), $start_no, $end_no, $numposts);
413
-                }
414
-                $pagination_info = '<div class="gd-pagination-details">' . $pegination_desc . '</div>';
415
-                /**
416
-                 * Adds an extra pagination info above/under pagination.
417
-                 *
418
-                 * @since 1.5.9
419
-                 *
420
-                 * @param string $pagination_info Extra pagination info content.
421
-                 * @param string $listing_type_name Listing results type.
422
-                 * @param string $start_no First result number.
423
-                 * @param string $end_no Last result number.
424
-                 * @param string $numposts Total number of listings.
425
-                 * @param string $post_type The post type.
426
-                 */
427
-                $pagination_info = apply_filters('geodir_pagination_advance_info', $pagination_info, $listing_type_name, $start_no, $end_no, $numposts, $post_type);
407
+			if ($geodir_pagination_more_info != '') {
408
+				if ($listing_type_name) {
409
+					$listing_type_name = __($listing_type_name, 'geodirectory');
410
+					$pegination_desc = wp_sprintf(__('Showing %s %d-%d of %d', 'geodirectory'), $listing_type_name, $start_no, $end_no, $numposts);
411
+				} else {
412
+					$pegination_desc = wp_sprintf(__('Showing listings %d-%d of %d', 'geodirectory'), $start_no, $end_no, $numposts);
413
+				}
414
+				$pagination_info = '<div class="gd-pagination-details">' . $pegination_desc . '</div>';
415
+				/**
416
+				 * Adds an extra pagination info above/under pagination.
417
+				 *
418
+				 * @since 1.5.9
419
+				 *
420
+				 * @param string $pagination_info Extra pagination info content.
421
+				 * @param string $listing_type_name Listing results type.
422
+				 * @param string $start_no First result number.
423
+				 * @param string $end_no Last result number.
424
+				 * @param string $numposts Total number of listings.
425
+				 * @param string $post_type The post type.
426
+				 */
427
+				$pagination_info = apply_filters('geodir_pagination_advance_info', $pagination_info, $listing_type_name, $start_no, $end_no, $numposts, $post_type);
428 428
                 
429
-                if ($geodir_pagination_more_info == 'before') {
430
-                    $before = $before . $pagination_info;
431
-                } else if ($geodir_pagination_more_info == 'after') {
432
-                    $after = $pagination_info . $after;
433
-                }
434
-            }
429
+				if ($geodir_pagination_more_info == 'before') {
430
+					$before = $before . $pagination_info;
431
+				} else if ($geodir_pagination_more_info == 'after') {
432
+					$after = $pagination_info . $after;
433
+				}
434
+			}
435 435
             
436
-            echo "$before <div class='Navi gd-navi'>";
437
-            if ($paged >= ($pages_to_show - 1)) {
438
-                echo '<a href="' . str_replace('&paged', '&amp;paged', get_pagenum_link()) . '">&laquo;</a>';
439
-            }
440
-            previous_posts_link($prelabel);
441
-            for ($i = $paged - $half_pages_to_show; $i <= $paged + $half_pages_to_show; $i++) {
442
-                if ($i >= 1 && $i <= $max_page) {
443
-                    if ($i == $paged) {
444
-                        echo "<strong class='on'>$i</strong>";
445
-                    } else {
446
-                        echo ' <a href="' . str_replace('&paged', '&amp;paged', get_pagenum_link($i)) . '">' . $i . '</a> ';
447
-                    }
448
-                }
449
-            }
450
-            next_posts_link($nxtlabel, $max_page);
451
-            if (($paged + $half_pages_to_show) < ($max_page)) {
452
-                echo '<a href="' . str_replace('&paged', '&amp;paged', get_pagenum_link($max_page)) . '">&raquo;</a>';
453
-            }
454
-            echo "</div> $after";
455
-        }
436
+			echo "$before <div class='Navi gd-navi'>";
437
+			if ($paged >= ($pages_to_show - 1)) {
438
+				echo '<a href="' . str_replace('&paged', '&amp;paged', get_pagenum_link()) . '">&laquo;</a>';
439
+			}
440
+			previous_posts_link($prelabel);
441
+			for ($i = $paged - $half_pages_to_show; $i <= $paged + $half_pages_to_show; $i++) {
442
+				if ($i >= 1 && $i <= $max_page) {
443
+					if ($i == $paged) {
444
+						echo "<strong class='on'>$i</strong>";
445
+					} else {
446
+						echo ' <a href="' . str_replace('&paged', '&amp;paged', get_pagenum_link($i)) . '">' . $i . '</a> ';
447
+					}
448
+				}
449
+			}
450
+			next_posts_link($nxtlabel, $max_page);
451
+			if (($paged + $half_pages_to_show) < ($max_page)) {
452
+				echo '<a href="' . str_replace('&paged', '&amp;paged', get_pagenum_link($max_page)) . '">&raquo;</a>';
453
+			}
454
+			echo "</div> $after";
455
+		}
456 456
         
457
-        if (function_exists('geodir_location_geo_home_link')) {
458
-            add_filter('home_url', 'geodir_location_geo_home_link', 100000, 2);
459
-        }
460
-    }
457
+		if (function_exists('geodir_location_geo_home_link')) {
458
+			add_filter('home_url', 'geodir_location_geo_home_link', 100000, 2);
459
+		}
460
+	}
461 461
 }
462 462
 
463 463
 /**
@@ -468,20 +468,20 @@  discard block
 block discarded – undo
468 468
  */
469 469
 function geodir_listingsearch_scripts()
470 470
 {
471
-    if (get_option('gd_search_dist') != '') {
472
-        $dist = get_option('gd_search_dist');
473
-    } else {
474
-        $dist = 500;
475
-    }
476
-    $dist_dif = 1000;
477
-
478
-    if ($dist <= 5000) $dist_dif = 500;
479
-    if ($dist <= 1000) $dist_dif = 100;
480
-    if ($dist <= 500) $dist_dif = 50;
481
-    if ($dist <= 100) $dist_dif = 10;
482
-    if ($dist <= 50) $dist_dif = 5;
483
-
484
-    ?>
471
+	if (get_option('gd_search_dist') != '') {
472
+		$dist = get_option('gd_search_dist');
473
+	} else {
474
+		$dist = 500;
475
+	}
476
+	$dist_dif = 1000;
477
+
478
+	if ($dist <= 5000) $dist_dif = 500;
479
+	if ($dist <= 1000) $dist_dif = 100;
480
+	if ($dist <= 500) $dist_dif = 50;
481
+	if ($dist <= 100) $dist_dif = 10;
482
+	if ($dist <= 50) $dist_dif = 5;
483
+
484
+	?>
485 485
     <script type="text/javascript">
486 486
 
487 487
         jQuery(function ($) {
@@ -540,15 +540,15 @@  discard block
 block discarded – undo
540 540
 function geodir_add_sharelocation_scripts()
541 541
 {
542 542
 
543
-    $default_search_for_text = SEARCH_FOR_TEXT;
544
-    if (get_option('geodir_search_field_default_text'))
545
-        $default_search_for_text = __(get_option('geodir_search_field_default_text'), 'geodirectory');
543
+	$default_search_for_text = SEARCH_FOR_TEXT;
544
+	if (get_option('geodir_search_field_default_text'))
545
+		$default_search_for_text = __(get_option('geodir_search_field_default_text'), 'geodirectory');
546 546
 
547
-    $default_near_text = NEAR_TEXT;
548
-    if (get_option('geodir_near_field_default_text'))
549
-        $default_near_text = __(get_option('geodir_near_field_default_text'), 'geodirectory');
547
+	$default_near_text = NEAR_TEXT;
548
+	if (get_option('geodir_near_field_default_text'))
549
+		$default_near_text = __(get_option('geodir_near_field_default_text'), 'geodirectory');
550 550
 
551
-    ?>
551
+	?>
552 552
 
553 553
 
554 554
     <script type="text/javascript">
@@ -631,14 +631,14 @@  discard block
 block discarded – undo
631 631
                     initialise2();
632 632
                 } else {
633 633
                     <?php
634
-                    $near_add = get_option('geodir_search_near_addition');
635
-                    /**
636
-                     * Adds any extra info to the near search box query when trying to geolocate it via google api.
637
-                     *
638
-                     * @since 1.0.0
639
-                     */
640
-                    $near_add2 = apply_filters('geodir_search_near_addition', '');
641
-                    ?>
634
+					$near_add = get_option('geodir_search_near_addition');
635
+					/**
636
+					 * Adds any extra info to the near search box query when trying to geolocate it via google api.
637
+					 *
638
+					 * @since 1.0.0
639
+					 */
640
+					$near_add2 = apply_filters('geodir_search_near_addition', '');
641
+					?>
642 642
                     if (window.gdMaps === 'google') {
643 643
                         Sgeocoder.geocode({'address': address<?php echo ($near_add ? '+", ' . $near_add . '"' : '') . $near_add2;?>},
644 644
                             function (results, status) {
@@ -741,30 +741,30 @@  discard block
 block discarded – undo
741 741
  */
742 742
 function geodir_show_badges_on_image($which, $post, $link)
743 743
 {
744
-    $return = '';
745
-    switch ($which) {
746
-        case 'featured':
747
-            /**
748
-             * Filter the featured image badge html that appears in the listings pages over the thumbnail.
749
-             *
750
-             * @since 1.0.0
751
-             * @param object $post The post object.
752
-             * @param string $link The link to the post.
753
-             */
754
-            $return = apply_filters('geodir_featured_badge_on_image', '<a href="' . $link . '"><span class="geodir_featured_img">&nbsp;</span></a>',$post,$link);
755
-            break;
756
-        case 'new' :
757
-            /**
758
-             * Filter the new image badge html that appears in the listings pages over the thumbnail.
759
-             *
760
-             * @since 1.0.0
761
-             * @param object $post The post object.
762
-             * @param string $link The link to the post.
763
-             */
764
-            $return = apply_filters('geodir_new_badge_on_image', '<a href="' . $link . '"><span class="geodir_new_listing">&nbsp;</span></a>',$post,$link);
765
-            break;
766
-
767
-    }
744
+	$return = '';
745
+	switch ($which) {
746
+		case 'featured':
747
+			/**
748
+			 * Filter the featured image badge html that appears in the listings pages over the thumbnail.
749
+			 *
750
+			 * @since 1.0.0
751
+			 * @param object $post The post object.
752
+			 * @param string $link The link to the post.
753
+			 */
754
+			$return = apply_filters('geodir_featured_badge_on_image', '<a href="' . $link . '"><span class="geodir_featured_img">&nbsp;</span></a>',$post,$link);
755
+			break;
756
+		case 'new' :
757
+			/**
758
+			 * Filter the new image badge html that appears in the listings pages over the thumbnail.
759
+			 *
760
+			 * @since 1.0.0
761
+			 * @param object $post The post object.
762
+			 * @param string $link The link to the post.
763
+			 */
764
+			$return = apply_filters('geodir_new_badge_on_image', '<a href="' . $link . '"><span class="geodir_new_listing">&nbsp;</span></a>',$post,$link);
765
+			break;
766
+
767
+	}
768 768
     
769
-    return $return;
769
+	return $return;
770 770
 }
Please login to merge, or discard this patch.
Spacing   +71 added lines, -71 removed lines patch added patch discarded remove patch
@@ -38,21 +38,21 @@  discard block
 block discarded – undo
38 38
     $is_detail_page = false;
39 39
     $geodir_map_name = geodir_map_name();
40 40
 
41
-    if((is_single() && geodir_is_geodir_page()) || (is_page() && geodir_is_page('preview') )) {
41
+    if ((is_single() && geodir_is_geodir_page()) || (is_page() && geodir_is_page('preview'))) {
42 42
         $is_detail_page = true;
43 43
     }
44 44
 
45 45
     wp_enqueue_script('jquery');
46 46
 
47
-    wp_register_script('geodirectory-script', geodir_plugin_url() . '/geodirectory-assets/js/geodirectory.min.js', array(), GEODIRECTORY_VERSION);
47
+    wp_register_script('geodirectory-script', geodir_plugin_url().'/geodirectory-assets/js/geodirectory.min.js', array(), GEODIRECTORY_VERSION);
48 48
     wp_enqueue_script('geodirectory-script');
49 49
 
50 50
     $geodir_vars_data = array(
51 51
         'siteurl' => get_option('siteurl'),
52 52
         'geodir_plugin_url' => geodir_plugin_url(),
53
-        'geodir_lazy_load' => get_option('geodir_lazy_load',1),
53
+        'geodir_lazy_load' => get_option('geodir_lazy_load', 1),
54 54
         'geodir_ajax_url' => geodir_get_ajax_url(),
55
-        'geodir_gd_modal' => (int)get_option('geodir_disable_gb_modal'),
55
+        'geodir_gd_modal' => (int) get_option('geodir_disable_gb_modal'),
56 56
         'is_rtl' => is_rtl() ? 1 : 0 // fix rtl issue
57 57
     );
58 58
 
@@ -73,24 +73,24 @@  discard block
 block discarded – undo
73 73
      *
74 74
      * }
75 75
      */
76
-    $geodir_vars_data = apply_filters('geodir_vars_data',$geodir_vars_data);
76
+    $geodir_vars_data = apply_filters('geodir_vars_data', $geodir_vars_data);
77 77
 
78 78
     wp_localize_script('geodirectory-script', 'geodir_var', $geodir_vars_data);
79 79
 
80
-    wp_register_script('geodirectory-jquery-flexslider-js', geodir_plugin_url() . '/geodirectory-assets/js/jquery.flexslider.min.js', array(), GEODIRECTORY_VERSION,true);
81
-    if($is_detail_page){wp_enqueue_script('geodirectory-jquery-flexslider-js');}
80
+    wp_register_script('geodirectory-jquery-flexslider-js', geodir_plugin_url().'/geodirectory-assets/js/jquery.flexslider.min.js', array(), GEODIRECTORY_VERSION, true);
81
+    if ($is_detail_page) {wp_enqueue_script('geodirectory-jquery-flexslider-js'); }
82 82
 
83
-    wp_register_script('geodirectory-lightbox-jquery', geodir_plugin_url() . '/geodirectory-assets/js/jquery.lightbox-0.5.min.js', array(), GEODIRECTORY_VERSION,true);
83
+    wp_register_script('geodirectory-lightbox-jquery', geodir_plugin_url().'/geodirectory-assets/js/jquery.lightbox-0.5.min.js', array(), GEODIRECTORY_VERSION, true);
84 84
     wp_enqueue_script('geodirectory-lightbox-jquery');
85 85
 
86
-    wp_register_script('geodirectory-jquery-simplemodal', geodir_plugin_url() . '/geodirectory-assets/js/jquery.simplemodal.min.js', array(), GEODIRECTORY_VERSION,true);
86
+    wp_register_script('geodirectory-jquery-simplemodal', geodir_plugin_url().'/geodirectory-assets/js/jquery.simplemodal.min.js', array(), GEODIRECTORY_VERSION, true);
87 87
     if ($is_detail_page) {
88 88
         wp_enqueue_script('geodirectory-jquery-simplemodal');
89 89
     }
90 90
 
91 91
     if (in_array($geodir_map_name, array('auto', 'google'))) {
92
-        $map_lang = "&language=" . geodir_get_map_default_language();
93
-        $map_key = "&key=" . geodir_get_map_api_key();
92
+        $map_lang = "&language=".geodir_get_map_default_language();
93
+        $map_key = "&key=".geodir_get_map_api_key();
94 94
         /**
95 95
          * Filter the variables that are added to the end of the google maps script call.
96 96
          *
@@ -100,48 +100,48 @@  discard block
 block discarded – undo
100 100
          * @param string $var The string to filter, default is empty string.
101 101
          */
102 102
         $map_extra = apply_filters('geodir_googlemap_script_extra', '');
103
-        wp_enqueue_script('geodirectory-googlemap-script', 'https://maps.google.com/maps/api/js?' . $map_lang . $map_key . $map_extra , '', NULL);
103
+        wp_enqueue_script('geodirectory-googlemap-script', 'https://maps.google.com/maps/api/js?'.$map_lang.$map_key.$map_extra, '', NULL);
104 104
     }
105 105
     
106 106
     if ($geodir_map_name == 'osm') {
107 107
         // Leaflet OpenStreetMap
108
-        wp_register_style('geodirectory-leaflet-style', geodir_plugin_url() . '/geodirectory-assets/leaflet/leaflet.css', array(), GEODIRECTORY_VERSION);
108
+        wp_register_style('geodirectory-leaflet-style', geodir_plugin_url().'/geodirectory-assets/leaflet/leaflet.css', array(), GEODIRECTORY_VERSION);
109 109
         wp_enqueue_style('geodirectory-leaflet-style');
110 110
             
111
-        wp_register_script('geodirectory-leaflet-script', geodir_plugin_url() . '/geodirectory-assets/leaflet/leaflet.min.js', array(), GEODIRECTORY_VERSION);
111
+        wp_register_script('geodirectory-leaflet-script', geodir_plugin_url().'/geodirectory-assets/leaflet/leaflet.min.js', array(), GEODIRECTORY_VERSION);
112 112
         wp_enqueue_script('geodirectory-leaflet-script');
113 113
         
114
-        wp_register_script('geodirectory-leaflet-geo-script', geodir_plugin_url() . '/geodirectory-assets/leaflet/osm.geocode.js', array(), GEODIRECTORY_VERSION);
114
+        wp_register_script('geodirectory-leaflet-geo-script', geodir_plugin_url().'/geodirectory-assets/leaflet/osm.geocode.js', array(), GEODIRECTORY_VERSION);
115 115
         wp_enqueue_script('geodirectory-leaflet-geo-script');
116 116
         
117 117
         if ($is_detail_page) {
118
-            wp_register_style('geodirectory-leaflet-routing-style', geodir_plugin_url() . '/geodirectory-assets/leaflet/routing/leaflet-routing-machine.css', array(), GEODIRECTORY_VERSION);
118
+            wp_register_style('geodirectory-leaflet-routing-style', geodir_plugin_url().'/geodirectory-assets/leaflet/routing/leaflet-routing-machine.css', array(), GEODIRECTORY_VERSION);
119 119
             wp_enqueue_style('geodirectory-leaflet-routing-style');
120 120
                 
121
-            wp_register_script('geodirectory-leaflet-routing-script', geodir_plugin_url() . '/geodirectory-assets/leaflet/routing/leaflet-routing-machine.js', array(), GEODIRECTORY_VERSION);
121
+            wp_register_script('geodirectory-leaflet-routing-script', geodir_plugin_url().'/geodirectory-assets/leaflet/routing/leaflet-routing-machine.js', array(), GEODIRECTORY_VERSION);
122 122
             wp_enqueue_script('geodirectory-leaflet-routing-script');
123 123
         }
124 124
     }
125
-    wp_enqueue_script( 'jquery-ui-autocomplete' );
125
+    wp_enqueue_script('jquery-ui-autocomplete');
126 126
     
127
-    wp_register_script('geodirectory-goMap-script', geodir_plugin_url() . '/geodirectory-assets/js/goMap.min.js', array(), GEODIRECTORY_VERSION,true);
127
+    wp_register_script('geodirectory-goMap-script', geodir_plugin_url().'/geodirectory-assets/js/goMap.min.js', array(), GEODIRECTORY_VERSION, true);
128 128
     wp_enqueue_script('geodirectory-goMap-script');
129 129
 
130 130
 
131
-    wp_register_script('chosen', geodir_plugin_url() . '/geodirectory-assets/js/chosen.jquery.min.js', array(), GEODIRECTORY_VERSION);
131
+    wp_register_script('chosen', geodir_plugin_url().'/geodirectory-assets/js/chosen.jquery.min.js', array(), GEODIRECTORY_VERSION);
132 132
     wp_enqueue_script('chosen');
133 133
 
134
-    wp_register_script('geodirectory-choose-ajax', geodir_plugin_url() . '/geodirectory-assets/js/ajax-chosen.min.js', array(), GEODIRECTORY_VERSION);
134
+    wp_register_script('geodirectory-choose-ajax', geodir_plugin_url().'/geodirectory-assets/js/ajax-chosen.min.js', array(), GEODIRECTORY_VERSION);
135 135
     wp_enqueue_script('geodirectory-choose-ajax');
136 136
 
137
-    wp_enqueue_script('geodirectory-jquery-ui-timepicker-js', geodir_plugin_url() . '/geodirectory-assets/js/jquery.ui.timepicker.min.js', array('jquery-ui-datepicker', 'jquery-ui-slider', 'jquery-effects-core', 'jquery-effects-slide'), '', true);
137
+    wp_enqueue_script('geodirectory-jquery-ui-timepicker-js', geodir_plugin_url().'/geodirectory-assets/js/jquery.ui.timepicker.min.js', array('jquery-ui-datepicker', 'jquery-ui-slider', 'jquery-effects-core', 'jquery-effects-slide'), '', true);
138 138
 
139 139
     if (is_page() && geodir_is_page('add-listing')) {
140 140
         // SCRIPT FOR UPLOAD
141 141
         wp_enqueue_script('plupload-all');
142 142
         wp_enqueue_script('jquery-ui-sortable');
143 143
 
144
-        wp_register_script('geodirectory-plupload-script', geodir_plugin_url() . '/geodirectory-assets/js/geodirectory-plupload.min.js#asyncload', array(), GEODIRECTORY_VERSION,true);
144
+        wp_register_script('geodirectory-plupload-script', geodir_plugin_url().'/geodirectory-assets/js/geodirectory-plupload.min.js#asyncload', array(), GEODIRECTORY_VERSION, true);
145 145
         wp_enqueue_script('geodirectory-plupload-script');
146 146
         // SCRIPT FOR UPLOAD END
147 147
 
@@ -188,27 +188,27 @@  discard block
 block discarded – undo
188 188
 
189 189
         wp_localize_script('geodirectory-plupload-script', 'gd_plupload', $gd_plupload_init);
190 190
 
191
-        wp_enqueue_script('geodirectory-listing-validation-script', geodir_plugin_url() . '/geodirectory-assets/js/listing_validation.min.js#asyncload');
191
+        wp_enqueue_script('geodirectory-listing-validation-script', geodir_plugin_url().'/geodirectory-assets/js/listing_validation.min.js#asyncload');
192 192
     } // End if for add place page
193 193
 
194
-    wp_register_script('geodirectory-post-custom-js', geodir_plugin_url() . '/geodirectory-assets/js/post.custom.min.js#asyncload', array(), GEODIRECTORY_VERSION, true);
194
+    wp_register_script('geodirectory-post-custom-js', geodir_plugin_url().'/geodirectory-assets/js/post.custom.min.js#asyncload', array(), GEODIRECTORY_VERSION, true);
195 195
     if ($is_detail_page) {
196 196
 		wp_enqueue_script('geodirectory-post-custom-js');
197 197
 	}
198 198
 
199 199
     // font awesome rating script
200 200
 	if (get_option('geodir_reviewrating_enable_font_awesome')) {
201
-		wp_register_script('geodir-barrating-js', geodir_plugin_url() . '/geodirectory-assets/js/jquery.barrating.min.js', array(), GEODIRECTORY_VERSION, true);
201
+		wp_register_script('geodir-barrating-js', geodir_plugin_url().'/geodirectory-assets/js/jquery.barrating.min.js', array(), GEODIRECTORY_VERSION, true);
202 202
 		wp_enqueue_script('geodir-barrating-js');
203 203
 	} else { // default rating script
204
-		wp_register_script('geodir-jRating-js', geodir_plugin_url() . '/geodirectory-assets/js/jRating.jquery.min.js', array(), GEODIRECTORY_VERSION, true);
204
+		wp_register_script('geodir-jRating-js', geodir_plugin_url().'/geodirectory-assets/js/jRating.jquery.min.js', array(), GEODIRECTORY_VERSION, true);
205 205
 		wp_enqueue_script('geodir-jRating-js');
206 206
 	}
207 207
 
208
-    wp_register_script('geodir-on-document-load', geodir_plugin_url() . '/geodirectory-assets/js/on_document_load.min.js#asyncload', array(), GEODIRECTORY_VERSION, true);
208
+    wp_register_script('geodir-on-document-load', geodir_plugin_url().'/geodirectory-assets/js/on_document_load.min.js#asyncload', array(), GEODIRECTORY_VERSION, true);
209 209
     wp_enqueue_script('geodir-on-document-load');
210 210
 
211
-    wp_register_script('google-geometa', geodir_plugin_url() . '/geodirectory-assets/js/geometa.min.js#asyncload', array(), GEODIRECTORY_VERSION, true);
211
+    wp_register_script('google-geometa', geodir_plugin_url().'/geodirectory-assets/js/geometa.min.js#asyncload', array(), GEODIRECTORY_VERSION, true);
212 212
     wp_enqueue_script('google-geometa');
213 213
 }
214 214
 
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
  */
224 224
 function geodir_header_scripts()
225 225
 {
226
-    echo '<style>' . stripslashes(get_option('geodir_coustem_css')) . '</style>';
226
+    echo '<style>'.stripslashes(get_option('geodir_coustem_css')).'</style>';
227 227
     echo stripslashes(get_option('geodir_header_scripts'));
228 228
 }
229 229
 
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
 function geodir_footer_scripts()
241 241
 {	
242 242
 
243
-    if(get_option('geodir_ga_add_tracking_code') && get_option('geodir_ga_account_id')){?>
243
+    if (get_option('geodir_ga_add_tracking_code') && get_option('geodir_ga_account_id')) {?>
244 244
 
245 245
         <script>
246 246
             (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
@@ -248,13 +248,13 @@  discard block
 block discarded – undo
248 248
                 m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
249 249
             })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
250 250
 
251
-            ga('create', '<?php echo esc_attr(get_option('geodir_ga_account_id'));?>', 'auto');
251
+            ga('create', '<?php echo esc_attr(get_option('geodir_ga_account_id')); ?>', 'auto');
252 252
             ga('send', 'pageview');
253 253
 
254 254
         </script>
255 255
 
256 256
 <?php
257
-    }elseif(get_option('geodir_ga_tracking_code') && !get_option('geodir_ga_account_id')){
257
+    }elseif (get_option('geodir_ga_tracking_code') && !get_option('geodir_ga_account_id')) {
258 258
         echo stripslashes(get_option('geodir_ga_tracking_code'));
259 259
     }
260 260
 
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
      *
266 266
      * Flexbox wont wrap on ios for search form items
267 267
      */
268
-    if (preg_match( '/iPad|iPod|iPhone|Safari/', $_SERVER['HTTP_USER_AGENT'] ) ) {
268
+    if (preg_match('/iPad|iPod|iPhone|Safari/', $_SERVER['HTTP_USER_AGENT'])) {
269 269
         echo "<style>body .geodir-listing-search.gd-search-bar-style .geodir-loc-bar .clearfix.geodir-loc-bar-in .geodir-search .gd-search-input-wrapper{flex:50 1 auto !important;min-width: initial !important;width:auto !important;}.geodir-filter-container .geodir-filter-cat{width:auto !important;}</style>";
270 270
     }
271 271
 }
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
  */
282 282
 function geodir_add_async_forscript($url)
283 283
 {
284
-    if (strpos($url, '#asyncload')===false)
284
+    if (strpos($url, '#asyncload') === false)
285 285
         return $url;
286 286
     else if (is_admin())
287 287
         return str_replace('#asyncload', '', $url);
@@ -299,12 +299,12 @@  discard block
 block discarded – undo
299 299
 function geodir_templates_styles()
300 300
 {
301 301
 
302
-    wp_register_style('geodir-core-scss', geodir_plugin_url() . '/geodirectory-assets/css/gd_core_frontend.css', array(), GEODIRECTORY_VERSION);
302
+    wp_register_style('geodir-core-scss', geodir_plugin_url().'/geodirectory-assets/css/gd_core_frontend.css', array(), GEODIRECTORY_VERSION);
303 303
     wp_enqueue_style('geodir-core-scss');
304
-    wp_register_style('geodir-core-scss-footer', geodir_plugin_url() . '/geodirectory-assets/css/gd_core_frontend_footer.css', array(), GEODIRECTORY_VERSION);
304
+    wp_register_style('geodir-core-scss-footer', geodir_plugin_url().'/geodirectory-assets/css/gd_core_frontend_footer.css', array(), GEODIRECTORY_VERSION);
305 305
 
306
-    if(is_rtl()){
307
-    wp_register_style('geodirectory-frontend-rtl-style', geodir_plugin_url() . '/geodirectory-assets/css/rtl-frontend.css', array(), GEODIRECTORY_VERSION);
306
+    if (is_rtl()) {
307
+    wp_register_style('geodirectory-frontend-rtl-style', geodir_plugin_url().'/geodirectory-assets/css/rtl-frontend.css', array(), GEODIRECTORY_VERSION);
308 308
     wp_enqueue_style('geodirectory-frontend-rtl-style');
309 309
     }
310 310
 
@@ -378,18 +378,18 @@  discard block
 block discarded – undo
378 378
                 $term_id = get_queried_object_id();
379 379
                 $taxonomy = get_query_var('taxonomy');
380 380
 
381
-                if ($term_id && $post_type && get_query_var('taxonomy') == $post_type . 'category' ) {
382
-                    $term = get_term($term_id, $post_type . 'category');
381
+                if ($term_id && $post_type && get_query_var('taxonomy') == $post_type.'category') {
382
+                    $term = get_term($term_id, $post_type.'category');
383 383
                 }
384 384
             }
385 385
             
386
-            if (geodir_is_page('search') && !empty($_REQUEST['s' . $post_type . 'category'])) {
387
-                $taxonomy_search = $_REQUEST['s' . $post_type . 'category'];
386
+            if (geodir_is_page('search') && !empty($_REQUEST['s'.$post_type.'category'])) {
387
+                $taxonomy_search = $_REQUEST['s'.$post_type.'category'];
388 388
                 
389 389
                 if (!is_array($taxonomy_search)) {
390
-                    $term = get_term((int)$taxonomy_search, $post_type . 'category');
391
-                } else if(is_array($taxonomy_search) && count($taxonomy_search) == 1) { // single category search
392
-                    $term = get_term((int)$taxonomy_search[0], $post_type . 'category');
390
+                    $term = get_term((int) $taxonomy_search, $post_type.'category');
391
+                } else if (is_array($taxonomy_search) && count($taxonomy_search) == 1) { // single category search
392
+                    $term = get_term((int) $taxonomy_search[0], $post_type.'category');
393 393
                 }
394 394
             }
395 395
             
@@ -401,7 +401,7 @@  discard block
 block discarded – undo
401 401
         if ($max_page > 1 || $always_show) {            
402 402
             // Extra pagination info
403 403
             $geodir_pagination_more_info = get_option('geodir_pagination_advance_info');
404
-            $start_no = ( $paged - 1 ) * $posts_per_page + 1;
404
+            $start_no = ($paged - 1) * $posts_per_page + 1;
405 405
             $end_no = min($paged * $posts_per_page, $numposts);
406 406
 
407 407
             if ($geodir_pagination_more_info != '') {
@@ -411,7 +411,7 @@  discard block
 block discarded – undo
411 411
                 } else {
412 412
                     $pegination_desc = wp_sprintf(__('Showing listings %d-%d of %d', 'geodirectory'), $start_no, $end_no, $numposts);
413 413
                 }
414
-                $pagination_info = '<div class="gd-pagination-details">' . $pegination_desc . '</div>';
414
+                $pagination_info = '<div class="gd-pagination-details">'.$pegination_desc.'</div>';
415 415
                 /**
416 416
                  * Adds an extra pagination info above/under pagination.
417 417
                  *
@@ -427,15 +427,15 @@  discard block
 block discarded – undo
427 427
                 $pagination_info = apply_filters('geodir_pagination_advance_info', $pagination_info, $listing_type_name, $start_no, $end_no, $numposts, $post_type);
428 428
                 
429 429
                 if ($geodir_pagination_more_info == 'before') {
430
-                    $before = $before . $pagination_info;
430
+                    $before = $before.$pagination_info;
431 431
                 } else if ($geodir_pagination_more_info == 'after') {
432
-                    $after = $pagination_info . $after;
432
+                    $after = $pagination_info.$after;
433 433
                 }
434 434
             }
435 435
             
436 436
             echo "$before <div class='Navi gd-navi'>";
437 437
             if ($paged >= ($pages_to_show - 1)) {
438
-                echo '<a href="' . str_replace('&paged', '&amp;paged', get_pagenum_link()) . '">&laquo;</a>';
438
+                echo '<a href="'.str_replace('&paged', '&amp;paged', get_pagenum_link()).'">&laquo;</a>';
439 439
             }
440 440
             previous_posts_link($prelabel);
441 441
             for ($i = $paged - $half_pages_to_show; $i <= $paged + $half_pages_to_show; $i++) {
@@ -443,13 +443,13 @@  discard block
 block discarded – undo
443 443
                     if ($i == $paged) {
444 444
                         echo "<strong class='on'>$i</strong>";
445 445
                     } else {
446
-                        echo ' <a href="' . str_replace('&paged', '&amp;paged', get_pagenum_link($i)) . '">' . $i . '</a> ';
446
+                        echo ' <a href="'.str_replace('&paged', '&amp;paged', get_pagenum_link($i)).'">'.$i.'</a> ';
447 447
                     }
448 448
                 }
449 449
             }
450 450
             next_posts_link($nxtlabel, $max_page);
451 451
             if (($paged + $half_pages_to_show) < ($max_page)) {
452
-                echo '<a href="' . str_replace('&paged', '&amp;paged', get_pagenum_link($max_page)) . '">&raquo;</a>';
452
+                echo '<a href="'.str_replace('&paged', '&amp;paged', get_pagenum_link($max_page)).'">&raquo;</a>';
453 453
             }
454 454
             echo "</div> $after";
455 455
         }
@@ -487,7 +487,7 @@  discard block
 block discarded – undo
487 487
         jQuery(function ($) {
488 488
             $("#distance_slider").slider({
489 489
                 range: true,
490
-                values: [0, <?php echo ($_REQUEST['sdist']!='') ? sanitize_text_field($_REQUEST['sdist']) : "0"; ?>],
490
+                values: [0, <?php echo ($_REQUEST['sdist'] != '') ? sanitize_text_field($_REQUEST['sdist']) : "0"; ?>],
491 491
                 min: 0,
492 492
                 max: <?php echo $dist; ?>,
493 493
                 step: <?php echo $dist_dif; ?>,
@@ -552,7 +552,7 @@  discard block
 block discarded – undo
552 552
 
553 553
 
554 554
     <script type="text/javascript">
555
-        var default_location = '<?php if($search_location = geodir_get_default_location())  echo $search_location->city ;?>';
555
+        var default_location = '<?php if ($search_location = geodir_get_default_location())  echo $search_location->city; ?>';
556 556
         var latlng;
557 557
         var address;
558 558
         var dist = 0;
@@ -568,7 +568,7 @@  discard block
 block discarded – undo
568 568
 				var $form = jQuery(this).closest('form');
569 569
 
570 570
 				if (jQuery("#sdist input[type='radio']:checked").length != 0) dist = jQuery("#sdist input[type='radio']:checked").val();
571
-				if (jQuery('.search_text', $form).val() == '' || jQuery('.search_text', $form).val() == '<?php echo $default_search_for_text;?>') jQuery('.search_text', $form).val(s);
571
+				if (jQuery('.search_text', $form).val() == '' || jQuery('.search_text', $form).val() == '<?php echo $default_search_for_text; ?>') jQuery('.search_text', $form).val(s);
572 572
 				
573 573
 				// Disable location based search for disabled location post type.
574 574
 				if (jQuery('.search_by_post', $form).val() != '' && typeof gd_cpt_no_location == 'function') {
@@ -582,7 +582,7 @@  discard block
 block discarded – undo
582 582
 					}
583 583
 				}
584 584
 				
585
-				if (dist > 0 || (jQuery('select[name="sort_by"]').val() == 'nearest' || jQuery('select[name="sort_by"]', $form).val() == 'farthest') || (jQuery(".snear", $form).val() != '' && jQuery(".snear", $form).val() != '<?php echo $default_near_text;?>')) {
585
+				if (dist > 0 || (jQuery('select[name="sort_by"]').val() == 'nearest' || jQuery('select[name="sort_by"]', $form).val() == 'farthest') || (jQuery(".snear", $form).val() != '' && jQuery(".snear", $form).val() != '<?php echo $default_near_text; ?>')) {
586 586
 					geodir_setsearch($form);
587 587
 				} else {
588 588
 					jQuery(".snear", $form).val('');
@@ -600,7 +600,7 @@  discard block
 block discarded – undo
600 600
         });
601 601
         
602 602
 		function geodir_setsearch($form) {
603
-			if ((dist > 0 || (jQuery('select[name="sort_by"]', $form).val() == 'nearest' || jQuery('select[name="sort_by"]', $form).val() == 'farthest')) && (jQuery(".snear", $form).val() == '' || jQuery(".snear", $form).val() == '<?php echo $default_near_text;?>')) jQuery(".snear", $form).val(default_location);
603
+			if ((dist > 0 || (jQuery('select[name="sort_by"]', $form).val() == 'nearest' || jQuery('select[name="sort_by"]', $form).val() == 'farthest')) && (jQuery(".snear", $form).val() == '' || jQuery(".snear", $form).val() == '<?php echo $default_near_text; ?>')) jQuery(".snear", $form).val(default_location);
604 604
 			geocodeAddress($form);
605 605
 		}
606 606
 
@@ -619,15 +619,15 @@  discard block
 block discarded – undo
619 619
             // Call the geocode function
620 620
             Sgeocoder = window.gdMaps == 'google' ? new google.maps.Geocoder() : null;
621 621
 
622
-            if (jQuery('.snear', $form).val() == '' || ( jQuery('.sgeo_lat').val() != '' && jQuery('.sgeo_lon').val() != ''  ) || jQuery('.snear', $form).val().match("^<?php _e('In:','geodirectory');?>")) {
623
-                if (jQuery('.snear', $form).val().match("^<?php _e('In:','geodirectory');?>")) {
622
+            if (jQuery('.snear', $form).val() == '' || ( jQuery('.sgeo_lat').val() != '' && jQuery('.sgeo_lon').val() != ''  ) || jQuery('.snear', $form).val().match("^<?php _e('In:', 'geodirectory'); ?>")) {
623
+                if (jQuery('.snear', $form).val().match("^<?php _e('In:', 'geodirectory'); ?>")) {
624 624
                     jQuery(".snear", $form).val('');
625 625
                 }
626 626
                 jQuery($form).submit();
627 627
             } else {
628 628
                 var address = jQuery(".snear", $form).val();
629 629
 
630
-                if (jQuery('.snear', $form).val() == '<?php echo $default_near_text;?>') {
630
+                if (jQuery('.snear', $form).val() == '<?php echo $default_near_text; ?>') {
631 631
                     initialise2();
632 632
                 } else {
633 633
                     <?php
@@ -640,12 +640,12 @@  discard block
 block discarded – undo
640 640
                     $near_add2 = apply_filters('geodir_search_near_addition', '');
641 641
                     ?>
642 642
                     if (window.gdMaps === 'google') {
643
-                        Sgeocoder.geocode({'address': address<?php echo ($near_add ? '+", ' . $near_add . '"' : '') . $near_add2;?>},
643
+                        Sgeocoder.geocode({'address': address<?php echo ($near_add ? '+", '.$near_add.'"' : '').$near_add2; ?>},
644 644
                             function (results, status) {
645 645
                                 if (status == google.maps.GeocoderStatus.OK) {
646 646
                                     updateSearchPosition(results[0].geometry.location, $form);
647 647
                                 } else {
648
-                                    alert("<?php esc_attr_e('Search was not successful for the following reason :', 'geodirectory');?>" + status);
648
+                                    alert("<?php esc_attr_e('Search was not successful for the following reason :', 'geodirectory'); ?>" + status);
649 649
                                 }
650 650
                             });
651 651
                     } else if (window.gdMaps === 'osm') {
@@ -654,7 +654,7 @@  discard block
 block discarded – undo
654 654
                                 if (typeof geo !== 'undefined' && geo.lat && geo.lon) {
655 655
                                     updateSearchPosition(geo, $form);
656 656
                                 } else {
657
-                                    alert("<?php esc_attr_e('Search was not successful for the requested address.', 'geodirectory');?>");
657
+                                    alert("<?php esc_attr_e('Search was not successful for the requested address.', 'geodirectory'); ?>");
658 658
                                 }
659 659
                             });
660 660
                     } else {
@@ -700,19 +700,19 @@  discard block
 block discarded – undo
700 700
             var msg;
701 701
             switch (err.code) {
702 702
                 case err.UNKNOWN_ERROR:
703
-                    msg = "<?php _e('Unable to find your location','geodirectory');?>";
703
+                    msg = "<?php _e('Unable to find your location', 'geodirectory'); ?>";
704 704
                     break;
705 705
                 case err.PERMISSION_DENINED:
706
-                    msg = "<?php _e('Permission denied in finding your location','geodirectory');?>";
706
+                    msg = "<?php _e('Permission denied in finding your location', 'geodirectory'); ?>";
707 707
                     break;
708 708
                 case err.POSITION_UNAVAILABLE:
709
-                    msg = "<?php _e('Your location is currently unknown','geodirectory');?>";
709
+                    msg = "<?php _e('Your location is currently unknown', 'geodirectory'); ?>";
710 710
                     break;
711 711
                 case err.BREAK:
712
-                    msg = "<?php _e('Attempt to find location took too long','geodirectory');?>";
712
+                    msg = "<?php _e('Attempt to find location took too long', 'geodirectory'); ?>";
713 713
                     break;
714 714
                 default:
715
-                    msg = "<?php _e('Location detection not supported in browser','geodirectory');?>";
715
+                    msg = "<?php _e('Location detection not supported in browser', 'geodirectory'); ?>";
716 716
             }
717 717
             jQuery('#info').html(msg);
718 718
         }
@@ -751,7 +751,7 @@  discard block
 block discarded – undo
751 751
              * @param object $post The post object.
752 752
              * @param string $link The link to the post.
753 753
              */
754
-            $return = apply_filters('geodir_featured_badge_on_image', '<a href="' . $link . '"><span class="geodir_featured_img">&nbsp;</span></a>',$post,$link);
754
+            $return = apply_filters('geodir_featured_badge_on_image', '<a href="'.$link.'"><span class="geodir_featured_img">&nbsp;</span></a>', $post, $link);
755 755
             break;
756 756
         case 'new' :
757 757
             /**
@@ -761,7 +761,7 @@  discard block
 block discarded – undo
761 761
              * @param object $post The post object.
762 762
              * @param string $link The link to the post.
763 763
              */
764
-            $return = apply_filters('geodir_new_badge_on_image', '<a href="' . $link . '"><span class="geodir_new_listing">&nbsp;</span></a>',$post,$link);
764
+            $return = apply_filters('geodir_new_badge_on_image', '<a href="'.$link.'"><span class="geodir_new_listing">&nbsp;</span></a>', $post, $link);
765 765
             break;
766 766
 
767 767
     }
Please login to merge, or discard this patch.
Braces   +38 added lines, -20 removed lines patch added patch discarded remove patch
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
         </script>
255 255
 
256 256
 <?php
257
-    }elseif(get_option('geodir_ga_tracking_code') && !get_option('geodir_ga_account_id')){
257
+    } elseif(get_option('geodir_ga_tracking_code') && !get_option('geodir_ga_account_id')){
258 258
         echo stripslashes(get_option('geodir_ga_tracking_code'));
259 259
     }
260 260
 
@@ -281,13 +281,14 @@  discard block
 block discarded – undo
281 281
  */
282 282
 function geodir_add_async_forscript($url)
283 283
 {
284
-    if (strpos($url, '#asyncload')===false)
285
-        return $url;
286
-    else if (is_admin())
287
-        return str_replace('#asyncload', '', $url);
288
-    else
289
-        return str_replace('#asyncload', '', $url)."' async='async";
290
-}
284
+    if (strpos($url, '#asyncload')===false) {
285
+            return $url;
286
+    } else if (is_admin()) {
287
+            return str_replace('#asyncload', '', $url);
288
+    } else {
289
+            return str_replace('#asyncload', '', $url)."' async='async";
290
+    }
291
+    }
291 292
 add_filter('clean_url', 'geodir_add_async_forscript', 11, 1);
292 293
 
293 294
 /**
@@ -354,8 +355,10 @@  discard block
 block discarded – undo
354 355
 
355 356
     $half_pages_to_show = round($pages_to_show / 2);
356 357
 
357
-    if (geodir_is_page('home')) // dont apply default  pagination for geodirectory home page.
358
-        return;
358
+    if (geodir_is_page('home')) {
359
+    	// dont apply default  pagination for geodirectory home page.
360
+        return;
361
+    }
359 362
 
360 363
     if (!is_single()) {
361 364
         if (function_exists('geodir_location_geo_home_link')) {
@@ -475,11 +478,21 @@  discard block
 block discarded – undo
475 478
     }
476 479
     $dist_dif = 1000;
477 480
 
478
-    if ($dist <= 5000) $dist_dif = 500;
479
-    if ($dist <= 1000) $dist_dif = 100;
480
-    if ($dist <= 500) $dist_dif = 50;
481
-    if ($dist <= 100) $dist_dif = 10;
482
-    if ($dist <= 50) $dist_dif = 5;
481
+    if ($dist <= 5000) {
482
+    	$dist_dif = 500;
483
+    }
484
+    if ($dist <= 1000) {
485
+    	$dist_dif = 100;
486
+    }
487
+    if ($dist <= 500) {
488
+    	$dist_dif = 50;
489
+    }
490
+    if ($dist <= 100) {
491
+    	$dist_dif = 10;
492
+    }
493
+    if ($dist <= 50) {
494
+    	$dist_dif = 5;
495
+    }
483 496
 
484 497
     ?>
485 498
     <script type="text/javascript">
@@ -541,18 +554,23 @@  discard block
 block discarded – undo
541 554
 {
542 555
 
543 556
     $default_search_for_text = SEARCH_FOR_TEXT;
544
-    if (get_option('geodir_search_field_default_text'))
545
-        $default_search_for_text = __(get_option('geodir_search_field_default_text'), 'geodirectory');
557
+    if (get_option('geodir_search_field_default_text')) {
558
+            $default_search_for_text = __(get_option('geodir_search_field_default_text'), 'geodirectory');
559
+    }
546 560
 
547 561
     $default_near_text = NEAR_TEXT;
548
-    if (get_option('geodir_near_field_default_text'))
549
-        $default_near_text = __(get_option('geodir_near_field_default_text'), 'geodirectory');
562
+    if (get_option('geodir_near_field_default_text')) {
563
+            $default_near_text = __(get_option('geodir_near_field_default_text'), 'geodirectory');
564
+    }
550 565
 
551 566
     ?>
552 567
 
553 568
 
554 569
     <script type="text/javascript">
555
-        var default_location = '<?php if($search_location = geodir_get_default_location())  echo $search_location->city ;?>';
570
+        var default_location = '<?php if($search_location = geodir_get_default_location()) {
571
+	echo $search_location->city ;
572
+}
573
+?>';
556 574
         var latlng;
557 575
         var address;
558 576
         var dist = 0;
Please login to merge, or discard this patch.
google-api-php-client/src/contrib/Google_AnalyticsService.php 2 patches
Indentation   +1799 added lines, -1799 removed lines patch added patch discarded remove patch
@@ -36,33 +36,33 @@  discard block
 block discarded – undo
36 36
    */
37 37
   class Google_DataGaServiceResource extends Google_ServiceResource {
38 38
 
39
-    /**
40
-     * Returns Analytics data for a view (profile). (ga.get)
41
-     *
42
-     * @param string $ids Unique table ID for retrieving Analytics data. Table ID is of the form ga:XXXX, where XXXX is the Analytics view (profile) ID.
43
-     * @param string $start_date Start date for fetching Analytics data. All requests should specify a start date formatted as YYYY-MM-DD.
44
-     * @param string $end_date End date for fetching Analytics data. All requests should specify an end date formatted as YYYY-MM-DD.
45
-     * @param string $metrics A comma-separated list of Analytics metrics. E.g., 'ga:visits,ga:pageviews'. At least one metric must be specified.
46
-     * @param array $optParams Optional parameters.
47
-     *
48
-     * @opt_param string dimensions A comma-separated list of Analytics dimensions. E.g., 'ga:browser,ga:city'.
49
-     * @opt_param string filters A comma-separated list of dimension or metric filters to be applied to Analytics data.
50
-     * @opt_param int max-results The maximum number of entries to include in this feed.
51
-     * @opt_param string segment An Analytics advanced segment to be applied to data.
52
-     * @opt_param string sort A comma-separated list of dimensions or metrics that determine the sort order for Analytics data.
53
-     * @opt_param int start-index An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
54
-     * @return Google_GaData
55
-     */
56
-    public function get($ids, $start_date, $end_date, $metrics, $optParams = array()) {
57
-      $params = array('ids' => $ids, 'start-date' => $start_date, 'end-date' => $end_date, 'metrics' => $metrics);
58
-      $params = array_merge($params, $optParams);
59
-      $data = $this->__call('get', array($params));
60
-      if ($this->useObjects()) {
61
-        return new Google_GaData($data);
62
-      } else {
63
-        return $data;
64
-      }
65
-    }
39
+	/**
40
+	 * Returns Analytics data for a view (profile). (ga.get)
41
+	 *
42
+	 * @param string $ids Unique table ID for retrieving Analytics data. Table ID is of the form ga:XXXX, where XXXX is the Analytics view (profile) ID.
43
+	 * @param string $start_date Start date for fetching Analytics data. All requests should specify a start date formatted as YYYY-MM-DD.
44
+	 * @param string $end_date End date for fetching Analytics data. All requests should specify an end date formatted as YYYY-MM-DD.
45
+	 * @param string $metrics A comma-separated list of Analytics metrics. E.g., 'ga:visits,ga:pageviews'. At least one metric must be specified.
46
+	 * @param array $optParams Optional parameters.
47
+	 *
48
+	 * @opt_param string dimensions A comma-separated list of Analytics dimensions. E.g., 'ga:browser,ga:city'.
49
+	 * @opt_param string filters A comma-separated list of dimension or metric filters to be applied to Analytics data.
50
+	 * @opt_param int max-results The maximum number of entries to include in this feed.
51
+	 * @opt_param string segment An Analytics advanced segment to be applied to data.
52
+	 * @opt_param string sort A comma-separated list of dimensions or metrics that determine the sort order for Analytics data.
53
+	 * @opt_param int start-index An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
54
+	 * @return Google_GaData
55
+	 */
56
+	public function get($ids, $start_date, $end_date, $metrics, $optParams = array()) {
57
+	  $params = array('ids' => $ids, 'start-date' => $start_date, 'end-date' => $end_date, 'metrics' => $metrics);
58
+	  $params = array_merge($params, $optParams);
59
+	  $data = $this->__call('get', array($params));
60
+	  if ($this->useObjects()) {
61
+		return new Google_GaData($data);
62
+	  } else {
63
+		return $data;
64
+	  }
65
+	}
66 66
   }
67 67
   /**
68 68
    * The "mcf" collection of methods.
@@ -74,32 +74,32 @@  discard block
 block discarded – undo
74 74
    */
75 75
   class Google_DataMcfServiceResource extends Google_ServiceResource {
76 76
 
77
-    /**
78
-     * Returns Analytics Multi-Channel Funnels data for a view (profile). (mcf.get)
79
-     *
80
-     * @param string $ids Unique table ID for retrieving Analytics data. Table ID is of the form ga:XXXX, where XXXX is the Analytics view (profile) ID.
81
-     * @param string $start_date Start date for fetching Analytics data. All requests should specify a start date formatted as YYYY-MM-DD.
82
-     * @param string $end_date End date for fetching Analytics data. All requests should specify an end date formatted as YYYY-MM-DD.
83
-     * @param string $metrics A comma-separated list of Multi-Channel Funnels metrics. E.g., 'mcf:totalConversions,mcf:totalConversionValue'. At least one metric must be specified.
84
-     * @param array $optParams Optional parameters.
85
-     *
86
-     * @opt_param string dimensions A comma-separated list of Multi-Channel Funnels dimensions. E.g., 'mcf:source,mcf:medium'.
87
-     * @opt_param string filters A comma-separated list of dimension or metric filters to be applied to the Analytics data.
88
-     * @opt_param int max-results The maximum number of entries to include in this feed.
89
-     * @opt_param string sort A comma-separated list of dimensions or metrics that determine the sort order for the Analytics data.
90
-     * @opt_param int start-index An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
91
-     * @return Google_McfData
92
-     */
93
-    public function get($ids, $start_date, $end_date, $metrics, $optParams = array()) {
94
-      $params = array('ids' => $ids, 'start-date' => $start_date, 'end-date' => $end_date, 'metrics' => $metrics);
95
-      $params = array_merge($params, $optParams);
96
-      $data = $this->__call('get', array($params));
97
-      if ($this->useObjects()) {
98
-        return new Google_McfData($data);
99
-      } else {
100
-        return $data;
101
-      }
102
-    }
77
+	/**
78
+	 * Returns Analytics Multi-Channel Funnels data for a view (profile). (mcf.get)
79
+	 *
80
+	 * @param string $ids Unique table ID for retrieving Analytics data. Table ID is of the form ga:XXXX, where XXXX is the Analytics view (profile) ID.
81
+	 * @param string $start_date Start date for fetching Analytics data. All requests should specify a start date formatted as YYYY-MM-DD.
82
+	 * @param string $end_date End date for fetching Analytics data. All requests should specify an end date formatted as YYYY-MM-DD.
83
+	 * @param string $metrics A comma-separated list of Multi-Channel Funnels metrics. E.g., 'mcf:totalConversions,mcf:totalConversionValue'. At least one metric must be specified.
84
+	 * @param array $optParams Optional parameters.
85
+	 *
86
+	 * @opt_param string dimensions A comma-separated list of Multi-Channel Funnels dimensions. E.g., 'mcf:source,mcf:medium'.
87
+	 * @opt_param string filters A comma-separated list of dimension or metric filters to be applied to the Analytics data.
88
+	 * @opt_param int max-results The maximum number of entries to include in this feed.
89
+	 * @opt_param string sort A comma-separated list of dimensions or metrics that determine the sort order for the Analytics data.
90
+	 * @opt_param int start-index An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
91
+	 * @return Google_McfData
92
+	 */
93
+	public function get($ids, $start_date, $end_date, $metrics, $optParams = array()) {
94
+	  $params = array('ids' => $ids, 'start-date' => $start_date, 'end-date' => $end_date, 'metrics' => $metrics);
95
+	  $params = array_merge($params, $optParams);
96
+	  $data = $this->__call('get', array($params));
97
+	  if ($this->useObjects()) {
98
+		return new Google_McfData($data);
99
+	  } else {
100
+		return $data;
101
+	  }
102
+	}
103 103
   }
104 104
   /**
105 105
    * The "realtime" collection of methods.
@@ -111,29 +111,29 @@  discard block
 block discarded – undo
111 111
    */
112 112
   class Google_DataRealtimeServiceResource extends Google_ServiceResource {
113 113
 
114
-    /**
115
-     * Returns real time data for a view (profile). (realtime.get)
116
-     *
117
-     * @param string $ids Unique table ID for retrieving real time data. Table ID is of the form ga:XXXX, where XXXX is the Analytics view (profile) ID.
118
-     * @param string $metrics A comma-separated list of real time metrics. E.g., 'ga:activeVisitors'. At least one metric must be specified.
119
-     * @param array $optParams Optional parameters.
120
-     *
121
-     * @opt_param string dimensions A comma-separated list of real time dimensions. E.g., 'ga:medium,ga:city'.
122
-     * @opt_param string filters A comma-separated list of dimension or metric filters to be applied to real time data.
123
-     * @opt_param int max-results The maximum number of entries to include in this feed.
124
-     * @opt_param string sort A comma-separated list of dimensions or metrics that determine the sort order for real time data.
125
-     * @return Google_RealtimeData
126
-     */
127
-    public function get($ids, $metrics, $optParams = array()) {
128
-      $params = array('ids' => $ids, 'metrics' => $metrics);
129
-      $params = array_merge($params, $optParams);
130
-      $data = $this->__call('get', array($params));
131
-      if ($this->useObjects()) {
132
-        return new Google_RealtimeData($data);
133
-      } else {
134
-        return $data;
135
-      }
136
-    }
114
+	/**
115
+	 * Returns real time data for a view (profile). (realtime.get)
116
+	 *
117
+	 * @param string $ids Unique table ID for retrieving real time data. Table ID is of the form ga:XXXX, where XXXX is the Analytics view (profile) ID.
118
+	 * @param string $metrics A comma-separated list of real time metrics. E.g., 'ga:activeVisitors'. At least one metric must be specified.
119
+	 * @param array $optParams Optional parameters.
120
+	 *
121
+	 * @opt_param string dimensions A comma-separated list of real time dimensions. E.g., 'ga:medium,ga:city'.
122
+	 * @opt_param string filters A comma-separated list of dimension or metric filters to be applied to real time data.
123
+	 * @opt_param int max-results The maximum number of entries to include in this feed.
124
+	 * @opt_param string sort A comma-separated list of dimensions or metrics that determine the sort order for real time data.
125
+	 * @return Google_RealtimeData
126
+	 */
127
+	public function get($ids, $metrics, $optParams = array()) {
128
+	  $params = array('ids' => $ids, 'metrics' => $metrics);
129
+	  $params = array_merge($params, $optParams);
130
+	  $data = $this->__call('get', array($params));
131
+	  if ($this->useObjects()) {
132
+		return new Google_RealtimeData($data);
133
+	  } else {
134
+		return $data;
135
+	  }
136
+	}
137 137
   }
138 138
 
139 139
   /**
@@ -158,77 +158,77 @@  discard block
 block discarded – undo
158 158
    */
159 159
   class Google_ManagementAccountUserLinksServiceResource extends Google_ServiceResource {
160 160
 
161
-    /**
162
-     * Removes a user from the given account. (accountUserLinks.delete)
163
-     *
164
-     * @param string $accountId Account ID to delete the user link for.
165
-     * @param string $linkId Link ID to delete the user link for.
166
-     * @param array $optParams Optional parameters.
167
-     */
168
-    public function delete($accountId, $linkId, $optParams = array()) {
169
-      $params = array('accountId' => $accountId, 'linkId' => $linkId);
170
-      $params = array_merge($params, $optParams);
171
-      $data = $this->__call('delete', array($params));
172
-      return $data;
173
-    }
174
-    /**
175
-     * Adds a new user to the given account. (accountUserLinks.insert)
176
-     *
177
-     * @param string $accountId Account ID to create the user link for.
178
-     * @param Google_EntityUserLink $postBody
179
-     * @param array $optParams Optional parameters.
180
-     * @return Google_EntityUserLink
181
-     */
182
-    public function insert($accountId, Google_EntityUserLink $postBody, $optParams = array()) {
183
-      $params = array('accountId' => $accountId, 'postBody' => $postBody);
184
-      $params = array_merge($params, $optParams);
185
-      $data = $this->__call('insert', array($params));
186
-      if ($this->useObjects()) {
187
-        return new Google_EntityUserLink($data);
188
-      } else {
189
-        return $data;
190
-      }
191
-    }
192
-    /**
193
-     * Lists account-user links for a given account. (accountUserLinks.list)
194
-     *
195
-     * @param string $accountId Account ID to retrieve the user links for.
196
-     * @param array $optParams Optional parameters.
197
-     *
198
-     * @opt_param int max-results The maximum number of account-user links to include in this response.
199
-     * @opt_param int start-index An index of the first account-user link to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
200
-     * @return Google_EntityUserLinks
201
-     */
202
-    public function listManagementAccountUserLinks($accountId, $optParams = array()) {
203
-      $params = array('accountId' => $accountId);
204
-      $params = array_merge($params, $optParams);
205
-      $data = $this->__call('list', array($params));
206
-      if ($this->useObjects()) {
207
-        return new Google_EntityUserLinks($data);
208
-      } else {
209
-        return $data;
210
-      }
211
-    }
212
-    /**
213
-     * Updates permissions for an existing user on the given account.
214
-     * (accountUserLinks.update)
215
-     *
216
-     * @param string $accountId Account ID to update the account-user link for.
217
-     * @param string $linkId Link ID to update the account-user link for.
218
-     * @param Google_EntityUserLink $postBody
219
-     * @param array $optParams Optional parameters.
220
-     * @return Google_EntityUserLink
221
-     */
222
-    public function update($accountId, $linkId, Google_EntityUserLink $postBody, $optParams = array()) {
223
-      $params = array('accountId' => $accountId, 'linkId' => $linkId, 'postBody' => $postBody);
224
-      $params = array_merge($params, $optParams);
225
-      $data = $this->__call('update', array($params));
226
-      if ($this->useObjects()) {
227
-        return new Google_EntityUserLink($data);
228
-      } else {
229
-        return $data;
230
-      }
231
-    }
161
+	/**
162
+	 * Removes a user from the given account. (accountUserLinks.delete)
163
+	 *
164
+	 * @param string $accountId Account ID to delete the user link for.
165
+	 * @param string $linkId Link ID to delete the user link for.
166
+	 * @param array $optParams Optional parameters.
167
+	 */
168
+	public function delete($accountId, $linkId, $optParams = array()) {
169
+	  $params = array('accountId' => $accountId, 'linkId' => $linkId);
170
+	  $params = array_merge($params, $optParams);
171
+	  $data = $this->__call('delete', array($params));
172
+	  return $data;
173
+	}
174
+	/**
175
+	 * Adds a new user to the given account. (accountUserLinks.insert)
176
+	 *
177
+	 * @param string $accountId Account ID to create the user link for.
178
+	 * @param Google_EntityUserLink $postBody
179
+	 * @param array $optParams Optional parameters.
180
+	 * @return Google_EntityUserLink
181
+	 */
182
+	public function insert($accountId, Google_EntityUserLink $postBody, $optParams = array()) {
183
+	  $params = array('accountId' => $accountId, 'postBody' => $postBody);
184
+	  $params = array_merge($params, $optParams);
185
+	  $data = $this->__call('insert', array($params));
186
+	  if ($this->useObjects()) {
187
+		return new Google_EntityUserLink($data);
188
+	  } else {
189
+		return $data;
190
+	  }
191
+	}
192
+	/**
193
+	 * Lists account-user links for a given account. (accountUserLinks.list)
194
+	 *
195
+	 * @param string $accountId Account ID to retrieve the user links for.
196
+	 * @param array $optParams Optional parameters.
197
+	 *
198
+	 * @opt_param int max-results The maximum number of account-user links to include in this response.
199
+	 * @opt_param int start-index An index of the first account-user link to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
200
+	 * @return Google_EntityUserLinks
201
+	 */
202
+	public function listManagementAccountUserLinks($accountId, $optParams = array()) {
203
+	  $params = array('accountId' => $accountId);
204
+	  $params = array_merge($params, $optParams);
205
+	  $data = $this->__call('list', array($params));
206
+	  if ($this->useObjects()) {
207
+		return new Google_EntityUserLinks($data);
208
+	  } else {
209
+		return $data;
210
+	  }
211
+	}
212
+	/**
213
+	 * Updates permissions for an existing user on the given account.
214
+	 * (accountUserLinks.update)
215
+	 *
216
+	 * @param string $accountId Account ID to update the account-user link for.
217
+	 * @param string $linkId Link ID to update the account-user link for.
218
+	 * @param Google_EntityUserLink $postBody
219
+	 * @param array $optParams Optional parameters.
220
+	 * @return Google_EntityUserLink
221
+	 */
222
+	public function update($accountId, $linkId, Google_EntityUserLink $postBody, $optParams = array()) {
223
+	  $params = array('accountId' => $accountId, 'linkId' => $linkId, 'postBody' => $postBody);
224
+	  $params = array_merge($params, $optParams);
225
+	  $data = $this->__call('update', array($params));
226
+	  if ($this->useObjects()) {
227
+		return new Google_EntityUserLink($data);
228
+	  } else {
229
+		return $data;
230
+	  }
231
+	}
232 232
   }
233 233
   /**
234 234
    * The "accounts" collection of methods.
@@ -240,25 +240,25 @@  discard block
 block discarded – undo
240 240
    */
241 241
   class Google_ManagementAccountsServiceResource extends Google_ServiceResource {
242 242
 
243
-    /**
244
-     * Lists all accounts to which the user has access. (accounts.list)
245
-     *
246
-     * @param array $optParams Optional parameters.
247
-     *
248
-     * @opt_param int max-results The maximum number of accounts to include in this response.
249
-     * @opt_param int start-index An index of the first account to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
250
-     * @return Google_Accounts
251
-     */
252
-    public function listManagementAccounts($optParams = array()) {
253
-      $params = array();
254
-      $params = array_merge($params, $optParams);
255
-      $data = $this->__call('list', array($params));
256
-      if ($this->useObjects()) {
257
-        return new Google_Accounts($data);
258
-      } else {
259
-        return $data;
260
-      }
261
-    }
243
+	/**
244
+	 * Lists all accounts to which the user has access. (accounts.list)
245
+	 *
246
+	 * @param array $optParams Optional parameters.
247
+	 *
248
+	 * @opt_param int max-results The maximum number of accounts to include in this response.
249
+	 * @opt_param int start-index An index of the first account to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
250
+	 * @return Google_Accounts
251
+	 */
252
+	public function listManagementAccounts($optParams = array()) {
253
+	  $params = array();
254
+	  $params = array_merge($params, $optParams);
255
+	  $data = $this->__call('list', array($params));
256
+	  if ($this->useObjects()) {
257
+		return new Google_Accounts($data);
258
+	  } else {
259
+		return $data;
260
+	  }
261
+	}
262 262
   }
263 263
   /**
264 264
    * The "customDataSources" collection of methods.
@@ -270,28 +270,28 @@  discard block
 block discarded – undo
270 270
    */
271 271
   class Google_ManagementCustomDataSourcesServiceResource extends Google_ServiceResource {
272 272
 
273
-    /**
274
-     * List custom data sources to which the user has access.
275
-     * (customDataSources.list)
276
-     *
277
-     * @param string $accountId Account Id for the custom data sources to retrieve.
278
-     * @param string $webPropertyId Web property Id for the custom data sources to retrieve.
279
-     * @param array $optParams Optional parameters.
280
-     *
281
-     * @opt_param int max-results The maximum number of custom data sources to include in this response.
282
-     * @opt_param int start-index A 1-based index of the first custom data source to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
283
-     * @return Google_CustomDataSources
284
-     */
285
-    public function listManagementCustomDataSources($accountId, $webPropertyId, $optParams = array()) {
286
-      $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId);
287
-      $params = array_merge($params, $optParams);
288
-      $data = $this->__call('list', array($params));
289
-      if ($this->useObjects()) {
290
-        return new Google_CustomDataSources($data);
291
-      } else {
292
-        return $data;
293
-      }
294
-    }
273
+	/**
274
+	 * List custom data sources to which the user has access.
275
+	 * (customDataSources.list)
276
+	 *
277
+	 * @param string $accountId Account Id for the custom data sources to retrieve.
278
+	 * @param string $webPropertyId Web property Id for the custom data sources to retrieve.
279
+	 * @param array $optParams Optional parameters.
280
+	 *
281
+	 * @opt_param int max-results The maximum number of custom data sources to include in this response.
282
+	 * @opt_param int start-index A 1-based index of the first custom data source to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
283
+	 * @return Google_CustomDataSources
284
+	 */
285
+	public function listManagementCustomDataSources($accountId, $webPropertyId, $optParams = array()) {
286
+	  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId);
287
+	  $params = array_merge($params, $optParams);
288
+	  $data = $this->__call('list', array($params));
289
+	  if ($this->useObjects()) {
290
+		return new Google_CustomDataSources($data);
291
+	  } else {
292
+		return $data;
293
+	  }
294
+	}
295 295
   }
296 296
   /**
297 297
    * The "dailyUploads" collection of methods.
@@ -303,70 +303,70 @@  discard block
 block discarded – undo
303 303
    */
304 304
   class Google_ManagementDailyUploadsServiceResource extends Google_ServiceResource {
305 305
 
306
-    /**
307
-     * Delete uploaded data for the given date. (dailyUploads.delete)
308
-     *
309
-     * @param string $accountId Account Id associated with daily upload delete.
310
-     * @param string $webPropertyId Web property Id associated with daily upload delete.
311
-     * @param string $customDataSourceId Custom data source Id associated with daily upload delete.
312
-     * @param string $date Date for which data is to be deleted. Date should be formatted as YYYY-MM-DD.
313
-     * @param string $type Type of data for this delete.
314
-     * @param array $optParams Optional parameters.
315
-     */
316
-    public function delete($accountId, $webPropertyId, $customDataSourceId, $date, $type, $optParams = array()) {
317
-      $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'date' => $date, 'type' => $type);
318
-      $params = array_merge($params, $optParams);
319
-      $data = $this->__call('delete', array($params));
320
-      return $data;
321
-    }
322
-    /**
323
-     * List daily uploads to which the user has access. (dailyUploads.list)
324
-     *
325
-     * @param string $accountId Account Id for the daily uploads to retrieve.
326
-     * @param string $webPropertyId Web property Id for the daily uploads to retrieve.
327
-     * @param string $customDataSourceId Custom data source Id for daily uploads to retrieve.
328
-     * @param string $start_date Start date of the form YYYY-MM-DD.
329
-     * @param string $end_date End date of the form YYYY-MM-DD.
330
-     * @param array $optParams Optional parameters.
331
-     *
332
-     * @opt_param int max-results The maximum number of custom data sources to include in this response.
333
-     * @opt_param int start-index A 1-based index of the first daily upload to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
334
-     * @return Google_DailyUploads
335
-     */
336
-    public function listManagementDailyUploads($accountId, $webPropertyId, $customDataSourceId, $start_date, $end_date, $optParams = array()) {
337
-      $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'start-date' => $start_date, 'end-date' => $end_date);
338
-      $params = array_merge($params, $optParams);
339
-      $data = $this->__call('list', array($params));
340
-      if ($this->useObjects()) {
341
-        return new Google_DailyUploads($data);
342
-      } else {
343
-        return $data;
344
-      }
345
-    }
346
-    /**
347
-     * Update/Overwrite data for a custom data source. (dailyUploads.upload)
348
-     *
349
-     * @param string $accountId Account Id associated with daily upload.
350
-     * @param string $webPropertyId Web property Id associated with daily upload.
351
-     * @param string $customDataSourceId Custom data source Id to which the data being uploaded belongs.
352
-     * @param string $date Date for which data is uploaded. Date should be formatted as YYYY-MM-DD.
353
-     * @param int $appendNumber Append number for this upload indexed from 1.
354
-     * @param string $type Type of data for this upload.
355
-     * @param array $optParams Optional parameters.
356
-     *
357
-     * @opt_param bool reset Reset/Overwrite all previous appends for this date and start over with this file as the first upload.
358
-     * @return Google_DailyUploadAppend
359
-     */
360
-    public function upload($accountId, $webPropertyId, $customDataSourceId, $date, $appendNumber, $type, $optParams = array()) {
361
-      $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'date' => $date, 'appendNumber' => $appendNumber, 'type' => $type);
362
-      $params = array_merge($params, $optParams);
363
-      $data = $this->__call('upload', array($params));
364
-      if ($this->useObjects()) {
365
-        return new Google_DailyUploadAppend($data);
366
-      } else {
367
-        return $data;
368
-      }
369
-    }
306
+	/**
307
+	 * Delete uploaded data for the given date. (dailyUploads.delete)
308
+	 *
309
+	 * @param string $accountId Account Id associated with daily upload delete.
310
+	 * @param string $webPropertyId Web property Id associated with daily upload delete.
311
+	 * @param string $customDataSourceId Custom data source Id associated with daily upload delete.
312
+	 * @param string $date Date for which data is to be deleted. Date should be formatted as YYYY-MM-DD.
313
+	 * @param string $type Type of data for this delete.
314
+	 * @param array $optParams Optional parameters.
315
+	 */
316
+	public function delete($accountId, $webPropertyId, $customDataSourceId, $date, $type, $optParams = array()) {
317
+	  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'date' => $date, 'type' => $type);
318
+	  $params = array_merge($params, $optParams);
319
+	  $data = $this->__call('delete', array($params));
320
+	  return $data;
321
+	}
322
+	/**
323
+	 * List daily uploads to which the user has access. (dailyUploads.list)
324
+	 *
325
+	 * @param string $accountId Account Id for the daily uploads to retrieve.
326
+	 * @param string $webPropertyId Web property Id for the daily uploads to retrieve.
327
+	 * @param string $customDataSourceId Custom data source Id for daily uploads to retrieve.
328
+	 * @param string $start_date Start date of the form YYYY-MM-DD.
329
+	 * @param string $end_date End date of the form YYYY-MM-DD.
330
+	 * @param array $optParams Optional parameters.
331
+	 *
332
+	 * @opt_param int max-results The maximum number of custom data sources to include in this response.
333
+	 * @opt_param int start-index A 1-based index of the first daily upload to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
334
+	 * @return Google_DailyUploads
335
+	 */
336
+	public function listManagementDailyUploads($accountId, $webPropertyId, $customDataSourceId, $start_date, $end_date, $optParams = array()) {
337
+	  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'start-date' => $start_date, 'end-date' => $end_date);
338
+	  $params = array_merge($params, $optParams);
339
+	  $data = $this->__call('list', array($params));
340
+	  if ($this->useObjects()) {
341
+		return new Google_DailyUploads($data);
342
+	  } else {
343
+		return $data;
344
+	  }
345
+	}
346
+	/**
347
+	 * Update/Overwrite data for a custom data source. (dailyUploads.upload)
348
+	 *
349
+	 * @param string $accountId Account Id associated with daily upload.
350
+	 * @param string $webPropertyId Web property Id associated with daily upload.
351
+	 * @param string $customDataSourceId Custom data source Id to which the data being uploaded belongs.
352
+	 * @param string $date Date for which data is uploaded. Date should be formatted as YYYY-MM-DD.
353
+	 * @param int $appendNumber Append number for this upload indexed from 1.
354
+	 * @param string $type Type of data for this upload.
355
+	 * @param array $optParams Optional parameters.
356
+	 *
357
+	 * @opt_param bool reset Reset/Overwrite all previous appends for this date and start over with this file as the first upload.
358
+	 * @return Google_DailyUploadAppend
359
+	 */
360
+	public function upload($accountId, $webPropertyId, $customDataSourceId, $date, $appendNumber, $type, $optParams = array()) {
361
+	  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'date' => $date, 'appendNumber' => $appendNumber, 'type' => $type);
362
+	  $params = array_merge($params, $optParams);
363
+	  $data = $this->__call('upload', array($params));
364
+	  if ($this->useObjects()) {
365
+		return new Google_DailyUploadAppend($data);
366
+	  } else {
367
+		return $data;
368
+	  }
369
+	}
370 370
   }
371 371
   /**
372 372
    * The "experiments" collection of methods.
@@ -378,126 +378,126 @@  discard block
 block discarded – undo
378 378
    */
379 379
   class Google_ManagementExperimentsServiceResource extends Google_ServiceResource {
380 380
 
381
-    /**
382
-     * Delete an experiment. (experiments.delete)
383
-     *
384
-     * @param string $accountId Account ID to which the experiment belongs
385
-     * @param string $webPropertyId Web property ID to which the experiment belongs
386
-     * @param string $profileId View (Profile) ID to which the experiment belongs
387
-     * @param string $experimentId ID of the experiment to delete
388
-     * @param array $optParams Optional parameters.
389
-     */
390
-    public function delete($accountId, $webPropertyId, $profileId, $experimentId, $optParams = array()) {
391
-      $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'experimentId' => $experimentId);
392
-      $params = array_merge($params, $optParams);
393
-      $data = $this->__call('delete', array($params));
394
-      return $data;
395
-    }
396
-    /**
397
-     * Returns an experiment to which the user has access. (experiments.get)
398
-     *
399
-     * @param string $accountId Account ID to retrieve the experiment for.
400
-     * @param string $webPropertyId Web property ID to retrieve the experiment for.
401
-     * @param string $profileId View (Profile) ID to retrieve the experiment for.
402
-     * @param string $experimentId Experiment ID to retrieve the experiment for.
403
-     * @param array $optParams Optional parameters.
404
-     * @return Google_Experiment
405
-     */
406
-    public function get($accountId, $webPropertyId, $profileId, $experimentId, $optParams = array()) {
407
-      $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'experimentId' => $experimentId);
408
-      $params = array_merge($params, $optParams);
409
-      $data = $this->__call('get', array($params));
410
-      if ($this->useObjects()) {
411
-        return new Google_Experiment($data);
412
-      } else {
413
-        return $data;
414
-      }
415
-    }
416
-    /**
417
-     * Create a new experiment. (experiments.insert)
418
-     *
419
-     * @param string $accountId Account ID to create the experiment for.
420
-     * @param string $webPropertyId Web property ID to create the experiment for.
421
-     * @param string $profileId View (Profile) ID to create the experiment for.
422
-     * @param Google_Experiment $postBody
423
-     * @param array $optParams Optional parameters.
424
-     * @return Google_Experiment
425
-     */
426
-    public function insert($accountId, $webPropertyId, $profileId, Google_Experiment $postBody, $optParams = array()) {
427
-      $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody);
428
-      $params = array_merge($params, $optParams);
429
-      $data = $this->__call('insert', array($params));
430
-      if ($this->useObjects()) {
431
-        return new Google_Experiment($data);
432
-      } else {
433
-        return $data;
434
-      }
435
-    }
436
-    /**
437
-     * Lists experiments to which the user has access. (experiments.list)
438
-     *
439
-     * @param string $accountId Account ID to retrieve experiments for.
440
-     * @param string $webPropertyId Web property ID to retrieve experiments for.
441
-     * @param string $profileId View (Profile) ID to retrieve experiments for.
442
-     * @param array $optParams Optional parameters.
443
-     *
444
-     * @opt_param int max-results The maximum number of experiments to include in this response.
445
-     * @opt_param int start-index An index of the first experiment to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
446
-     * @return Google_Experiments
447
-     */
448
-    public function listManagementExperiments($accountId, $webPropertyId, $profileId, $optParams = array()) {
449
-      $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId);
450
-      $params = array_merge($params, $optParams);
451
-      $data = $this->__call('list', array($params));
452
-      if ($this->useObjects()) {
453
-        return new Google_Experiments($data);
454
-      } else {
455
-        return $data;
456
-      }
457
-    }
458
-    /**
459
-     * Update an existing experiment. This method supports patch semantics.
460
-     * (experiments.patch)
461
-     *
462
-     * @param string $accountId Account ID of the experiment to update.
463
-     * @param string $webPropertyId Web property ID of the experiment to update.
464
-     * @param string $profileId View (Profile) ID of the experiment to update.
465
-     * @param string $experimentId Experiment ID of the experiment to update.
466
-     * @param Google_Experiment $postBody
467
-     * @param array $optParams Optional parameters.
468
-     * @return Google_Experiment
469
-     */
470
-    public function patch($accountId, $webPropertyId, $profileId, $experimentId, Google_Experiment $postBody, $optParams = array()) {
471
-      $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'experimentId' => $experimentId, 'postBody' => $postBody);
472
-      $params = array_merge($params, $optParams);
473
-      $data = $this->__call('patch', array($params));
474
-      if ($this->useObjects()) {
475
-        return new Google_Experiment($data);
476
-      } else {
477
-        return $data;
478
-      }
479
-    }
480
-    /**
481
-     * Update an existing experiment. (experiments.update)
482
-     *
483
-     * @param string $accountId Account ID of the experiment to update.
484
-     * @param string $webPropertyId Web property ID of the experiment to update.
485
-     * @param string $profileId View (Profile) ID of the experiment to update.
486
-     * @param string $experimentId Experiment ID of the experiment to update.
487
-     * @param Google_Experiment $postBody
488
-     * @param array $optParams Optional parameters.
489
-     * @return Google_Experiment
490
-     */
491
-    public function update($accountId, $webPropertyId, $profileId, $experimentId, Google_Experiment $postBody, $optParams = array()) {
492
-      $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'experimentId' => $experimentId, 'postBody' => $postBody);
493
-      $params = array_merge($params, $optParams);
494
-      $data = $this->__call('update', array($params));
495
-      if ($this->useObjects()) {
496
-        return new Google_Experiment($data);
497
-      } else {
498
-        return $data;
499
-      }
500
-    }
381
+	/**
382
+	 * Delete an experiment. (experiments.delete)
383
+	 *
384
+	 * @param string $accountId Account ID to which the experiment belongs
385
+	 * @param string $webPropertyId Web property ID to which the experiment belongs
386
+	 * @param string $profileId View (Profile) ID to which the experiment belongs
387
+	 * @param string $experimentId ID of the experiment to delete
388
+	 * @param array $optParams Optional parameters.
389
+	 */
390
+	public function delete($accountId, $webPropertyId, $profileId, $experimentId, $optParams = array()) {
391
+	  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'experimentId' => $experimentId);
392
+	  $params = array_merge($params, $optParams);
393
+	  $data = $this->__call('delete', array($params));
394
+	  return $data;
395
+	}
396
+	/**
397
+	 * Returns an experiment to which the user has access. (experiments.get)
398
+	 *
399
+	 * @param string $accountId Account ID to retrieve the experiment for.
400
+	 * @param string $webPropertyId Web property ID to retrieve the experiment for.
401
+	 * @param string $profileId View (Profile) ID to retrieve the experiment for.
402
+	 * @param string $experimentId Experiment ID to retrieve the experiment for.
403
+	 * @param array $optParams Optional parameters.
404
+	 * @return Google_Experiment
405
+	 */
406
+	public function get($accountId, $webPropertyId, $profileId, $experimentId, $optParams = array()) {
407
+	  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'experimentId' => $experimentId);
408
+	  $params = array_merge($params, $optParams);
409
+	  $data = $this->__call('get', array($params));
410
+	  if ($this->useObjects()) {
411
+		return new Google_Experiment($data);
412
+	  } else {
413
+		return $data;
414
+	  }
415
+	}
416
+	/**
417
+	 * Create a new experiment. (experiments.insert)
418
+	 *
419
+	 * @param string $accountId Account ID to create the experiment for.
420
+	 * @param string $webPropertyId Web property ID to create the experiment for.
421
+	 * @param string $profileId View (Profile) ID to create the experiment for.
422
+	 * @param Google_Experiment $postBody
423
+	 * @param array $optParams Optional parameters.
424
+	 * @return Google_Experiment
425
+	 */
426
+	public function insert($accountId, $webPropertyId, $profileId, Google_Experiment $postBody, $optParams = array()) {
427
+	  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody);
428
+	  $params = array_merge($params, $optParams);
429
+	  $data = $this->__call('insert', array($params));
430
+	  if ($this->useObjects()) {
431
+		return new Google_Experiment($data);
432
+	  } else {
433
+		return $data;
434
+	  }
435
+	}
436
+	/**
437
+	 * Lists experiments to which the user has access. (experiments.list)
438
+	 *
439
+	 * @param string $accountId Account ID to retrieve experiments for.
440
+	 * @param string $webPropertyId Web property ID to retrieve experiments for.
441
+	 * @param string $profileId View (Profile) ID to retrieve experiments for.
442
+	 * @param array $optParams Optional parameters.
443
+	 *
444
+	 * @opt_param int max-results The maximum number of experiments to include in this response.
445
+	 * @opt_param int start-index An index of the first experiment to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
446
+	 * @return Google_Experiments
447
+	 */
448
+	public function listManagementExperiments($accountId, $webPropertyId, $profileId, $optParams = array()) {
449
+	  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId);
450
+	  $params = array_merge($params, $optParams);
451
+	  $data = $this->__call('list', array($params));
452
+	  if ($this->useObjects()) {
453
+		return new Google_Experiments($data);
454
+	  } else {
455
+		return $data;
456
+	  }
457
+	}
458
+	/**
459
+	 * Update an existing experiment. This method supports patch semantics.
460
+	 * (experiments.patch)
461
+	 *
462
+	 * @param string $accountId Account ID of the experiment to update.
463
+	 * @param string $webPropertyId Web property ID of the experiment to update.
464
+	 * @param string $profileId View (Profile) ID of the experiment to update.
465
+	 * @param string $experimentId Experiment ID of the experiment to update.
466
+	 * @param Google_Experiment $postBody
467
+	 * @param array $optParams Optional parameters.
468
+	 * @return Google_Experiment
469
+	 */
470
+	public function patch($accountId, $webPropertyId, $profileId, $experimentId, Google_Experiment $postBody, $optParams = array()) {
471
+	  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'experimentId' => $experimentId, 'postBody' => $postBody);
472
+	  $params = array_merge($params, $optParams);
473
+	  $data = $this->__call('patch', array($params));
474
+	  if ($this->useObjects()) {
475
+		return new Google_Experiment($data);
476
+	  } else {
477
+		return $data;
478
+	  }
479
+	}
480
+	/**
481
+	 * Update an existing experiment. (experiments.update)
482
+	 *
483
+	 * @param string $accountId Account ID of the experiment to update.
484
+	 * @param string $webPropertyId Web property ID of the experiment to update.
485
+	 * @param string $profileId View (Profile) ID of the experiment to update.
486
+	 * @param string $experimentId Experiment ID of the experiment to update.
487
+	 * @param Google_Experiment $postBody
488
+	 * @param array $optParams Optional parameters.
489
+	 * @return Google_Experiment
490
+	 */
491
+	public function update($accountId, $webPropertyId, $profileId, $experimentId, Google_Experiment $postBody, $optParams = array()) {
492
+	  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'experimentId' => $experimentId, 'postBody' => $postBody);
493
+	  $params = array_merge($params, $optParams);
494
+	  $data = $this->__call('update', array($params));
495
+	  if ($this->useObjects()) {
496
+		return new Google_Experiment($data);
497
+	  } else {
498
+		return $data;
499
+	  }
500
+	}
501 501
   }
502 502
   /**
503 503
    * The "goals" collection of methods.
@@ -509,111 +509,111 @@  discard block
 block discarded – undo
509 509
    */
510 510
   class Google_ManagementGoalsServiceResource extends Google_ServiceResource {
511 511
 
512
-    /**
513
-     * Gets a goal to which the user has access. (goals.get)
514
-     *
515
-     * @param string $accountId Account ID to retrieve the goal for.
516
-     * @param string $webPropertyId Web property ID to retrieve the goal for.
517
-     * @param string $profileId View (Profile) ID to retrieve the goal for.
518
-     * @param string $goalId Goal ID to retrieve the goal for.
519
-     * @param array $optParams Optional parameters.
520
-     * @return Google_Goal
521
-     */
522
-    public function get($accountId, $webPropertyId, $profileId, $goalId, $optParams = array()) {
523
-      $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'goalId' => $goalId);
524
-      $params = array_merge($params, $optParams);
525
-      $data = $this->__call('get', array($params));
526
-      if ($this->useObjects()) {
527
-        return new Google_Goal($data);
528
-      } else {
529
-        return $data;
530
-      }
531
-    }
532
-    /**
533
-     * Create a new goal. (goals.insert)
534
-     *
535
-     * @param string $accountId Account ID to create the goal for.
536
-     * @param string $webPropertyId Web property ID to create the goal for.
537
-     * @param string $profileId View (Profile) ID to create the goal for.
538
-     * @param Google_Goal $postBody
539
-     * @param array $optParams Optional parameters.
540
-     * @return Google_Goal
541
-     */
542
-    public function insert($accountId, $webPropertyId, $profileId, Google_Goal $postBody, $optParams = array()) {
543
-      $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody);
544
-      $params = array_merge($params, $optParams);
545
-      $data = $this->__call('insert', array($params));
546
-      if ($this->useObjects()) {
547
-        return new Google_Goal($data);
548
-      } else {
549
-        return $data;
550
-      }
551
-    }
552
-    /**
553
-     * Lists goals to which the user has access. (goals.list)
554
-     *
555
-     * @param string $accountId Account ID to retrieve goals for. Can either be a specific account ID or '~all', which refers to all the accounts that user has access to.
556
-     * @param string $webPropertyId Web property ID to retrieve goals for. Can either be a specific web property ID or '~all', which refers to all the web properties that user has access to.
557
-     * @param string $profileId View (Profile) ID to retrieve goals for. Can either be a specific view (profile) ID or '~all', which refers to all the views (profiles) that user has access to.
558
-     * @param array $optParams Optional parameters.
559
-     *
560
-     * @opt_param int max-results The maximum number of goals to include in this response.
561
-     * @opt_param int start-index An index of the first goal to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
562
-     * @return Google_Goals
563
-     */
564
-    public function listManagementGoals($accountId, $webPropertyId, $profileId, $optParams = array()) {
565
-      $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId);
566
-      $params = array_merge($params, $optParams);
567
-      $data = $this->__call('list', array($params));
568
-      if ($this->useObjects()) {
569
-        return new Google_Goals($data);
570
-      } else {
571
-        return $data;
572
-      }
573
-    }
574
-    /**
575
-     * Updates an existing view (profile). This method supports patch semantics.
576
-     * (goals.patch)
577
-     *
578
-     * @param string $accountId Account ID to update the goal.
579
-     * @param string $webPropertyId Web property ID to update the goal.
580
-     * @param string $profileId View (Profile) ID to update the goal.
581
-     * @param string $goalId Index of the goal to be updated.
582
-     * @param Google_Goal $postBody
583
-     * @param array $optParams Optional parameters.
584
-     * @return Google_Goal
585
-     */
586
-    public function patch($accountId, $webPropertyId, $profileId, $goalId, Google_Goal $postBody, $optParams = array()) {
587
-      $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'goalId' => $goalId, 'postBody' => $postBody);
588
-      $params = array_merge($params, $optParams);
589
-      $data = $this->__call('patch', array($params));
590
-      if ($this->useObjects()) {
591
-        return new Google_Goal($data);
592
-      } else {
593
-        return $data;
594
-      }
595
-    }
596
-    /**
597
-     * Updates an existing view (profile). (goals.update)
598
-     *
599
-     * @param string $accountId Account ID to update the goal.
600
-     * @param string $webPropertyId Web property ID to update the goal.
601
-     * @param string $profileId View (Profile) ID to update the goal.
602
-     * @param string $goalId Index of the goal to be updated.
603
-     * @param Google_Goal $postBody
604
-     * @param array $optParams Optional parameters.
605
-     * @return Google_Goal
606
-     */
607
-    public function update($accountId, $webPropertyId, $profileId, $goalId, Google_Goal $postBody, $optParams = array()) {
608
-      $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'goalId' => $goalId, 'postBody' => $postBody);
609
-      $params = array_merge($params, $optParams);
610
-      $data = $this->__call('update', array($params));
611
-      if ($this->useObjects()) {
612
-        return new Google_Goal($data);
613
-      } else {
614
-        return $data;
615
-      }
616
-    }
512
+	/**
513
+	 * Gets a goal to which the user has access. (goals.get)
514
+	 *
515
+	 * @param string $accountId Account ID to retrieve the goal for.
516
+	 * @param string $webPropertyId Web property ID to retrieve the goal for.
517
+	 * @param string $profileId View (Profile) ID to retrieve the goal for.
518
+	 * @param string $goalId Goal ID to retrieve the goal for.
519
+	 * @param array $optParams Optional parameters.
520
+	 * @return Google_Goal
521
+	 */
522
+	public function get($accountId, $webPropertyId, $profileId, $goalId, $optParams = array()) {
523
+	  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'goalId' => $goalId);
524
+	  $params = array_merge($params, $optParams);
525
+	  $data = $this->__call('get', array($params));
526
+	  if ($this->useObjects()) {
527
+		return new Google_Goal($data);
528
+	  } else {
529
+		return $data;
530
+	  }
531
+	}
532
+	/**
533
+	 * Create a new goal. (goals.insert)
534
+	 *
535
+	 * @param string $accountId Account ID to create the goal for.
536
+	 * @param string $webPropertyId Web property ID to create the goal for.
537
+	 * @param string $profileId View (Profile) ID to create the goal for.
538
+	 * @param Google_Goal $postBody
539
+	 * @param array $optParams Optional parameters.
540
+	 * @return Google_Goal
541
+	 */
542
+	public function insert($accountId, $webPropertyId, $profileId, Google_Goal $postBody, $optParams = array()) {
543
+	  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody);
544
+	  $params = array_merge($params, $optParams);
545
+	  $data = $this->__call('insert', array($params));
546
+	  if ($this->useObjects()) {
547
+		return new Google_Goal($data);
548
+	  } else {
549
+		return $data;
550
+	  }
551
+	}
552
+	/**
553
+	 * Lists goals to which the user has access. (goals.list)
554
+	 *
555
+	 * @param string $accountId Account ID to retrieve goals for. Can either be a specific account ID or '~all', which refers to all the accounts that user has access to.
556
+	 * @param string $webPropertyId Web property ID to retrieve goals for. Can either be a specific web property ID or '~all', which refers to all the web properties that user has access to.
557
+	 * @param string $profileId View (Profile) ID to retrieve goals for. Can either be a specific view (profile) ID or '~all', which refers to all the views (profiles) that user has access to.
558
+	 * @param array $optParams Optional parameters.
559
+	 *
560
+	 * @opt_param int max-results The maximum number of goals to include in this response.
561
+	 * @opt_param int start-index An index of the first goal to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
562
+	 * @return Google_Goals
563
+	 */
564
+	public function listManagementGoals($accountId, $webPropertyId, $profileId, $optParams = array()) {
565
+	  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId);
566
+	  $params = array_merge($params, $optParams);
567
+	  $data = $this->__call('list', array($params));
568
+	  if ($this->useObjects()) {
569
+		return new Google_Goals($data);
570
+	  } else {
571
+		return $data;
572
+	  }
573
+	}
574
+	/**
575
+	 * Updates an existing view (profile). This method supports patch semantics.
576
+	 * (goals.patch)
577
+	 *
578
+	 * @param string $accountId Account ID to update the goal.
579
+	 * @param string $webPropertyId Web property ID to update the goal.
580
+	 * @param string $profileId View (Profile) ID to update the goal.
581
+	 * @param string $goalId Index of the goal to be updated.
582
+	 * @param Google_Goal $postBody
583
+	 * @param array $optParams Optional parameters.
584
+	 * @return Google_Goal
585
+	 */
586
+	public function patch($accountId, $webPropertyId, $profileId, $goalId, Google_Goal $postBody, $optParams = array()) {
587
+	  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'goalId' => $goalId, 'postBody' => $postBody);
588
+	  $params = array_merge($params, $optParams);
589
+	  $data = $this->__call('patch', array($params));
590
+	  if ($this->useObjects()) {
591
+		return new Google_Goal($data);
592
+	  } else {
593
+		return $data;
594
+	  }
595
+	}
596
+	/**
597
+	 * Updates an existing view (profile). (goals.update)
598
+	 *
599
+	 * @param string $accountId Account ID to update the goal.
600
+	 * @param string $webPropertyId Web property ID to update the goal.
601
+	 * @param string $profileId View (Profile) ID to update the goal.
602
+	 * @param string $goalId Index of the goal to be updated.
603
+	 * @param Google_Goal $postBody
604
+	 * @param array $optParams Optional parameters.
605
+	 * @return Google_Goal
606
+	 */
607
+	public function update($accountId, $webPropertyId, $profileId, $goalId, Google_Goal $postBody, $optParams = array()) {
608
+	  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'goalId' => $goalId, 'postBody' => $postBody);
609
+	  $params = array_merge($params, $optParams);
610
+	  $data = $this->__call('update', array($params));
611
+	  if ($this->useObjects()) {
612
+		return new Google_Goal($data);
613
+	  } else {
614
+		return $data;
615
+	  }
616
+	}
617 617
   }
618 618
   /**
619 619
    * The "profileUserLinks" collection of methods.
@@ -625,85 +625,85 @@  discard block
 block discarded – undo
625 625
    */
626 626
   class Google_ManagementProfileUserLinksServiceResource extends Google_ServiceResource {
627 627
 
628
-    /**
629
-     * Removes a user from the given view (profile). (profileUserLinks.delete)
630
-     *
631
-     * @param string $accountId Account ID to delete the user link for.
632
-     * @param string $webPropertyId Web Property ID to delete the user link for.
633
-     * @param string $profileId View (Profile) ID to delete the user link for.
634
-     * @param string $linkId Link ID to delete the user link for.
635
-     * @param array $optParams Optional parameters.
636
-     */
637
-    public function delete($accountId, $webPropertyId, $profileId, $linkId, $optParams = array()) {
638
-      $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'linkId' => $linkId);
639
-      $params = array_merge($params, $optParams);
640
-      $data = $this->__call('delete', array($params));
641
-      return $data;
642
-    }
643
-    /**
644
-     * Adds a new user to the given view (profile). (profileUserLinks.insert)
645
-     *
646
-     * @param string $accountId Account ID to create the user link for.
647
-     * @param string $webPropertyId Web Property ID to create the user link for.
648
-     * @param string $profileId View (Profile) ID to create the user link for.
649
-     * @param Google_EntityUserLink $postBody
650
-     * @param array $optParams Optional parameters.
651
-     * @return Google_EntityUserLink
652
-     */
653
-    public function insert($accountId, $webPropertyId, $profileId, Google_EntityUserLink $postBody, $optParams = array()) {
654
-      $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody);
655
-      $params = array_merge($params, $optParams);
656
-      $data = $this->__call('insert', array($params));
657
-      if ($this->useObjects()) {
658
-        return new Google_EntityUserLink($data);
659
-      } else {
660
-        return $data;
661
-      }
662
-    }
663
-    /**
664
-     * Lists profile-user links for a given view (profile). (profileUserLinks.list)
665
-     *
666
-     * @param string $accountId Account ID which the given view (profile) belongs to.
667
-     * @param string $webPropertyId Web Property ID which the given view (profile) belongs to.
668
-     * @param string $profileId View (Profile) ID to retrieve the profile-user links for
669
-     * @param array $optParams Optional parameters.
670
-     *
671
-     * @opt_param int max-results The maximum number of profile-user links to include in this response.
672
-     * @opt_param int start-index An index of the first profile-user link to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
673
-     * @return Google_EntityUserLinks
674
-     */
675
-    public function listManagementProfileUserLinks($accountId, $webPropertyId, $profileId, $optParams = array()) {
676
-      $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId);
677
-      $params = array_merge($params, $optParams);
678
-      $data = $this->__call('list', array($params));
679
-      if ($this->useObjects()) {
680
-        return new Google_EntityUserLinks($data);
681
-      } else {
682
-        return $data;
683
-      }
684
-    }
685
-    /**
686
-     * Updates permissions for an existing user on the given view (profile).
687
-     * (profileUserLinks.update)
688
-     *
689
-     * @param string $accountId Account ID to update the user link for.
690
-     * @param string $webPropertyId Web Property ID to update the user link for.
691
-     * @param string $profileId View (Profile ID) to update the user link for.
692
-     * @param string $linkId Link ID to update the user link for.
693
-     * @param Google_EntityUserLink $postBody
694
-     * @param array $optParams Optional parameters.
695
-     * @return Google_EntityUserLink
696
-     */
697
-    public function update($accountId, $webPropertyId, $profileId, $linkId, Google_EntityUserLink $postBody, $optParams = array()) {
698
-      $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'linkId' => $linkId, 'postBody' => $postBody);
699
-      $params = array_merge($params, $optParams);
700
-      $data = $this->__call('update', array($params));
701
-      if ($this->useObjects()) {
702
-        return new Google_EntityUserLink($data);
703
-      } else {
704
-        return $data;
705
-      }
706
-    }
628
+	/**
629
+	 * Removes a user from the given view (profile). (profileUserLinks.delete)
630
+	 *
631
+	 * @param string $accountId Account ID to delete the user link for.
632
+	 * @param string $webPropertyId Web Property ID to delete the user link for.
633
+	 * @param string $profileId View (Profile) ID to delete the user link for.
634
+	 * @param string $linkId Link ID to delete the user link for.
635
+	 * @param array $optParams Optional parameters.
636
+	 */
637
+	public function delete($accountId, $webPropertyId, $profileId, $linkId, $optParams = array()) {
638
+	  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'linkId' => $linkId);
639
+	  $params = array_merge($params, $optParams);
640
+	  $data = $this->__call('delete', array($params));
641
+	  return $data;
642
+	}
643
+	/**
644
+	 * Adds a new user to the given view (profile). (profileUserLinks.insert)
645
+	 *
646
+	 * @param string $accountId Account ID to create the user link for.
647
+	 * @param string $webPropertyId Web Property ID to create the user link for.
648
+	 * @param string $profileId View (Profile) ID to create the user link for.
649
+	 * @param Google_EntityUserLink $postBody
650
+	 * @param array $optParams Optional parameters.
651
+	 * @return Google_EntityUserLink
652
+	 */
653
+	public function insert($accountId, $webPropertyId, $profileId, Google_EntityUserLink $postBody, $optParams = array()) {
654
+	  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody);
655
+	  $params = array_merge($params, $optParams);
656
+	  $data = $this->__call('insert', array($params));
657
+	  if ($this->useObjects()) {
658
+		return new Google_EntityUserLink($data);
659
+	  } else {
660
+		return $data;
661
+	  }
662
+	}
663
+	/**
664
+	 * Lists profile-user links for a given view (profile). (profileUserLinks.list)
665
+	 *
666
+	 * @param string $accountId Account ID which the given view (profile) belongs to.
667
+	 * @param string $webPropertyId Web Property ID which the given view (profile) belongs to.
668
+	 * @param string $profileId View (Profile) ID to retrieve the profile-user links for
669
+	 * @param array $optParams Optional parameters.
670
+	 *
671
+	 * @opt_param int max-results The maximum number of profile-user links to include in this response.
672
+	 * @opt_param int start-index An index of the first profile-user link to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
673
+	 * @return Google_EntityUserLinks
674
+	 */
675
+	public function listManagementProfileUserLinks($accountId, $webPropertyId, $profileId, $optParams = array()) {
676
+	  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId);
677
+	  $params = array_merge($params, $optParams);
678
+	  $data = $this->__call('list', array($params));
679
+	  if ($this->useObjects()) {
680
+		return new Google_EntityUserLinks($data);
681
+	  } else {
682
+		return $data;
683
+	  }
684
+	}
685
+	/**
686
+	 * Updates permissions for an existing user on the given view (profile).
687
+	 * (profileUserLinks.update)
688
+	 *
689
+	 * @param string $accountId Account ID to update the user link for.
690
+	 * @param string $webPropertyId Web Property ID to update the user link for.
691
+	 * @param string $profileId View (Profile ID) to update the user link for.
692
+	 * @param string $linkId Link ID to update the user link for.
693
+	 * @param Google_EntityUserLink $postBody
694
+	 * @param array $optParams Optional parameters.
695
+	 * @return Google_EntityUserLink
696
+	 */
697
+	public function update($accountId, $webPropertyId, $profileId, $linkId, Google_EntityUserLink $postBody, $optParams = array()) {
698
+	  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'linkId' => $linkId, 'postBody' => $postBody);
699
+	  $params = array_merge($params, $optParams);
700
+	  $data = $this->__call('update', array($params));
701
+	  if ($this->useObjects()) {
702
+		return new Google_EntityUserLink($data);
703
+	  } else {
704
+		return $data;
705
+	  }
706
+	}
707 707
   }
708 708
   /**
709 709
    * The "profiles" collection of methods.
@@ -715,120 +715,120 @@  discard block
 block discarded – undo
715 715
    */
716 716
   class Google_ManagementProfilesServiceResource extends Google_ServiceResource {
717 717
 
718
-    /**
719
-     * Deletes a view (profile). (profiles.delete)
720
-     *
721
-     * @param string $accountId Account ID to delete the view (profile) for.
722
-     * @param string $webPropertyId Web property ID to delete the view (profile) for.
723
-     * @param string $profileId ID of the view (profile) to be deleted.
724
-     * @param array $optParams Optional parameters.
725
-     */
726
-    public function delete($accountId, $webPropertyId, $profileId, $optParams = array()) {
727
-      $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId);
728
-      $params = array_merge($params, $optParams);
729
-      $data = $this->__call('delete', array($params));
730
-      return $data;
731
-    }
732
-    /**
733
-     * Gets a view (profile) to which the user has access. (profiles.get)
734
-     *
735
-     * @param string $accountId Account ID to retrieve the goal for.
736
-     * @param string $webPropertyId Web property ID to retrieve the goal for.
737
-     * @param string $profileId View (Profile) ID to retrieve the goal for.
738
-     * @param array $optParams Optional parameters.
739
-     * @return Google_Profile
740
-     */
741
-    public function get($accountId, $webPropertyId, $profileId, $optParams = array()) {
742
-      $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId);
743
-      $params = array_merge($params, $optParams);
744
-      $data = $this->__call('get', array($params));
745
-      if ($this->useObjects()) {
746
-        return new Google_Profile($data);
747
-      } else {
748
-        return $data;
749
-      }
750
-    }
751
-    /**
752
-     * Create a new view (profile). (profiles.insert)
753
-     *
754
-     * @param string $accountId Account ID to create the view (profile) for.
755
-     * @param string $webPropertyId Web property ID to create the view (profile) for.
756
-     * @param Google_Profile $postBody
757
-     * @param array $optParams Optional parameters.
758
-     * @return Google_Profile
759
-     */
760
-    public function insert($accountId, $webPropertyId, Google_Profile $postBody, $optParams = array()) {
761
-      $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody);
762
-      $params = array_merge($params, $optParams);
763
-      $data = $this->__call('insert', array($params));
764
-      if ($this->useObjects()) {
765
-        return new Google_Profile($data);
766
-      } else {
767
-        return $data;
768
-      }
769
-    }
770
-    /**
771
-     * Lists views (profiles) to which the user has access. (profiles.list)
772
-     *
773
-     * @param string $accountId Account ID for the view (profiles) to retrieve. Can either be a specific account ID or '~all', which refers to all the accounts to which the user has access.
774
-     * @param string $webPropertyId Web property ID for the views (profiles) to retrieve. Can either be a specific web property ID or '~all', which refers to all the web properties to which the user has access.
775
-     * @param array $optParams Optional parameters.
776
-     *
777
-     * @opt_param int max-results The maximum number of views (profiles) to include in this response.
778
-     * @opt_param int start-index An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
779
-     * @return Google_Profiles
780
-     */
781
-    public function listManagementProfiles($accountId, $webPropertyId, $optParams = array()) {
782
-      $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId);
783
-      $params = array_merge($params, $optParams);
784
-      $data = $this->__call('list', array($params));
785
-      if ($this->useObjects()) {
786
-        return new Google_Profiles($data);
787
-      } else {
788
-        return $data;
789
-      }
790
-    }
791
-    /**
792
-     * Updates an existing view (profile). This method supports patch semantics.
793
-     * (profiles.patch)
794
-     *
795
-     * @param string $accountId Account ID to which the view (profile) belongs
796
-     * @param string $webPropertyId Web property ID to which the view (profile) belongs
797
-     * @param string $profileId ID of the view (profile) to be updated.
798
-     * @param Google_Profile $postBody
799
-     * @param array $optParams Optional parameters.
800
-     * @return Google_Profile
801
-     */
802
-    public function patch($accountId, $webPropertyId, $profileId, Google_Profile $postBody, $optParams = array()) {
803
-      $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody);
804
-      $params = array_merge($params, $optParams);
805
-      $data = $this->__call('patch', array($params));
806
-      if ($this->useObjects()) {
807
-        return new Google_Profile($data);
808
-      } else {
809
-        return $data;
810
-      }
811
-    }
812
-    /**
813
-     * Updates an existing view (profile). (profiles.update)
814
-     *
815
-     * @param string $accountId Account ID to which the view (profile) belongs
816
-     * @param string $webPropertyId Web property ID to which the view (profile) belongs
817
-     * @param string $profileId ID of the view (profile) to be updated.
818
-     * @param Google_Profile $postBody
819
-     * @param array $optParams Optional parameters.
820
-     * @return Google_Profile
821
-     */
822
-    public function update($accountId, $webPropertyId, $profileId, Google_Profile $postBody, $optParams = array()) {
823
-      $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody);
824
-      $params = array_merge($params, $optParams);
825
-      $data = $this->__call('update', array($params));
826
-      if ($this->useObjects()) {
827
-        return new Google_Profile($data);
828
-      } else {
829
-        return $data;
830
-      }
831
-    }
718
+	/**
719
+	 * Deletes a view (profile). (profiles.delete)
720
+	 *
721
+	 * @param string $accountId Account ID to delete the view (profile) for.
722
+	 * @param string $webPropertyId Web property ID to delete the view (profile) for.
723
+	 * @param string $profileId ID of the view (profile) to be deleted.
724
+	 * @param array $optParams Optional parameters.
725
+	 */
726
+	public function delete($accountId, $webPropertyId, $profileId, $optParams = array()) {
727
+	  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId);
728
+	  $params = array_merge($params, $optParams);
729
+	  $data = $this->__call('delete', array($params));
730
+	  return $data;
731
+	}
732
+	/**
733
+	 * Gets a view (profile) to which the user has access. (profiles.get)
734
+	 *
735
+	 * @param string $accountId Account ID to retrieve the goal for.
736
+	 * @param string $webPropertyId Web property ID to retrieve the goal for.
737
+	 * @param string $profileId View (Profile) ID to retrieve the goal for.
738
+	 * @param array $optParams Optional parameters.
739
+	 * @return Google_Profile
740
+	 */
741
+	public function get($accountId, $webPropertyId, $profileId, $optParams = array()) {
742
+	  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId);
743
+	  $params = array_merge($params, $optParams);
744
+	  $data = $this->__call('get', array($params));
745
+	  if ($this->useObjects()) {
746
+		return new Google_Profile($data);
747
+	  } else {
748
+		return $data;
749
+	  }
750
+	}
751
+	/**
752
+	 * Create a new view (profile). (profiles.insert)
753
+	 *
754
+	 * @param string $accountId Account ID to create the view (profile) for.
755
+	 * @param string $webPropertyId Web property ID to create the view (profile) for.
756
+	 * @param Google_Profile $postBody
757
+	 * @param array $optParams Optional parameters.
758
+	 * @return Google_Profile
759
+	 */
760
+	public function insert($accountId, $webPropertyId, Google_Profile $postBody, $optParams = array()) {
761
+	  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody);
762
+	  $params = array_merge($params, $optParams);
763
+	  $data = $this->__call('insert', array($params));
764
+	  if ($this->useObjects()) {
765
+		return new Google_Profile($data);
766
+	  } else {
767
+		return $data;
768
+	  }
769
+	}
770
+	/**
771
+	 * Lists views (profiles) to which the user has access. (profiles.list)
772
+	 *
773
+	 * @param string $accountId Account ID for the view (profiles) to retrieve. Can either be a specific account ID or '~all', which refers to all the accounts to which the user has access.
774
+	 * @param string $webPropertyId Web property ID for the views (profiles) to retrieve. Can either be a specific web property ID or '~all', which refers to all the web properties to which the user has access.
775
+	 * @param array $optParams Optional parameters.
776
+	 *
777
+	 * @opt_param int max-results The maximum number of views (profiles) to include in this response.
778
+	 * @opt_param int start-index An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
779
+	 * @return Google_Profiles
780
+	 */
781
+	public function listManagementProfiles($accountId, $webPropertyId, $optParams = array()) {
782
+	  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId);
783
+	  $params = array_merge($params, $optParams);
784
+	  $data = $this->__call('list', array($params));
785
+	  if ($this->useObjects()) {
786
+		return new Google_Profiles($data);
787
+	  } else {
788
+		return $data;
789
+	  }
790
+	}
791
+	/**
792
+	 * Updates an existing view (profile). This method supports patch semantics.
793
+	 * (profiles.patch)
794
+	 *
795
+	 * @param string $accountId Account ID to which the view (profile) belongs
796
+	 * @param string $webPropertyId Web property ID to which the view (profile) belongs
797
+	 * @param string $profileId ID of the view (profile) to be updated.
798
+	 * @param Google_Profile $postBody
799
+	 * @param array $optParams Optional parameters.
800
+	 * @return Google_Profile
801
+	 */
802
+	public function patch($accountId, $webPropertyId, $profileId, Google_Profile $postBody, $optParams = array()) {
803
+	  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody);
804
+	  $params = array_merge($params, $optParams);
805
+	  $data = $this->__call('patch', array($params));
806
+	  if ($this->useObjects()) {
807
+		return new Google_Profile($data);
808
+	  } else {
809
+		return $data;
810
+	  }
811
+	}
812
+	/**
813
+	 * Updates an existing view (profile). (profiles.update)
814
+	 *
815
+	 * @param string $accountId Account ID to which the view (profile) belongs
816
+	 * @param string $webPropertyId Web property ID to which the view (profile) belongs
817
+	 * @param string $profileId ID of the view (profile) to be updated.
818
+	 * @param Google_Profile $postBody
819
+	 * @param array $optParams Optional parameters.
820
+	 * @return Google_Profile
821
+	 */
822
+	public function update($accountId, $webPropertyId, $profileId, Google_Profile $postBody, $optParams = array()) {
823
+	  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody);
824
+	  $params = array_merge($params, $optParams);
825
+	  $data = $this->__call('update', array($params));
826
+	  if ($this->useObjects()) {
827
+		return new Google_Profile($data);
828
+	  } else {
829
+		return $data;
830
+	  }
831
+	}
832 832
   }
833 833
   /**
834 834
    * The "segments" collection of methods.
@@ -840,25 +840,25 @@  discard block
 block discarded – undo
840 840
    */
841 841
   class Google_ManagementSegmentsServiceResource extends Google_ServiceResource {
842 842
 
843
-    /**
844
-     * Lists advanced segments to which the user has access. (segments.list)
845
-     *
846
-     * @param array $optParams Optional parameters.
847
-     *
848
-     * @opt_param int max-results The maximum number of advanced segments to include in this response.
849
-     * @opt_param int start-index An index of the first advanced segment to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
850
-     * @return Google_Segments
851
-     */
852
-    public function listManagementSegments($optParams = array()) {
853
-      $params = array();
854
-      $params = array_merge($params, $optParams);
855
-      $data = $this->__call('list', array($params));
856
-      if ($this->useObjects()) {
857
-        return new Google_Segments($data);
858
-      } else {
859
-        return $data;
860
-      }
861
-    }
843
+	/**
844
+	 * Lists advanced segments to which the user has access. (segments.list)
845
+	 *
846
+	 * @param array $optParams Optional parameters.
847
+	 *
848
+	 * @opt_param int max-results The maximum number of advanced segments to include in this response.
849
+	 * @opt_param int start-index An index of the first advanced segment to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
850
+	 * @return Google_Segments
851
+	 */
852
+	public function listManagementSegments($optParams = array()) {
853
+	  $params = array();
854
+	  $params = array_merge($params, $optParams);
855
+	  $data = $this->__call('list', array($params));
856
+	  if ($this->useObjects()) {
857
+		return new Google_Segments($data);
858
+	  } else {
859
+		return $data;
860
+	  }
861
+	}
862 862
   }
863 863
   /**
864 864
    * The "uploads" collection of methods.
@@ -870,82 +870,82 @@  discard block
 block discarded – undo
870 870
    */
871 871
   class Google_ManagementUploadsServiceResource extends Google_ServiceResource {
872 872
 
873
-    /**
874
-     * Delete data associated with a previous upload. (uploads.deleteUploadData)
875
-     *
876
-     * @param string $accountId Account Id for the uploads to be deleted.
877
-     * @param string $webPropertyId Web property Id for the uploads to be deleted.
878
-     * @param string $customDataSourceId Custom data source Id for the uploads to be deleted.
879
-     * @param Google_AnalyticsDataimportDeleteUploadDataRequest $postBody
880
-     * @param array $optParams Optional parameters.
881
-     */
882
-    public function deleteUploadData($accountId, $webPropertyId, $customDataSourceId, Google_AnalyticsDataimportDeleteUploadDataRequest $postBody, $optParams = array()) {
883
-      $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'postBody' => $postBody);
884
-      $params = array_merge($params, $optParams);
885
-      $data = $this->__call('deleteUploadData', array($params));
886
-      return $data;
887
-    }
888
-    /**
889
-     * List uploads to which the user has access. (uploads.get)
890
-     *
891
-     * @param string $accountId Account Id for the upload to retrieve.
892
-     * @param string $webPropertyId Web property Id for the upload to retrieve.
893
-     * @param string $customDataSourceId Custom data source Id for upload to retrieve.
894
-     * @param string $uploadId Upload Id to retrieve.
895
-     * @param array $optParams Optional parameters.
896
-     * @return Google_Upload
897
-     */
898
-    public function get($accountId, $webPropertyId, $customDataSourceId, $uploadId, $optParams = array()) {
899
-      $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'uploadId' => $uploadId);
900
-      $params = array_merge($params, $optParams);
901
-      $data = $this->__call('get', array($params));
902
-      if ($this->useObjects()) {
903
-        return new Google_Upload($data);
904
-      } else {
905
-        return $data;
906
-      }
907
-    }
908
-    /**
909
-     * List uploads to which the user has access. (uploads.list)
910
-     *
911
-     * @param string $accountId Account Id for the uploads to retrieve.
912
-     * @param string $webPropertyId Web property Id for the uploads to retrieve.
913
-     * @param string $customDataSourceId Custom data source Id for uploads to retrieve.
914
-     * @param array $optParams Optional parameters.
915
-     *
916
-     * @opt_param int max-results The maximum number of uploads to include in this response.
917
-     * @opt_param int start-index A 1-based index of the first upload to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
918
-     * @return Google_Uploads
919
-     */
920
-    public function listManagementUploads($accountId, $webPropertyId, $customDataSourceId, $optParams = array()) {
921
-      $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId);
922
-      $params = array_merge($params, $optParams);
923
-      $data = $this->__call('list', array($params));
924
-      if ($this->useObjects()) {
925
-        return new Google_Uploads($data);
926
-      } else {
927
-        return $data;
928
-      }
929
-    }
930
-    /**
931
-     * Upload/Overwrite data for a custom data source. (uploads.uploadData)
932
-     *
933
-     * @param string $accountId Account Id associated with the upload.
934
-     * @param string $webPropertyId Web property UA-string associated with the upload.
935
-     * @param string $customDataSourceId Custom data source Id to which the data being uploaded belongs.
936
-     * @param array $optParams Optional parameters.
937
-     * @return Google_Upload
938
-     */
939
-    public function uploadData($accountId, $webPropertyId, $customDataSourceId, $optParams = array()) {
940
-      $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId);
941
-      $params = array_merge($params, $optParams);
942
-      $data = $this->__call('uploadData', array($params));
943
-      if ($this->useObjects()) {
944
-        return new Google_Upload($data);
945
-      } else {
946
-        return $data;
947
-      }
948
-    }
873
+	/**
874
+	 * Delete data associated with a previous upload. (uploads.deleteUploadData)
875
+	 *
876
+	 * @param string $accountId Account Id for the uploads to be deleted.
877
+	 * @param string $webPropertyId Web property Id for the uploads to be deleted.
878
+	 * @param string $customDataSourceId Custom data source Id for the uploads to be deleted.
879
+	 * @param Google_AnalyticsDataimportDeleteUploadDataRequest $postBody
880
+	 * @param array $optParams Optional parameters.
881
+	 */
882
+	public function deleteUploadData($accountId, $webPropertyId, $customDataSourceId, Google_AnalyticsDataimportDeleteUploadDataRequest $postBody, $optParams = array()) {
883
+	  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'postBody' => $postBody);
884
+	  $params = array_merge($params, $optParams);
885
+	  $data = $this->__call('deleteUploadData', array($params));
886
+	  return $data;
887
+	}
888
+	/**
889
+	 * List uploads to which the user has access. (uploads.get)
890
+	 *
891
+	 * @param string $accountId Account Id for the upload to retrieve.
892
+	 * @param string $webPropertyId Web property Id for the upload to retrieve.
893
+	 * @param string $customDataSourceId Custom data source Id for upload to retrieve.
894
+	 * @param string $uploadId Upload Id to retrieve.
895
+	 * @param array $optParams Optional parameters.
896
+	 * @return Google_Upload
897
+	 */
898
+	public function get($accountId, $webPropertyId, $customDataSourceId, $uploadId, $optParams = array()) {
899
+	  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'uploadId' => $uploadId);
900
+	  $params = array_merge($params, $optParams);
901
+	  $data = $this->__call('get', array($params));
902
+	  if ($this->useObjects()) {
903
+		return new Google_Upload($data);
904
+	  } else {
905
+		return $data;
906
+	  }
907
+	}
908
+	/**
909
+	 * List uploads to which the user has access. (uploads.list)
910
+	 *
911
+	 * @param string $accountId Account Id for the uploads to retrieve.
912
+	 * @param string $webPropertyId Web property Id for the uploads to retrieve.
913
+	 * @param string $customDataSourceId Custom data source Id for uploads to retrieve.
914
+	 * @param array $optParams Optional parameters.
915
+	 *
916
+	 * @opt_param int max-results The maximum number of uploads to include in this response.
917
+	 * @opt_param int start-index A 1-based index of the first upload to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
918
+	 * @return Google_Uploads
919
+	 */
920
+	public function listManagementUploads($accountId, $webPropertyId, $customDataSourceId, $optParams = array()) {
921
+	  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId);
922
+	  $params = array_merge($params, $optParams);
923
+	  $data = $this->__call('list', array($params));
924
+	  if ($this->useObjects()) {
925
+		return new Google_Uploads($data);
926
+	  } else {
927
+		return $data;
928
+	  }
929
+	}
930
+	/**
931
+	 * Upload/Overwrite data for a custom data source. (uploads.uploadData)
932
+	 *
933
+	 * @param string $accountId Account Id associated with the upload.
934
+	 * @param string $webPropertyId Web property UA-string associated with the upload.
935
+	 * @param string $customDataSourceId Custom data source Id to which the data being uploaded belongs.
936
+	 * @param array $optParams Optional parameters.
937
+	 * @return Google_Upload
938
+	 */
939
+	public function uploadData($accountId, $webPropertyId, $customDataSourceId, $optParams = array()) {
940
+	  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId);
941
+	  $params = array_merge($params, $optParams);
942
+	  $data = $this->__call('uploadData', array($params));
943
+	  if ($this->useObjects()) {
944
+		return new Google_Upload($data);
945
+	  } else {
946
+		return $data;
947
+	  }
948
+	}
949 949
   }
950 950
   /**
951 951
    * The "webproperties" collection of methods.
@@ -957,102 +957,102 @@  discard block
 block discarded – undo
957 957
    */
958 958
   class Google_ManagementWebpropertiesServiceResource extends Google_ServiceResource {
959 959
 
960
-    /**
961
-     * Gets a web property to which the user has access. (webproperties.get)
962
-     *
963
-     * @param string $accountId Account ID to retrieve the web property for.
964
-     * @param string $webPropertyId ID to retrieve the web property for.
965
-     * @param array $optParams Optional parameters.
966
-     * @return Google_Webproperty
967
-     */
968
-    public function get($accountId, $webPropertyId, $optParams = array()) {
969
-      $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId);
970
-      $params = array_merge($params, $optParams);
971
-      $data = $this->__call('get', array($params));
972
-      if ($this->useObjects()) {
973
-        return new Google_Webproperty($data);
974
-      } else {
975
-        return $data;
976
-      }
977
-    }
978
-    /**
979
-     * Create a new property if the account has fewer than 20 properties.
980
-     * (webproperties.insert)
981
-     *
982
-     * @param string $accountId Account ID to create the web property for.
983
-     * @param Google_Webproperty $postBody
984
-     * @param array $optParams Optional parameters.
985
-     * @return Google_Webproperty
986
-     */
987
-    public function insert($accountId, Google_Webproperty $postBody, $optParams = array()) {
988
-      $params = array('accountId' => $accountId, 'postBody' => $postBody);
989
-      $params = array_merge($params, $optParams);
990
-      $data = $this->__call('insert', array($params));
991
-      if ($this->useObjects()) {
992
-        return new Google_Webproperty($data);
993
-      } else {
994
-        return $data;
995
-      }
996
-    }
997
-    /**
998
-     * Lists web properties to which the user has access. (webproperties.list)
999
-     *
1000
-     * @param string $accountId Account ID to retrieve web properties for. Can either be a specific account ID or '~all', which refers to all the accounts that user has access to.
1001
-     * @param array $optParams Optional parameters.
1002
-     *
1003
-     * @opt_param int max-results The maximum number of web properties to include in this response.
1004
-     * @opt_param int start-index An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
1005
-     * @return Google_Webproperties
1006
-     */
1007
-    public function listManagementWebproperties($accountId, $optParams = array()) {
1008
-      $params = array('accountId' => $accountId);
1009
-      $params = array_merge($params, $optParams);
1010
-      $data = $this->__call('list', array($params));
1011
-      if ($this->useObjects()) {
1012
-        return new Google_Webproperties($data);
1013
-      } else {
1014
-        return $data;
1015
-      }
1016
-    }
1017
-    /**
1018
-     * Updates an existing web property. This method supports patch semantics.
1019
-     * (webproperties.patch)
1020
-     *
1021
-     * @param string $accountId Account ID to which the web property belongs
1022
-     * @param string $webPropertyId Web property ID
1023
-     * @param Google_Webproperty $postBody
1024
-     * @param array $optParams Optional parameters.
1025
-     * @return Google_Webproperty
1026
-     */
1027
-    public function patch($accountId, $webPropertyId, Google_Webproperty $postBody, $optParams = array()) {
1028
-      $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody);
1029
-      $params = array_merge($params, $optParams);
1030
-      $data = $this->__call('patch', array($params));
1031
-      if ($this->useObjects()) {
1032
-        return new Google_Webproperty($data);
1033
-      } else {
1034
-        return $data;
1035
-      }
1036
-    }
1037
-    /**
1038
-     * Updates an existing web property. (webproperties.update)
1039
-     *
1040
-     * @param string $accountId Account ID to which the web property belongs
1041
-     * @param string $webPropertyId Web property ID
1042
-     * @param Google_Webproperty $postBody
1043
-     * @param array $optParams Optional parameters.
1044
-     * @return Google_Webproperty
1045
-     */
1046
-    public function update($accountId, $webPropertyId, Google_Webproperty $postBody, $optParams = array()) {
1047
-      $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody);
1048
-      $params = array_merge($params, $optParams);
1049
-      $data = $this->__call('update', array($params));
1050
-      if ($this->useObjects()) {
1051
-        return new Google_Webproperty($data);
1052
-      } else {
1053
-        return $data;
1054
-      }
1055
-    }
960
+	/**
961
+	 * Gets a web property to which the user has access. (webproperties.get)
962
+	 *
963
+	 * @param string $accountId Account ID to retrieve the web property for.
964
+	 * @param string $webPropertyId ID to retrieve the web property for.
965
+	 * @param array $optParams Optional parameters.
966
+	 * @return Google_Webproperty
967
+	 */
968
+	public function get($accountId, $webPropertyId, $optParams = array()) {
969
+	  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId);
970
+	  $params = array_merge($params, $optParams);
971
+	  $data = $this->__call('get', array($params));
972
+	  if ($this->useObjects()) {
973
+		return new Google_Webproperty($data);
974
+	  } else {
975
+		return $data;
976
+	  }
977
+	}
978
+	/**
979
+	 * Create a new property if the account has fewer than 20 properties.
980
+	 * (webproperties.insert)
981
+	 *
982
+	 * @param string $accountId Account ID to create the web property for.
983
+	 * @param Google_Webproperty $postBody
984
+	 * @param array $optParams Optional parameters.
985
+	 * @return Google_Webproperty
986
+	 */
987
+	public function insert($accountId, Google_Webproperty $postBody, $optParams = array()) {
988
+	  $params = array('accountId' => $accountId, 'postBody' => $postBody);
989
+	  $params = array_merge($params, $optParams);
990
+	  $data = $this->__call('insert', array($params));
991
+	  if ($this->useObjects()) {
992
+		return new Google_Webproperty($data);
993
+	  } else {
994
+		return $data;
995
+	  }
996
+	}
997
+	/**
998
+	 * Lists web properties to which the user has access. (webproperties.list)
999
+	 *
1000
+	 * @param string $accountId Account ID to retrieve web properties for. Can either be a specific account ID or '~all', which refers to all the accounts that user has access to.
1001
+	 * @param array $optParams Optional parameters.
1002
+	 *
1003
+	 * @opt_param int max-results The maximum number of web properties to include in this response.
1004
+	 * @opt_param int start-index An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
1005
+	 * @return Google_Webproperties
1006
+	 */
1007
+	public function listManagementWebproperties($accountId, $optParams = array()) {
1008
+	  $params = array('accountId' => $accountId);
1009
+	  $params = array_merge($params, $optParams);
1010
+	  $data = $this->__call('list', array($params));
1011
+	  if ($this->useObjects()) {
1012
+		return new Google_Webproperties($data);
1013
+	  } else {
1014
+		return $data;
1015
+	  }
1016
+	}
1017
+	/**
1018
+	 * Updates an existing web property. This method supports patch semantics.
1019
+	 * (webproperties.patch)
1020
+	 *
1021
+	 * @param string $accountId Account ID to which the web property belongs
1022
+	 * @param string $webPropertyId Web property ID
1023
+	 * @param Google_Webproperty $postBody
1024
+	 * @param array $optParams Optional parameters.
1025
+	 * @return Google_Webproperty
1026
+	 */
1027
+	public function patch($accountId, $webPropertyId, Google_Webproperty $postBody, $optParams = array()) {
1028
+	  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody);
1029
+	  $params = array_merge($params, $optParams);
1030
+	  $data = $this->__call('patch', array($params));
1031
+	  if ($this->useObjects()) {
1032
+		return new Google_Webproperty($data);
1033
+	  } else {
1034
+		return $data;
1035
+	  }
1036
+	}
1037
+	/**
1038
+	 * Updates an existing web property. (webproperties.update)
1039
+	 *
1040
+	 * @param string $accountId Account ID to which the web property belongs
1041
+	 * @param string $webPropertyId Web property ID
1042
+	 * @param Google_Webproperty $postBody
1043
+	 * @param array $optParams Optional parameters.
1044
+	 * @return Google_Webproperty
1045
+	 */
1046
+	public function update($accountId, $webPropertyId, Google_Webproperty $postBody, $optParams = array()) {
1047
+	  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody);
1048
+	  $params = array_merge($params, $optParams);
1049
+	  $data = $this->__call('update', array($params));
1050
+	  if ($this->useObjects()) {
1051
+		return new Google_Webproperty($data);
1052
+	  } else {
1053
+		return $data;
1054
+	  }
1055
+	}
1056 1056
   }
1057 1057
   /**
1058 1058
    * The "webpropertyUserLinks" collection of methods.
@@ -1064,82 +1064,82 @@  discard block
 block discarded – undo
1064 1064
    */
1065 1065
   class Google_ManagementWebpropertyUserLinksServiceResource extends Google_ServiceResource {
1066 1066
 
1067
-    /**
1068
-     * Removes a user from the given web property. (webpropertyUserLinks.delete)
1069
-     *
1070
-     * @param string $accountId Account ID to delete the user link for.
1071
-     * @param string $webPropertyId Web Property ID to delete the user link for.
1072
-     * @param string $linkId Link ID to delete the user link for.
1073
-     * @param array $optParams Optional parameters.
1074
-     */
1075
-    public function delete($accountId, $webPropertyId, $linkId, $optParams = array()) {
1076
-      $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'linkId' => $linkId);
1077
-      $params = array_merge($params, $optParams);
1078
-      $data = $this->__call('delete', array($params));
1079
-      return $data;
1080
-    }
1081
-    /**
1082
-     * Adds a new user to the given web property. (webpropertyUserLinks.insert)
1083
-     *
1084
-     * @param string $accountId Account ID to create the user link for.
1085
-     * @param string $webPropertyId Web Property ID to create the user link for.
1086
-     * @param Google_EntityUserLink $postBody
1087
-     * @param array $optParams Optional parameters.
1088
-     * @return Google_EntityUserLink
1089
-     */
1090
-    public function insert($accountId, $webPropertyId, Google_EntityUserLink $postBody, $optParams = array()) {
1091
-      $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody);
1092
-      $params = array_merge($params, $optParams);
1093
-      $data = $this->__call('insert', array($params));
1094
-      if ($this->useObjects()) {
1095
-        return new Google_EntityUserLink($data);
1096
-      } else {
1097
-        return $data;
1098
-      }
1099
-    }
1100
-    /**
1101
-     * Lists webProperty-user links for a given web property.
1102
-     * (webpropertyUserLinks.list)
1103
-     *
1104
-     * @param string $accountId Account ID which the given web property belongs to.
1105
-     * @param string $webPropertyId Web Property ID for the webProperty-user links to retrieve.
1106
-     * @param array $optParams Optional parameters.
1107
-     *
1108
-     * @opt_param int max-results The maximum number of webProperty-user Links to include in this response.
1109
-     * @opt_param int start-index An index of the first webProperty-user link to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
1110
-     * @return Google_EntityUserLinks
1111
-     */
1112
-    public function listManagementWebpropertyUserLinks($accountId, $webPropertyId, $optParams = array()) {
1113
-      $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId);
1114
-      $params = array_merge($params, $optParams);
1115
-      $data = $this->__call('list', array($params));
1116
-      if ($this->useObjects()) {
1117
-        return new Google_EntityUserLinks($data);
1118
-      } else {
1119
-        return $data;
1120
-      }
1121
-    }
1122
-    /**
1123
-     * Updates permissions for an existing user on the given web property.
1124
-     * (webpropertyUserLinks.update)
1125
-     *
1126
-     * @param string $accountId Account ID to update the account-user link for.
1127
-     * @param string $webPropertyId Web property ID to update the account-user link for.
1128
-     * @param string $linkId Link ID to update the account-user link for.
1129
-     * @param Google_EntityUserLink $postBody
1130
-     * @param array $optParams Optional parameters.
1131
-     * @return Google_EntityUserLink
1132
-     */
1133
-    public function update($accountId, $webPropertyId, $linkId, Google_EntityUserLink $postBody, $optParams = array()) {
1134
-      $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'linkId' => $linkId, 'postBody' => $postBody);
1135
-      $params = array_merge($params, $optParams);
1136
-      $data = $this->__call('update', array($params));
1137
-      if ($this->useObjects()) {
1138
-        return new Google_EntityUserLink($data);
1139
-      } else {
1140
-        return $data;
1141
-      }
1142
-    }
1067
+	/**
1068
+	 * Removes a user from the given web property. (webpropertyUserLinks.delete)
1069
+	 *
1070
+	 * @param string $accountId Account ID to delete the user link for.
1071
+	 * @param string $webPropertyId Web Property ID to delete the user link for.
1072
+	 * @param string $linkId Link ID to delete the user link for.
1073
+	 * @param array $optParams Optional parameters.
1074
+	 */
1075
+	public function delete($accountId, $webPropertyId, $linkId, $optParams = array()) {
1076
+	  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'linkId' => $linkId);
1077
+	  $params = array_merge($params, $optParams);
1078
+	  $data = $this->__call('delete', array($params));
1079
+	  return $data;
1080
+	}
1081
+	/**
1082
+	 * Adds a new user to the given web property. (webpropertyUserLinks.insert)
1083
+	 *
1084
+	 * @param string $accountId Account ID to create the user link for.
1085
+	 * @param string $webPropertyId Web Property ID to create the user link for.
1086
+	 * @param Google_EntityUserLink $postBody
1087
+	 * @param array $optParams Optional parameters.
1088
+	 * @return Google_EntityUserLink
1089
+	 */
1090
+	public function insert($accountId, $webPropertyId, Google_EntityUserLink $postBody, $optParams = array()) {
1091
+	  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody);
1092
+	  $params = array_merge($params, $optParams);
1093
+	  $data = $this->__call('insert', array($params));
1094
+	  if ($this->useObjects()) {
1095
+		return new Google_EntityUserLink($data);
1096
+	  } else {
1097
+		return $data;
1098
+	  }
1099
+	}
1100
+	/**
1101
+	 * Lists webProperty-user links for a given web property.
1102
+	 * (webpropertyUserLinks.list)
1103
+	 *
1104
+	 * @param string $accountId Account ID which the given web property belongs to.
1105
+	 * @param string $webPropertyId Web Property ID for the webProperty-user links to retrieve.
1106
+	 * @param array $optParams Optional parameters.
1107
+	 *
1108
+	 * @opt_param int max-results The maximum number of webProperty-user Links to include in this response.
1109
+	 * @opt_param int start-index An index of the first webProperty-user link to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
1110
+	 * @return Google_EntityUserLinks
1111
+	 */
1112
+	public function listManagementWebpropertyUserLinks($accountId, $webPropertyId, $optParams = array()) {
1113
+	  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId);
1114
+	  $params = array_merge($params, $optParams);
1115
+	  $data = $this->__call('list', array($params));
1116
+	  if ($this->useObjects()) {
1117
+		return new Google_EntityUserLinks($data);
1118
+	  } else {
1119
+		return $data;
1120
+	  }
1121
+	}
1122
+	/**
1123
+	 * Updates permissions for an existing user on the given web property.
1124
+	 * (webpropertyUserLinks.update)
1125
+	 *
1126
+	 * @param string $accountId Account ID to update the account-user link for.
1127
+	 * @param string $webPropertyId Web property ID to update the account-user link for.
1128
+	 * @param string $linkId Link ID to update the account-user link for.
1129
+	 * @param Google_EntityUserLink $postBody
1130
+	 * @param array $optParams Optional parameters.
1131
+	 * @return Google_EntityUserLink
1132
+	 */
1133
+	public function update($accountId, $webPropertyId, $linkId, Google_EntityUserLink $postBody, $optParams = array()) {
1134
+	  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'linkId' => $linkId, 'postBody' => $postBody);
1135
+	  $params = array_merge($params, $optParams);
1136
+	  $data = $this->__call('update', array($params));
1137
+	  if ($this->useObjects()) {
1138
+		return new Google_EntityUserLink($data);
1139
+	  } else {
1140
+		return $data;
1141
+	  }
1142
+	}
1143 1143
   }
1144 1144
 
1145 1145
   /**
@@ -1164,23 +1164,23 @@  discard block
 block discarded – undo
1164 1164
    */
1165 1165
   class Google_MetadataColumnsServiceResource extends Google_ServiceResource {
1166 1166
 
1167
-    /**
1168
-     * Lists all columns for a report type (columns.list)
1169
-     *
1170
-     * @param string $reportType Report type. Allowed Values: 'ga'. Where 'ga' corresponds to the Core Reporting API
1171
-     * @param array $optParams Optional parameters.
1172
-     * @return Google_Columns
1173
-     */
1174
-    public function listMetadataColumns($reportType, $optParams = array()) {
1175
-      $params = array('reportType' => $reportType);
1176
-      $params = array_merge($params, $optParams);
1177
-      $data = $this->__call('list', array($params));
1178
-      if ($this->useObjects()) {
1179
-        return new Google_Columns($data);
1180
-      } else {
1181
-        return $data;
1182
-      }
1183
-    }
1167
+	/**
1168
+	 * Lists all columns for a report type (columns.list)
1169
+	 *
1170
+	 * @param string $reportType Report type. Allowed Values: 'ga'. Where 'ga' corresponds to the Core Reporting API
1171
+	 * @param array $optParams Optional parameters.
1172
+	 * @return Google_Columns
1173
+	 */
1174
+	public function listMetadataColumns($reportType, $optParams = array()) {
1175
+	  $params = array('reportType' => $reportType);
1176
+	  $params = array_merge($params, $optParams);
1177
+	  $data = $this->__call('list', array($params));
1178
+	  if ($this->useObjects()) {
1179
+		return new Google_Columns($data);
1180
+	  } else {
1181
+		return $data;
1182
+	  }
1183
+	}
1184 1184
   }
1185 1185
 
1186 1186
 /**
@@ -1220,27 +1220,27 @@  discard block
 block discarded – undo
1220 1220
    * @param Google_Client $client
1221 1221
    */
1222 1222
   public function __construct(Google_Client $client) {
1223
-    $this->servicePath = 'analytics/v3/';
1224
-    $this->version = 'v3';
1225
-    $this->serviceName = 'analytics';
1223
+	$this->servicePath = 'analytics/v3/';
1224
+	$this->version = 'v3';
1225
+	$this->serviceName = 'analytics';
1226 1226
 
1227
-    $client->addService($this->serviceName, $this->version);
1228
-    $this->data_ga = new Google_DataGaServiceResource($this, $this->serviceName, 'ga', json_decode('{"methods": {"get": {"id": "analytics.data.ga.get", "path": "data/ga", "httpMethod": "GET", "parameters": {"dimensions": {"type": "string", "location": "query"}, "end-date": {"type": "string", "required": true, "location": "query"}, "filters": {"type": "string", "location": "query"}, "ids": {"type": "string", "required": true, "location": "query"}, "max-results": {"type": "integer", "format": "int32", "location": "query"}, "metrics": {"type": "string", "required": true, "location": "query"}, "segment": {"type": "string", "location": "query"}, "sort": {"type": "string", "location": "query"}, "start-date": {"type": "string", "required": true, "location": "query"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}}, "response": {"$ref": "GaData"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}}}', true));
1229
-    $this->data_mcf = new Google_DataMcfServiceResource($this, $this->serviceName, 'mcf', json_decode('{"methods": {"get": {"id": "analytics.data.mcf.get", "path": "data/mcf", "httpMethod": "GET", "parameters": {"dimensions": {"type": "string", "location": "query"}, "end-date": {"type": "string", "required": true, "location": "query"}, "filters": {"type": "string", "location": "query"}, "ids": {"type": "string", "required": true, "location": "query"}, "max-results": {"type": "integer", "format": "int32", "location": "query"}, "metrics": {"type": "string", "required": true, "location": "query"}, "sort": {"type": "string", "location": "query"}, "start-date": {"type": "string", "required": true, "location": "query"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}}, "response": {"$ref": "McfData"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}}}', true));
1230
-    $this->data_realtime = new Google_DataRealtimeServiceResource($this, $this->serviceName, 'realtime', json_decode('{"methods": {"get": {"id": "analytics.data.realtime.get", "path": "data/realtime", "httpMethod": "GET", "parameters": {"dimensions": {"type": "string", "location": "query"}, "filters": {"type": "string", "location": "query"}, "ids": {"type": "string", "required": true, "location": "query"}, "max-results": {"type": "integer", "format": "int32", "location": "query"}, "metrics": {"type": "string", "required": true, "location": "query"}, "sort": {"type": "string", "location": "query"}}, "response": {"$ref": "RealtimeData"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}}}', true));
1231
-    $this->management_accountUserLinks = new Google_ManagementAccountUserLinksServiceResource($this, $this->serviceName, 'accountUserLinks', json_decode('{"methods": {"delete": {"id": "analytics.management.accountUserLinks.delete", "path": "management/accounts/{accountId}/entityUserLinks/{linkId}", "httpMethod": "DELETE", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "linkId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/analytics.manage.users"]}, "insert": {"id": "analytics.management.accountUserLinks.insert", "path": "management/accounts/{accountId}/entityUserLinks", "httpMethod": "POST", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "EntityUserLink"}, "response": {"$ref": "EntityUserLink"}, "scopes": ["https://www.googleapis.com/auth/analytics.manage.users"]}, "list": {"id": "analytics.management.accountUserLinks.list", "path": "management/accounts/{accountId}/entityUserLinks", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "max-results": {"type": "integer", "format": "int32", "location": "query"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}}, "response": {"$ref": "EntityUserLinks"}, "scopes": ["https://www.googleapis.com/auth/analytics.manage.users"]}, "update": {"id": "analytics.management.accountUserLinks.update", "path": "management/accounts/{accountId}/entityUserLinks/{linkId}", "httpMethod": "PUT", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "linkId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "EntityUserLink"}, "response": {"$ref": "EntityUserLink"}, "scopes": ["https://www.googleapis.com/auth/analytics.manage.users"]}}}', true));
1232
-    $this->management_accounts = new Google_ManagementAccountsServiceResource($this, $this->serviceName, 'accounts', json_decode('{"methods": {"list": {"id": "analytics.management.accounts.list", "path": "management/accounts", "httpMethod": "GET", "parameters": {"max-results": {"type": "integer", "format": "int32", "location": "query"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}}, "response": {"$ref": "Accounts"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}}}', true));
1233
-    $this->management_customDataSources = new Google_ManagementCustomDataSourcesServiceResource($this, $this->serviceName, 'customDataSources', json_decode('{"methods": {"list": {"id": "analytics.management.customDataSources.list", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "max-results": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "CustomDataSources"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}}}', true));
1234
-    $this->management_dailyUploads = new Google_ManagementDailyUploadsServiceResource($this, $this->serviceName, 'dailyUploads', json_decode('{"methods": {"delete": {"id": "analytics.management.dailyUploads.delete", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/dailyUploads/{date}", "httpMethod": "DELETE", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "customDataSourceId": {"type": "string", "required": true, "location": "path"}, "date": {"type": "string", "required": true, "location": "path"}, "type": {"type": "string", "required": true, "enum": ["cost"], "location": "query"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/analytics"]}, "list": {"id": "analytics.management.dailyUploads.list", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/dailyUploads", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "customDataSourceId": {"type": "string", "required": true, "location": "path"}, "end-date": {"type": "string", "required": true, "location": "query"}, "max-results": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "start-date": {"type": "string", "required": true, "location": "query"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "DailyUploads"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}, "upload": {"id": "analytics.management.dailyUploads.upload", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/dailyUploads/{date}/uploads", "httpMethod": "POST", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "appendNumber": {"type": "integer", "required": true, "format": "int32", "minimum": "1", "maximum": "20", "location": "query"}, "customDataSourceId": {"type": "string", "required": true, "location": "path"}, "date": {"type": "string", "required": true, "location": "path"}, "reset": {"type": "boolean", "default": "false", "location": "query"}, "type": {"type": "string", "required": true, "enum": ["cost"], "location": "query"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "DailyUploadAppend"}, "scopes": ["https://www.googleapis.com/auth/analytics"], "supportsMediaUpload": true, "mediaUpload": {"accept": ["application/octet-stream"], "maxSize": "5MB", "protocols": {"simple": {"multipart": true, "path": "/upload/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/dailyUploads/{date}/uploads"}, "resumable": {"multipart": true, "path": "/resumable/upload/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/dailyUploads/{date}/uploads"}}}}}}', true));
1235
-    $this->management_experiments = new Google_ManagementExperimentsServiceResource($this, $this->serviceName, 'experiments', json_decode('{"methods": {"delete": {"id": "analytics.management.experiments.delete", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}", "httpMethod": "DELETE", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "experimentId": {"type": "string", "required": true, "location": "path"}, "profileId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/analytics"]}, "get": {"id": "analytics.management.experiments.get", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "experimentId": {"type": "string", "required": true, "location": "path"}, "profileId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Experiment"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}, "insert": {"id": "analytics.management.experiments.insert", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments", "httpMethod": "POST", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "profileId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Experiment"}, "response": {"$ref": "Experiment"}, "scopes": ["https://www.googleapis.com/auth/analytics"]}, "list": {"id": "analytics.management.experiments.list", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "max-results": {"type": "integer", "format": "int32", "location": "query"}, "profileId": {"type": "string", "required": true, "location": "path"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Experiments"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}, "patch": {"id": "analytics.management.experiments.patch", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}", "httpMethod": "PATCH", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "experimentId": {"type": "string", "required": true, "location": "path"}, "profileId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Experiment"}, "response": {"$ref": "Experiment"}, "scopes": ["https://www.googleapis.com/auth/analytics"]}, "update": {"id": "analytics.management.experiments.update", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}", "httpMethod": "PUT", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "experimentId": {"type": "string", "required": true, "location": "path"}, "profileId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Experiment"}, "response": {"$ref": "Experiment"}, "scopes": ["https://www.googleapis.com/auth/analytics"]}}}', true));
1236
-    $this->management_goals = new Google_ManagementGoalsServiceResource($this, $this->serviceName, 'goals', json_decode('{"methods": {"get": {"id": "analytics.management.goals.get", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "goalId": {"type": "string", "required": true, "location": "path"}, "profileId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Goal"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}, "insert": {"id": "analytics.management.goals.insert", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals", "httpMethod": "POST", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "profileId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Goal"}, "response": {"$ref": "Goal"}, "scopes": ["https://www.googleapis.com/auth/analytics"]}, "list": {"id": "analytics.management.goals.list", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "max-results": {"type": "integer", "format": "int32", "location": "query"}, "profileId": {"type": "string", "required": true, "location": "path"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Goals"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}, "patch": {"id": "analytics.management.goals.patch", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}", "httpMethod": "PATCH", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "goalId": {"type": "string", "required": true, "location": "path"}, "profileId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Goal"}, "response": {"$ref": "Goal"}, "scopes": ["https://www.googleapis.com/auth/analytics"]}, "update": {"id": "analytics.management.goals.update", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}", "httpMethod": "PUT", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "goalId": {"type": "string", "required": true, "location": "path"}, "profileId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Goal"}, "response": {"$ref": "Goal"}, "scopes": ["https://www.googleapis.com/auth/analytics"]}}}', true));
1237
-    $this->management_profileUserLinks = new Google_ManagementProfileUserLinksServiceResource($this, $this->serviceName, 'profileUserLinks', json_decode('{"methods": {"delete": {"id": "analytics.management.profileUserLinks.delete", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}", "httpMethod": "DELETE", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "linkId": {"type": "string", "required": true, "location": "path"}, "profileId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/analytics.manage.users"]}, "insert": {"id": "analytics.management.profileUserLinks.insert", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks", "httpMethod": "POST", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "profileId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "EntityUserLink"}, "response": {"$ref": "EntityUserLink"}, "scopes": ["https://www.googleapis.com/auth/analytics.manage.users"]}, "list": {"id": "analytics.management.profileUserLinks.list", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "max-results": {"type": "integer", "format": "int32", "location": "query"}, "profileId": {"type": "string", "required": true, "location": "path"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "EntityUserLinks"}, "scopes": ["https://www.googleapis.com/auth/analytics.manage.users"]}, "update": {"id": "analytics.management.profileUserLinks.update", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}", "httpMethod": "PUT", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "linkId": {"type": "string", "required": true, "location": "path"}, "profileId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "EntityUserLink"}, "response": {"$ref": "EntityUserLink"}, "scopes": ["https://www.googleapis.com/auth/analytics.manage.users"]}}}', true));
1238
-    $this->management_profiles = new Google_ManagementProfilesServiceResource($this, $this->serviceName, 'profiles', json_decode('{"methods": {"delete": {"id": "analytics.management.profiles.delete", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}", "httpMethod": "DELETE", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "profileId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/analytics"]}, "get": {"id": "analytics.management.profiles.get", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "profileId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Profile"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}, "insert": {"id": "analytics.management.profiles.insert", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles", "httpMethod": "POST", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Profile"}, "response": {"$ref": "Profile"}, "scopes": ["https://www.googleapis.com/auth/analytics"]}, "list": {"id": "analytics.management.profiles.list", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "max-results": {"type": "integer", "format": "int32", "location": "query"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Profiles"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}, "patch": {"id": "analytics.management.profiles.patch", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}", "httpMethod": "PATCH", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "profileId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Profile"}, "response": {"$ref": "Profile"}, "scopes": ["https://www.googleapis.com/auth/analytics"]}, "update": {"id": "analytics.management.profiles.update", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}", "httpMethod": "PUT", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "profileId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Profile"}, "response": {"$ref": "Profile"}, "scopes": ["https://www.googleapis.com/auth/analytics"]}}}', true));
1239
-    $this->management_segments = new Google_ManagementSegmentsServiceResource($this, $this->serviceName, 'segments', json_decode('{"methods": {"list": {"id": "analytics.management.segments.list", "path": "management/segments", "httpMethod": "GET", "parameters": {"max-results": {"type": "integer", "format": "int32", "location": "query"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}}, "response": {"$ref": "Segments"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}}}', true));
1240
-    $this->management_uploads = new Google_ManagementUploadsServiceResource($this, $this->serviceName, 'uploads', json_decode('{"methods": {"deleteUploadData": {"id": "analytics.management.uploads.deleteUploadData", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/deleteUploadData", "httpMethod": "POST", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "customDataSourceId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "AnalyticsDataimportDeleteUploadDataRequest"}, "scopes": ["https://www.googleapis.com/auth/analytics"]}, "get": {"id": "analytics.management.uploads.get", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads/{uploadId}", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "customDataSourceId": {"type": "string", "required": true, "location": "path"}, "uploadId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Upload"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}, "list": {"id": "analytics.management.uploads.list", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "customDataSourceId": {"type": "string", "required": true, "location": "path"}, "max-results": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Uploads"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}, "uploadData": {"id": "analytics.management.uploads.uploadData", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads", "httpMethod": "POST", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "customDataSourceId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Upload"}, "scopes": ["https://www.googleapis.com/auth/analytics"], "supportsMediaUpload": true, "mediaUpload": {"accept": ["application/octet-stream"], "maxSize": "1GB", "protocols": {"simple": {"multipart": true, "path": "/upload/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads"}, "resumable": {"multipart": true, "path": "/resumable/upload/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads"}}}}}}', true));
1241
-    $this->management_webproperties = new Google_ManagementWebpropertiesServiceResource($this, $this->serviceName, 'webproperties', json_decode('{"methods": {"get": {"id": "analytics.management.webproperties.get", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Webproperty"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}, "insert": {"id": "analytics.management.webproperties.insert", "path": "management/accounts/{accountId}/webproperties", "httpMethod": "POST", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Webproperty"}, "response": {"$ref": "Webproperty"}, "scopes": ["https://www.googleapis.com/auth/analytics"]}, "list": {"id": "analytics.management.webproperties.list", "path": "management/accounts/{accountId}/webproperties", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "max-results": {"type": "integer", "format": "int32", "location": "query"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}}, "response": {"$ref": "Webproperties"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}, "patch": {"id": "analytics.management.webproperties.patch", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}", "httpMethod": "PATCH", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Webproperty"}, "response": {"$ref": "Webproperty"}, "scopes": ["https://www.googleapis.com/auth/analytics"]}, "update": {"id": "analytics.management.webproperties.update", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}", "httpMethod": "PUT", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Webproperty"}, "response": {"$ref": "Webproperty"}, "scopes": ["https://www.googleapis.com/auth/analytics"]}}}', true));
1242
-    $this->management_webpropertyUserLinks = new Google_ManagementWebpropertyUserLinksServiceResource($this, $this->serviceName, 'webpropertyUserLinks', json_decode('{"methods": {"delete": {"id": "analytics.management.webpropertyUserLinks.delete", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}", "httpMethod": "DELETE", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "linkId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/analytics.manage.users"]}, "insert": {"id": "analytics.management.webpropertyUserLinks.insert", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks", "httpMethod": "POST", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "EntityUserLink"}, "response": {"$ref": "EntityUserLink"}, "scopes": ["https://www.googleapis.com/auth/analytics.manage.users"]}, "list": {"id": "analytics.management.webpropertyUserLinks.list", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "max-results": {"type": "integer", "format": "int32", "location": "query"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "EntityUserLinks"}, "scopes": ["https://www.googleapis.com/auth/analytics.manage.users"]}, "update": {"id": "analytics.management.webpropertyUserLinks.update", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}", "httpMethod": "PUT", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "linkId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "EntityUserLink"}, "response": {"$ref": "EntityUserLink"}, "scopes": ["https://www.googleapis.com/auth/analytics.manage.users"]}}}', true));
1243
-    $this->metadata_columns = new Google_MetadataColumnsServiceResource($this, $this->serviceName, 'columns', json_decode('{"methods": {"list": {"id": "analytics.metadata.columns.list", "path": "metadata/{reportType}/columns", "httpMethod": "GET", "parameters": {"reportType": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Columns"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}}}', true));
1227
+	$client->addService($this->serviceName, $this->version);
1228
+	$this->data_ga = new Google_DataGaServiceResource($this, $this->serviceName, 'ga', json_decode('{"methods": {"get": {"id": "analytics.data.ga.get", "path": "data/ga", "httpMethod": "GET", "parameters": {"dimensions": {"type": "string", "location": "query"}, "end-date": {"type": "string", "required": true, "location": "query"}, "filters": {"type": "string", "location": "query"}, "ids": {"type": "string", "required": true, "location": "query"}, "max-results": {"type": "integer", "format": "int32", "location": "query"}, "metrics": {"type": "string", "required": true, "location": "query"}, "segment": {"type": "string", "location": "query"}, "sort": {"type": "string", "location": "query"}, "start-date": {"type": "string", "required": true, "location": "query"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}}, "response": {"$ref": "GaData"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}}}', true));
1229
+	$this->data_mcf = new Google_DataMcfServiceResource($this, $this->serviceName, 'mcf', json_decode('{"methods": {"get": {"id": "analytics.data.mcf.get", "path": "data/mcf", "httpMethod": "GET", "parameters": {"dimensions": {"type": "string", "location": "query"}, "end-date": {"type": "string", "required": true, "location": "query"}, "filters": {"type": "string", "location": "query"}, "ids": {"type": "string", "required": true, "location": "query"}, "max-results": {"type": "integer", "format": "int32", "location": "query"}, "metrics": {"type": "string", "required": true, "location": "query"}, "sort": {"type": "string", "location": "query"}, "start-date": {"type": "string", "required": true, "location": "query"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}}, "response": {"$ref": "McfData"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}}}', true));
1230
+	$this->data_realtime = new Google_DataRealtimeServiceResource($this, $this->serviceName, 'realtime', json_decode('{"methods": {"get": {"id": "analytics.data.realtime.get", "path": "data/realtime", "httpMethod": "GET", "parameters": {"dimensions": {"type": "string", "location": "query"}, "filters": {"type": "string", "location": "query"}, "ids": {"type": "string", "required": true, "location": "query"}, "max-results": {"type": "integer", "format": "int32", "location": "query"}, "metrics": {"type": "string", "required": true, "location": "query"}, "sort": {"type": "string", "location": "query"}}, "response": {"$ref": "RealtimeData"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}}}', true));
1231
+	$this->management_accountUserLinks = new Google_ManagementAccountUserLinksServiceResource($this, $this->serviceName, 'accountUserLinks', json_decode('{"methods": {"delete": {"id": "analytics.management.accountUserLinks.delete", "path": "management/accounts/{accountId}/entityUserLinks/{linkId}", "httpMethod": "DELETE", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "linkId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/analytics.manage.users"]}, "insert": {"id": "analytics.management.accountUserLinks.insert", "path": "management/accounts/{accountId}/entityUserLinks", "httpMethod": "POST", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "EntityUserLink"}, "response": {"$ref": "EntityUserLink"}, "scopes": ["https://www.googleapis.com/auth/analytics.manage.users"]}, "list": {"id": "analytics.management.accountUserLinks.list", "path": "management/accounts/{accountId}/entityUserLinks", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "max-results": {"type": "integer", "format": "int32", "location": "query"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}}, "response": {"$ref": "EntityUserLinks"}, "scopes": ["https://www.googleapis.com/auth/analytics.manage.users"]}, "update": {"id": "analytics.management.accountUserLinks.update", "path": "management/accounts/{accountId}/entityUserLinks/{linkId}", "httpMethod": "PUT", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "linkId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "EntityUserLink"}, "response": {"$ref": "EntityUserLink"}, "scopes": ["https://www.googleapis.com/auth/analytics.manage.users"]}}}', true));
1232
+	$this->management_accounts = new Google_ManagementAccountsServiceResource($this, $this->serviceName, 'accounts', json_decode('{"methods": {"list": {"id": "analytics.management.accounts.list", "path": "management/accounts", "httpMethod": "GET", "parameters": {"max-results": {"type": "integer", "format": "int32", "location": "query"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}}, "response": {"$ref": "Accounts"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}}}', true));
1233
+	$this->management_customDataSources = new Google_ManagementCustomDataSourcesServiceResource($this, $this->serviceName, 'customDataSources', json_decode('{"methods": {"list": {"id": "analytics.management.customDataSources.list", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "max-results": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "CustomDataSources"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}}}', true));
1234
+	$this->management_dailyUploads = new Google_ManagementDailyUploadsServiceResource($this, $this->serviceName, 'dailyUploads', json_decode('{"methods": {"delete": {"id": "analytics.management.dailyUploads.delete", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/dailyUploads/{date}", "httpMethod": "DELETE", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "customDataSourceId": {"type": "string", "required": true, "location": "path"}, "date": {"type": "string", "required": true, "location": "path"}, "type": {"type": "string", "required": true, "enum": ["cost"], "location": "query"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/analytics"]}, "list": {"id": "analytics.management.dailyUploads.list", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/dailyUploads", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "customDataSourceId": {"type": "string", "required": true, "location": "path"}, "end-date": {"type": "string", "required": true, "location": "query"}, "max-results": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "start-date": {"type": "string", "required": true, "location": "query"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "DailyUploads"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}, "upload": {"id": "analytics.management.dailyUploads.upload", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/dailyUploads/{date}/uploads", "httpMethod": "POST", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "appendNumber": {"type": "integer", "required": true, "format": "int32", "minimum": "1", "maximum": "20", "location": "query"}, "customDataSourceId": {"type": "string", "required": true, "location": "path"}, "date": {"type": "string", "required": true, "location": "path"}, "reset": {"type": "boolean", "default": "false", "location": "query"}, "type": {"type": "string", "required": true, "enum": ["cost"], "location": "query"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "DailyUploadAppend"}, "scopes": ["https://www.googleapis.com/auth/analytics"], "supportsMediaUpload": true, "mediaUpload": {"accept": ["application/octet-stream"], "maxSize": "5MB", "protocols": {"simple": {"multipart": true, "path": "/upload/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/dailyUploads/{date}/uploads"}, "resumable": {"multipart": true, "path": "/resumable/upload/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/dailyUploads/{date}/uploads"}}}}}}', true));
1235
+	$this->management_experiments = new Google_ManagementExperimentsServiceResource($this, $this->serviceName, 'experiments', json_decode('{"methods": {"delete": {"id": "analytics.management.experiments.delete", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}", "httpMethod": "DELETE", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "experimentId": {"type": "string", "required": true, "location": "path"}, "profileId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/analytics"]}, "get": {"id": "analytics.management.experiments.get", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "experimentId": {"type": "string", "required": true, "location": "path"}, "profileId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Experiment"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}, "insert": {"id": "analytics.management.experiments.insert", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments", "httpMethod": "POST", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "profileId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Experiment"}, "response": {"$ref": "Experiment"}, "scopes": ["https://www.googleapis.com/auth/analytics"]}, "list": {"id": "analytics.management.experiments.list", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "max-results": {"type": "integer", "format": "int32", "location": "query"}, "profileId": {"type": "string", "required": true, "location": "path"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Experiments"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}, "patch": {"id": "analytics.management.experiments.patch", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}", "httpMethod": "PATCH", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "experimentId": {"type": "string", "required": true, "location": "path"}, "profileId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Experiment"}, "response": {"$ref": "Experiment"}, "scopes": ["https://www.googleapis.com/auth/analytics"]}, "update": {"id": "analytics.management.experiments.update", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}", "httpMethod": "PUT", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "experimentId": {"type": "string", "required": true, "location": "path"}, "profileId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Experiment"}, "response": {"$ref": "Experiment"}, "scopes": ["https://www.googleapis.com/auth/analytics"]}}}', true));
1236
+	$this->management_goals = new Google_ManagementGoalsServiceResource($this, $this->serviceName, 'goals', json_decode('{"methods": {"get": {"id": "analytics.management.goals.get", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "goalId": {"type": "string", "required": true, "location": "path"}, "profileId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Goal"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}, "insert": {"id": "analytics.management.goals.insert", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals", "httpMethod": "POST", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "profileId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Goal"}, "response": {"$ref": "Goal"}, "scopes": ["https://www.googleapis.com/auth/analytics"]}, "list": {"id": "analytics.management.goals.list", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "max-results": {"type": "integer", "format": "int32", "location": "query"}, "profileId": {"type": "string", "required": true, "location": "path"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Goals"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}, "patch": {"id": "analytics.management.goals.patch", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}", "httpMethod": "PATCH", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "goalId": {"type": "string", "required": true, "location": "path"}, "profileId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Goal"}, "response": {"$ref": "Goal"}, "scopes": ["https://www.googleapis.com/auth/analytics"]}, "update": {"id": "analytics.management.goals.update", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}", "httpMethod": "PUT", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "goalId": {"type": "string", "required": true, "location": "path"}, "profileId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Goal"}, "response": {"$ref": "Goal"}, "scopes": ["https://www.googleapis.com/auth/analytics"]}}}', true));
1237
+	$this->management_profileUserLinks = new Google_ManagementProfileUserLinksServiceResource($this, $this->serviceName, 'profileUserLinks', json_decode('{"methods": {"delete": {"id": "analytics.management.profileUserLinks.delete", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}", "httpMethod": "DELETE", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "linkId": {"type": "string", "required": true, "location": "path"}, "profileId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/analytics.manage.users"]}, "insert": {"id": "analytics.management.profileUserLinks.insert", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks", "httpMethod": "POST", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "profileId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "EntityUserLink"}, "response": {"$ref": "EntityUserLink"}, "scopes": ["https://www.googleapis.com/auth/analytics.manage.users"]}, "list": {"id": "analytics.management.profileUserLinks.list", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "max-results": {"type": "integer", "format": "int32", "location": "query"}, "profileId": {"type": "string", "required": true, "location": "path"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "EntityUserLinks"}, "scopes": ["https://www.googleapis.com/auth/analytics.manage.users"]}, "update": {"id": "analytics.management.profileUserLinks.update", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}", "httpMethod": "PUT", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "linkId": {"type": "string", "required": true, "location": "path"}, "profileId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "EntityUserLink"}, "response": {"$ref": "EntityUserLink"}, "scopes": ["https://www.googleapis.com/auth/analytics.manage.users"]}}}', true));
1238
+	$this->management_profiles = new Google_ManagementProfilesServiceResource($this, $this->serviceName, 'profiles', json_decode('{"methods": {"delete": {"id": "analytics.management.profiles.delete", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}", "httpMethod": "DELETE", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "profileId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/analytics"]}, "get": {"id": "analytics.management.profiles.get", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "profileId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Profile"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}, "insert": {"id": "analytics.management.profiles.insert", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles", "httpMethod": "POST", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Profile"}, "response": {"$ref": "Profile"}, "scopes": ["https://www.googleapis.com/auth/analytics"]}, "list": {"id": "analytics.management.profiles.list", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "max-results": {"type": "integer", "format": "int32", "location": "query"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Profiles"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}, "patch": {"id": "analytics.management.profiles.patch", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}", "httpMethod": "PATCH", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "profileId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Profile"}, "response": {"$ref": "Profile"}, "scopes": ["https://www.googleapis.com/auth/analytics"]}, "update": {"id": "analytics.management.profiles.update", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}", "httpMethod": "PUT", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "profileId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Profile"}, "response": {"$ref": "Profile"}, "scopes": ["https://www.googleapis.com/auth/analytics"]}}}', true));
1239
+	$this->management_segments = new Google_ManagementSegmentsServiceResource($this, $this->serviceName, 'segments', json_decode('{"methods": {"list": {"id": "analytics.management.segments.list", "path": "management/segments", "httpMethod": "GET", "parameters": {"max-results": {"type": "integer", "format": "int32", "location": "query"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}}, "response": {"$ref": "Segments"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}}}', true));
1240
+	$this->management_uploads = new Google_ManagementUploadsServiceResource($this, $this->serviceName, 'uploads', json_decode('{"methods": {"deleteUploadData": {"id": "analytics.management.uploads.deleteUploadData", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/deleteUploadData", "httpMethod": "POST", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "customDataSourceId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "AnalyticsDataimportDeleteUploadDataRequest"}, "scopes": ["https://www.googleapis.com/auth/analytics"]}, "get": {"id": "analytics.management.uploads.get", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads/{uploadId}", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "customDataSourceId": {"type": "string", "required": true, "location": "path"}, "uploadId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Upload"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}, "list": {"id": "analytics.management.uploads.list", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "customDataSourceId": {"type": "string", "required": true, "location": "path"}, "max-results": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Uploads"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}, "uploadData": {"id": "analytics.management.uploads.uploadData", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads", "httpMethod": "POST", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "customDataSourceId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Upload"}, "scopes": ["https://www.googleapis.com/auth/analytics"], "supportsMediaUpload": true, "mediaUpload": {"accept": ["application/octet-stream"], "maxSize": "1GB", "protocols": {"simple": {"multipart": true, "path": "/upload/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads"}, "resumable": {"multipart": true, "path": "/resumable/upload/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads"}}}}}}', true));
1241
+	$this->management_webproperties = new Google_ManagementWebpropertiesServiceResource($this, $this->serviceName, 'webproperties', json_decode('{"methods": {"get": {"id": "analytics.management.webproperties.get", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Webproperty"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}, "insert": {"id": "analytics.management.webproperties.insert", "path": "management/accounts/{accountId}/webproperties", "httpMethod": "POST", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Webproperty"}, "response": {"$ref": "Webproperty"}, "scopes": ["https://www.googleapis.com/auth/analytics"]}, "list": {"id": "analytics.management.webproperties.list", "path": "management/accounts/{accountId}/webproperties", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "max-results": {"type": "integer", "format": "int32", "location": "query"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}}, "response": {"$ref": "Webproperties"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}, "patch": {"id": "analytics.management.webproperties.patch", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}", "httpMethod": "PATCH", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Webproperty"}, "response": {"$ref": "Webproperty"}, "scopes": ["https://www.googleapis.com/auth/analytics"]}, "update": {"id": "analytics.management.webproperties.update", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}", "httpMethod": "PUT", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Webproperty"}, "response": {"$ref": "Webproperty"}, "scopes": ["https://www.googleapis.com/auth/analytics"]}}}', true));
1242
+	$this->management_webpropertyUserLinks = new Google_ManagementWebpropertyUserLinksServiceResource($this, $this->serviceName, 'webpropertyUserLinks', json_decode('{"methods": {"delete": {"id": "analytics.management.webpropertyUserLinks.delete", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}", "httpMethod": "DELETE", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "linkId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/analytics.manage.users"]}, "insert": {"id": "analytics.management.webpropertyUserLinks.insert", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks", "httpMethod": "POST", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "EntityUserLink"}, "response": {"$ref": "EntityUserLink"}, "scopes": ["https://www.googleapis.com/auth/analytics.manage.users"]}, "list": {"id": "analytics.management.webpropertyUserLinks.list", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "max-results": {"type": "integer", "format": "int32", "location": "query"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "EntityUserLinks"}, "scopes": ["https://www.googleapis.com/auth/analytics.manage.users"]}, "update": {"id": "analytics.management.webpropertyUserLinks.update", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}", "httpMethod": "PUT", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "linkId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "EntityUserLink"}, "response": {"$ref": "EntityUserLink"}, "scopes": ["https://www.googleapis.com/auth/analytics.manage.users"]}}}', true));
1243
+	$this->metadata_columns = new Google_MetadataColumnsServiceResource($this, $this->serviceName, 'columns', json_decode('{"methods": {"list": {"id": "analytics.metadata.columns.list", "path": "metadata/{reportType}/columns", "httpMethod": "GET", "parameters": {"reportType": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Columns"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}}}', true));
1244 1244
 
1245 1245
   }
1246 1246
 }
@@ -1261,52 +1261,52 @@  discard block
 block discarded – undo
1261 1261
   public $selfLink;
1262 1262
   public $updated;
1263 1263
   public function setChildLink(Google_AccountChildLink $childLink) {
1264
-    $this->childLink = $childLink;
1264
+	$this->childLink = $childLink;
1265 1265
   }
1266 1266
   public function getChildLink() {
1267
-    return $this->childLink;
1267
+	return $this->childLink;
1268 1268
   }
1269 1269
   public function setCreated( $created) {
1270
-    $this->created = $created;
1270
+	$this->created = $created;
1271 1271
   }
1272 1272
   public function getCreated() {
1273
-    return $this->created;
1273
+	return $this->created;
1274 1274
   }
1275 1275
   public function setId( $id) {
1276
-    $this->id = $id;
1276
+	$this->id = $id;
1277 1277
   }
1278 1278
   public function getId() {
1279
-    return $this->id;
1279
+	return $this->id;
1280 1280
   }
1281 1281
   public function setKind( $kind) {
1282
-    $this->kind = $kind;
1282
+	$this->kind = $kind;
1283 1283
   }
1284 1284
   public function getKind() {
1285
-    return $this->kind;
1285
+	return $this->kind;
1286 1286
   }
1287 1287
   public function setName( $name) {
1288
-    $this->name = $name;
1288
+	$this->name = $name;
1289 1289
   }
1290 1290
   public function getName() {
1291
-    return $this->name;
1291
+	return $this->name;
1292 1292
   }
1293 1293
   public function setPermissions(Google_AccountPermissions $permissions) {
1294
-    $this->permissions = $permissions;
1294
+	$this->permissions = $permissions;
1295 1295
   }
1296 1296
   public function getPermissions() {
1297
-    return $this->permissions;
1297
+	return $this->permissions;
1298 1298
   }
1299 1299
   public function setSelfLink( $selfLink) {
1300
-    $this->selfLink = $selfLink;
1300
+	$this->selfLink = $selfLink;
1301 1301
   }
1302 1302
   public function getSelfLink() {
1303
-    return $this->selfLink;
1303
+	return $this->selfLink;
1304 1304
   }
1305 1305
   public function setUpdated( $updated) {
1306
-    $this->updated = $updated;
1306
+	$this->updated = $updated;
1307 1307
   }
1308 1308
   public function getUpdated() {
1309
-    return $this->updated;
1309
+	return $this->updated;
1310 1310
   }
1311 1311
 }
1312 1312
 
@@ -1314,27 +1314,27 @@  discard block
 block discarded – undo
1314 1314
   public $href;
1315 1315
   public $type;
1316 1316
   public function setHref( $href) {
1317
-    $this->href = $href;
1317
+	$this->href = $href;
1318 1318
   }
1319 1319
   public function getHref() {
1320
-    return $this->href;
1320
+	return $this->href;
1321 1321
   }
1322 1322
   public function setType( $type) {
1323
-    $this->type = $type;
1323
+	$this->type = $type;
1324 1324
   }
1325 1325
   public function getType() {
1326
-    return $this->type;
1326
+	return $this->type;
1327 1327
   }
1328 1328
 }
1329 1329
 
1330 1330
 class Google_AccountPermissions extends Google_Model {
1331 1331
   public $effective;
1332 1332
   public function setEffective(/* array(Google_string) */ $effective) {
1333
-    $this->assertIsArray($effective, 'Google_string', __METHOD__);
1334
-    $this->effective = $effective;
1333
+	$this->assertIsArray($effective, 'Google_string', __METHOD__);
1334
+	$this->effective = $effective;
1335 1335
   }
1336 1336
   public function getEffective() {
1337
-    return $this->effective;
1337
+	return $this->effective;
1338 1338
   }
1339 1339
 }
1340 1340
 
@@ -1344,28 +1344,28 @@  discard block
 block discarded – undo
1344 1344
   public $kind;
1345 1345
   public $name;
1346 1346
   public function setHref( $href) {
1347
-    $this->href = $href;
1347
+	$this->href = $href;
1348 1348
   }
1349 1349
   public function getHref() {
1350
-    return $this->href;
1350
+	return $this->href;
1351 1351
   }
1352 1352
   public function setId( $id) {
1353
-    $this->id = $id;
1353
+	$this->id = $id;
1354 1354
   }
1355 1355
   public function getId() {
1356
-    return $this->id;
1356
+	return $this->id;
1357 1357
   }
1358 1358
   public function setKind( $kind) {
1359
-    $this->kind = $kind;
1359
+	$this->kind = $kind;
1360 1360
   }
1361 1361
   public function getKind() {
1362
-    return $this->kind;
1362
+	return $this->kind;
1363 1363
   }
1364 1364
   public function setName( $name) {
1365
-    $this->name = $name;
1365
+	$this->name = $name;
1366 1366
   }
1367 1367
   public function getName() {
1368
-    return $this->name;
1368
+	return $this->name;
1369 1369
   }
1370 1370
 }
1371 1371
 
@@ -1381,64 +1381,64 @@  discard block
 block discarded – undo
1381 1381
   public $totalResults;
1382 1382
   public $username;
1383 1383
   public function setItems(/* array(Google_Account) */ $items) {
1384
-    $this->assertIsArray($items, 'Google_Account', __METHOD__);
1385
-    $this->items = $items;
1384
+	$this->assertIsArray($items, 'Google_Account', __METHOD__);
1385
+	$this->items = $items;
1386 1386
   }
1387 1387
   public function getItems() {
1388
-    return $this->items;
1388
+	return $this->items;
1389 1389
   }
1390 1390
   public function setItemsPerPage( $itemsPerPage) {
1391
-    $this->itemsPerPage = $itemsPerPage;
1391
+	$this->itemsPerPage = $itemsPerPage;
1392 1392
   }
1393 1393
   public function getItemsPerPage() {
1394
-    return $this->itemsPerPage;
1394
+	return $this->itemsPerPage;
1395 1395
   }
1396 1396
   public function setKind( $kind) {
1397
-    $this->kind = $kind;
1397
+	$this->kind = $kind;
1398 1398
   }
1399 1399
   public function getKind() {
1400
-    return $this->kind;
1400
+	return $this->kind;
1401 1401
   }
1402 1402
   public function setNextLink( $nextLink) {
1403
-    $this->nextLink = $nextLink;
1403
+	$this->nextLink = $nextLink;
1404 1404
   }
1405 1405
   public function getNextLink() {
1406
-    return $this->nextLink;
1406
+	return $this->nextLink;
1407 1407
   }
1408 1408
   public function setPreviousLink( $previousLink) {
1409
-    $this->previousLink = $previousLink;
1409
+	$this->previousLink = $previousLink;
1410 1410
   }
1411 1411
   public function getPreviousLink() {
1412
-    return $this->previousLink;
1412
+	return $this->previousLink;
1413 1413
   }
1414 1414
   public function setStartIndex( $startIndex) {
1415
-    $this->startIndex = $startIndex;
1415
+	$this->startIndex = $startIndex;
1416 1416
   }
1417 1417
   public function getStartIndex() {
1418
-    return $this->startIndex;
1418
+	return $this->startIndex;
1419 1419
   }
1420 1420
   public function setTotalResults( $totalResults) {
1421
-    $this->totalResults = $totalResults;
1421
+	$this->totalResults = $totalResults;
1422 1422
   }
1423 1423
   public function getTotalResults() {
1424
-    return $this->totalResults;
1424
+	return $this->totalResults;
1425 1425
   }
1426 1426
   public function setUsername( $username) {
1427
-    $this->username = $username;
1427
+	$this->username = $username;
1428 1428
   }
1429 1429
   public function getUsername() {
1430
-    return $this->username;
1430
+	return $this->username;
1431 1431
   }
1432 1432
 }
1433 1433
 
1434 1434
 class Google_AnalyticsDataimportDeleteUploadDataRequest extends Google_Model {
1435 1435
   public $customDataImportUids;
1436 1436
   public function setCustomDataImportUids(/* array(Google_string) */ $customDataImportUids) {
1437
-    $this->assertIsArray($customDataImportUids, 'Google_string', __METHOD__);
1438
-    $this->customDataImportUids = $customDataImportUids;
1437
+	$this->assertIsArray($customDataImportUids, 'Google_string', __METHOD__);
1438
+	$this->customDataImportUids = $customDataImportUids;
1439 1439
   }
1440 1440
   public function getCustomDataImportUids() {
1441
-    return $this->customDataImportUids;
1441
+	return $this->customDataImportUids;
1442 1442
   }
1443 1443
 }
1444 1444
 
@@ -1447,22 +1447,22 @@  discard block
 block discarded – undo
1447 1447
   public $id;
1448 1448
   public $kind;
1449 1449
   public function setAttributes( $attributes) {
1450
-    $this->attributes = $attributes;
1450
+	$this->attributes = $attributes;
1451 1451
   }
1452 1452
   public function getAttributes() {
1453
-    return $this->attributes;
1453
+	return $this->attributes;
1454 1454
   }
1455 1455
   public function setId( $id) {
1456
-    $this->id = $id;
1456
+	$this->id = $id;
1457 1457
   }
1458 1458
   public function getId() {
1459
-    return $this->id;
1459
+	return $this->id;
1460 1460
   }
1461 1461
   public function setKind( $kind) {
1462
-    $this->kind = $kind;
1462
+	$this->kind = $kind;
1463 1463
   }
1464 1464
   public function getKind() {
1465
-    return $this->kind;
1465
+	return $this->kind;
1466 1466
   }
1467 1467
 }
1468 1468
 
@@ -1475,36 +1475,36 @@  discard block
 block discarded – undo
1475 1475
   public $kind;
1476 1476
   public $totalResults;
1477 1477
   public function setAttributeNames(/* array(Google_string) */ $attributeNames) {
1478
-    $this->assertIsArray($attributeNames, 'Google_string', __METHOD__);
1479
-    $this->attributeNames = $attributeNames;
1478
+	$this->assertIsArray($attributeNames, 'Google_string', __METHOD__);
1479
+	$this->attributeNames = $attributeNames;
1480 1480
   }
1481 1481
   public function getAttributeNames() {
1482
-    return $this->attributeNames;
1482
+	return $this->attributeNames;
1483 1483
   }
1484 1484
   public function setEtag( $etag) {
1485
-    $this->etag = $etag;
1485
+	$this->etag = $etag;
1486 1486
   }
1487 1487
   public function getEtag() {
1488
-    return $this->etag;
1488
+	return $this->etag;
1489 1489
   }
1490 1490
   public function setItems(/* array(Google_Column) */ $items) {
1491
-    $this->assertIsArray($items, 'Google_Column', __METHOD__);
1492
-    $this->items = $items;
1491
+	$this->assertIsArray($items, 'Google_Column', __METHOD__);
1492
+	$this->items = $items;
1493 1493
   }
1494 1494
   public function getItems() {
1495
-    return $this->items;
1495
+	return $this->items;
1496 1496
   }
1497 1497
   public function setKind( $kind) {
1498
-    $this->kind = $kind;
1498
+	$this->kind = $kind;
1499 1499
   }
1500 1500
   public function getKind() {
1501
-    return $this->kind;
1501
+	return $this->kind;
1502 1502
   }
1503 1503
   public function setTotalResults( $totalResults) {
1504
-    $this->totalResults = $totalResults;
1504
+	$this->totalResults = $totalResults;
1505 1505
   }
1506 1506
   public function getTotalResults() {
1507
-    return $this->totalResults;
1507
+	return $this->totalResults;
1508 1508
   }
1509 1509
 }
1510 1510
 
@@ -1527,83 +1527,83 @@  discard block
 block discarded – undo
1527 1527
   public $updated;
1528 1528
   public $webPropertyId;
1529 1529
   public function setAccountId( $accountId) {
1530
-    $this->accountId = $accountId;
1530
+	$this->accountId = $accountId;
1531 1531
   }
1532 1532
   public function getAccountId() {
1533
-    return $this->accountId;
1533
+	return $this->accountId;
1534 1534
   }
1535 1535
   public function setChildLink(Google_CustomDataSourceChildLink $childLink) {
1536
-    $this->childLink = $childLink;
1536
+	$this->childLink = $childLink;
1537 1537
   }
1538 1538
   public function getChildLink() {
1539
-    return $this->childLink;
1539
+	return $this->childLink;
1540 1540
   }
1541 1541
   public function setCreated( $created) {
1542
-    $this->created = $created;
1542
+	$this->created = $created;
1543 1543
   }
1544 1544
   public function getCreated() {
1545
-    return $this->created;
1545
+	return $this->created;
1546 1546
   }
1547 1547
   public function setDescription( $description) {
1548
-    $this->description = $description;
1548
+	$this->description = $description;
1549 1549
   }
1550 1550
   public function getDescription() {
1551
-    return $this->description;
1551
+	return $this->description;
1552 1552
   }
1553 1553
   public function setId( $id) {
1554
-    $this->id = $id;
1554
+	$this->id = $id;
1555 1555
   }
1556 1556
   public function getId() {
1557
-    return $this->id;
1557
+	return $this->id;
1558 1558
   }
1559 1559
   public function setKind( $kind) {
1560
-    $this->kind = $kind;
1560
+	$this->kind = $kind;
1561 1561
   }
1562 1562
   public function getKind() {
1563
-    return $this->kind;
1563
+	return $this->kind;
1564 1564
   }
1565 1565
   public function setName( $name) {
1566
-    $this->name = $name;
1566
+	$this->name = $name;
1567 1567
   }
1568 1568
   public function getName() {
1569
-    return $this->name;
1569
+	return $this->name;
1570 1570
   }
1571 1571
   public function setParentLink(Google_CustomDataSourceParentLink $parentLink) {
1572
-    $this->parentLink = $parentLink;
1572
+	$this->parentLink = $parentLink;
1573 1573
   }
1574 1574
   public function getParentLink() {
1575
-    return $this->parentLink;
1575
+	return $this->parentLink;
1576 1576
   }
1577 1577
   public function setProfilesLinked(/* array(Google_string) */ $profilesLinked) {
1578
-    $this->assertIsArray($profilesLinked, 'Google_string', __METHOD__);
1579
-    $this->profilesLinked = $profilesLinked;
1578
+	$this->assertIsArray($profilesLinked, 'Google_string', __METHOD__);
1579
+	$this->profilesLinked = $profilesLinked;
1580 1580
   }
1581 1581
   public function getProfilesLinked() {
1582
-    return $this->profilesLinked;
1582
+	return $this->profilesLinked;
1583 1583
   }
1584 1584
   public function setSelfLink( $selfLink) {
1585
-    $this->selfLink = $selfLink;
1585
+	$this->selfLink = $selfLink;
1586 1586
   }
1587 1587
   public function getSelfLink() {
1588
-    return $this->selfLink;
1588
+	return $this->selfLink;
1589 1589
   }
1590 1590
   public function setType( $type) {
1591
-    $this->type = $type;
1591
+	$this->type = $type;
1592 1592
   }
1593 1593
   public function getType() {
1594
-    return $this->type;
1594
+	return $this->type;
1595 1595
   }
1596 1596
   public function setUpdated( $updated) {
1597
-    $this->updated = $updated;
1597
+	$this->updated = $updated;
1598 1598
   }
1599 1599
   public function getUpdated() {
1600
-    return $this->updated;
1600
+	return $this->updated;
1601 1601
   }
1602 1602
   public function setWebPropertyId( $webPropertyId) {
1603
-    $this->webPropertyId = $webPropertyId;
1603
+	$this->webPropertyId = $webPropertyId;
1604 1604
   }
1605 1605
   public function getWebPropertyId() {
1606
-    return $this->webPropertyId;
1606
+	return $this->webPropertyId;
1607 1607
   }
1608 1608
 }
1609 1609
 
@@ -1611,16 +1611,16 @@  discard block
 block discarded – undo
1611 1611
   public $href;
1612 1612
   public $type;
1613 1613
   public function setHref( $href) {
1614
-    $this->href = $href;
1614
+	$this->href = $href;
1615 1615
   }
1616 1616
   public function getHref() {
1617
-    return $this->href;
1617
+	return $this->href;
1618 1618
   }
1619 1619
   public function setType( $type) {
1620
-    $this->type = $type;
1620
+	$this->type = $type;
1621 1621
   }
1622 1622
   public function getType() {
1623
-    return $this->type;
1623
+	return $this->type;
1624 1624
   }
1625 1625
 }
1626 1626
 
@@ -1628,16 +1628,16 @@  discard block
 block discarded – undo
1628 1628
   public $href;
1629 1629
   public $type;
1630 1630
   public function setHref( $href) {
1631
-    $this->href = $href;
1631
+	$this->href = $href;
1632 1632
   }
1633 1633
   public function getHref() {
1634
-    return $this->href;
1634
+	return $this->href;
1635 1635
   }
1636 1636
   public function setType( $type) {
1637
-    $this->type = $type;
1637
+	$this->type = $type;
1638 1638
   }
1639 1639
   public function getType() {
1640
-    return $this->type;
1640
+	return $this->type;
1641 1641
   }
1642 1642
 }
1643 1643
 
@@ -1653,53 +1653,53 @@  discard block
 block discarded – undo
1653 1653
   public $totalResults;
1654 1654
   public $username;
1655 1655
   public function setItems(/* array(Google_CustomDataSource) */ $items) {
1656
-    $this->assertIsArray($items, 'Google_CustomDataSource', __METHOD__);
1657
-    $this->items = $items;
1656
+	$this->assertIsArray($items, 'Google_CustomDataSource', __METHOD__);
1657
+	$this->items = $items;
1658 1658
   }
1659 1659
   public function getItems() {
1660
-    return $this->items;
1660
+	return $this->items;
1661 1661
   }
1662 1662
   public function setItemsPerPage( $itemsPerPage) {
1663
-    $this->itemsPerPage = $itemsPerPage;
1663
+	$this->itemsPerPage = $itemsPerPage;
1664 1664
   }
1665 1665
   public function getItemsPerPage() {
1666
-    return $this->itemsPerPage;
1666
+	return $this->itemsPerPage;
1667 1667
   }
1668 1668
   public function setKind( $kind) {
1669
-    $this->kind = $kind;
1669
+	$this->kind = $kind;
1670 1670
   }
1671 1671
   public function getKind() {
1672
-    return $this->kind;
1672
+	return $this->kind;
1673 1673
   }
1674 1674
   public function setNextLink( $nextLink) {
1675
-    $this->nextLink = $nextLink;
1675
+	$this->nextLink = $nextLink;
1676 1676
   }
1677 1677
   public function getNextLink() {
1678
-    return $this->nextLink;
1678
+	return $this->nextLink;
1679 1679
   }
1680 1680
   public function setPreviousLink( $previousLink) {
1681
-    $this->previousLink = $previousLink;
1681
+	$this->previousLink = $previousLink;
1682 1682
   }
1683 1683
   public function getPreviousLink() {
1684
-    return $this->previousLink;
1684
+	return $this->previousLink;
1685 1685
   }
1686 1686
   public function setStartIndex( $startIndex) {
1687
-    $this->startIndex = $startIndex;
1687
+	$this->startIndex = $startIndex;
1688 1688
   }
1689 1689
   public function getStartIndex() {
1690
-    return $this->startIndex;
1690
+	return $this->startIndex;
1691 1691
   }
1692 1692
   public function setTotalResults( $totalResults) {
1693
-    $this->totalResults = $totalResults;
1693
+	$this->totalResults = $totalResults;
1694 1694
   }
1695 1695
   public function getTotalResults() {
1696
-    return $this->totalResults;
1696
+	return $this->totalResults;
1697 1697
   }
1698 1698
   public function setUsername( $username) {
1699
-    $this->username = $username;
1699
+	$this->username = $username;
1700 1700
   }
1701 1701
   public function getUsername() {
1702
-    return $this->username;
1702
+	return $this->username;
1703 1703
   }
1704 1704
 }
1705 1705
 
@@ -1720,71 +1720,71 @@  discard block
 block discarded – undo
1720 1720
   public $selfLink;
1721 1721
   public $webPropertyId;
1722 1722
   public function setAccountId( $accountId) {
1723
-    $this->accountId = $accountId;
1723
+	$this->accountId = $accountId;
1724 1724
   }
1725 1725
   public function getAccountId() {
1726
-    return $this->accountId;
1726
+	return $this->accountId;
1727 1727
   }
1728 1728
   public function setAppendCount( $appendCount) {
1729
-    $this->appendCount = $appendCount;
1729
+	$this->appendCount = $appendCount;
1730 1730
   }
1731 1731
   public function getAppendCount() {
1732
-    return $this->appendCount;
1732
+	return $this->appendCount;
1733 1733
   }
1734 1734
   public function setCreatedTime( $createdTime) {
1735
-    $this->createdTime = $createdTime;
1735
+	$this->createdTime = $createdTime;
1736 1736
   }
1737 1737
   public function getCreatedTime() {
1738
-    return $this->createdTime;
1738
+	return $this->createdTime;
1739 1739
   }
1740 1740
   public function setCustomDataSourceId( $customDataSourceId) {
1741
-    $this->customDataSourceId = $customDataSourceId;
1741
+	$this->customDataSourceId = $customDataSourceId;
1742 1742
   }
1743 1743
   public function getCustomDataSourceId() {
1744
-    return $this->customDataSourceId;
1744
+	return $this->customDataSourceId;
1745 1745
   }
1746 1746
   public function setDate( $date) {
1747
-    $this->date = $date;
1747
+	$this->date = $date;
1748 1748
   }
1749 1749
   public function getDate() {
1750
-    return $this->date;
1750
+	return $this->date;
1751 1751
   }
1752 1752
   public function setKind( $kind) {
1753
-    $this->kind = $kind;
1753
+	$this->kind = $kind;
1754 1754
   }
1755 1755
   public function getKind() {
1756
-    return $this->kind;
1756
+	return $this->kind;
1757 1757
   }
1758 1758
   public function setModifiedTime( $modifiedTime) {
1759
-    $this->modifiedTime = $modifiedTime;
1759
+	$this->modifiedTime = $modifiedTime;
1760 1760
   }
1761 1761
   public function getModifiedTime() {
1762
-    return $this->modifiedTime;
1762
+	return $this->modifiedTime;
1763 1763
   }
1764 1764
   public function setParentLink(Google_DailyUploadParentLink $parentLink) {
1765
-    $this->parentLink = $parentLink;
1765
+	$this->parentLink = $parentLink;
1766 1766
   }
1767 1767
   public function getParentLink() {
1768
-    return $this->parentLink;
1768
+	return $this->parentLink;
1769 1769
   }
1770 1770
   public function setRecentChanges(/* array(Google_DailyUploadRecentChanges) */ $recentChanges) {
1771
-    $this->assertIsArray($recentChanges, 'Google_DailyUploadRecentChanges', __METHOD__);
1772
-    $this->recentChanges = $recentChanges;
1771
+	$this->assertIsArray($recentChanges, 'Google_DailyUploadRecentChanges', __METHOD__);
1772
+	$this->recentChanges = $recentChanges;
1773 1773
   }
1774 1774
   public function getRecentChanges() {
1775
-    return $this->recentChanges;
1775
+	return $this->recentChanges;
1776 1776
   }
1777 1777
   public function setSelfLink( $selfLink) {
1778
-    $this->selfLink = $selfLink;
1778
+	$this->selfLink = $selfLink;
1779 1779
   }
1780 1780
   public function getSelfLink() {
1781
-    return $this->selfLink;
1781
+	return $this->selfLink;
1782 1782
   }
1783 1783
   public function setWebPropertyId( $webPropertyId) {
1784
-    $this->webPropertyId = $webPropertyId;
1784
+	$this->webPropertyId = $webPropertyId;
1785 1785
   }
1786 1786
   public function getWebPropertyId() {
1787
-    return $this->webPropertyId;
1787
+	return $this->webPropertyId;
1788 1788
   }
1789 1789
 }
1790 1790
 
@@ -1797,46 +1797,46 @@  discard block
 block discarded – undo
1797 1797
   public $nextAppendLink;
1798 1798
   public $webPropertyId;
1799 1799
   public function setAccountId( $accountId) {
1800
-    $this->accountId = $accountId;
1800
+	$this->accountId = $accountId;
1801 1801
   }
1802 1802
   public function getAccountId() {
1803
-    return $this->accountId;
1803
+	return $this->accountId;
1804 1804
   }
1805 1805
   public function setAppendNumber( $appendNumber) {
1806
-    $this->appendNumber = $appendNumber;
1806
+	$this->appendNumber = $appendNumber;
1807 1807
   }
1808 1808
   public function getAppendNumber() {
1809
-    return $this->appendNumber;
1809
+	return $this->appendNumber;
1810 1810
   }
1811 1811
   public function setCustomDataSourceId( $customDataSourceId) {
1812
-    $this->customDataSourceId = $customDataSourceId;
1812
+	$this->customDataSourceId = $customDataSourceId;
1813 1813
   }
1814 1814
   public function getCustomDataSourceId() {
1815
-    return $this->customDataSourceId;
1815
+	return $this->customDataSourceId;
1816 1816
   }
1817 1817
   public function setDate( $date) {
1818
-    $this->date = $date;
1818
+	$this->date = $date;
1819 1819
   }
1820 1820
   public function getDate() {
1821
-    return $this->date;
1821
+	return $this->date;
1822 1822
   }
1823 1823
   public function setKind( $kind) {
1824
-    $this->kind = $kind;
1824
+	$this->kind = $kind;
1825 1825
   }
1826 1826
   public function getKind() {
1827
-    return $this->kind;
1827
+	return $this->kind;
1828 1828
   }
1829 1829
   public function setNextAppendLink( $nextAppendLink) {
1830
-    $this->nextAppendLink = $nextAppendLink;
1830
+	$this->nextAppendLink = $nextAppendLink;
1831 1831
   }
1832 1832
   public function getNextAppendLink() {
1833
-    return $this->nextAppendLink;
1833
+	return $this->nextAppendLink;
1834 1834
   }
1835 1835
   public function setWebPropertyId( $webPropertyId) {
1836
-    $this->webPropertyId = $webPropertyId;
1836
+	$this->webPropertyId = $webPropertyId;
1837 1837
   }
1838 1838
   public function getWebPropertyId() {
1839
-    return $this->webPropertyId;
1839
+	return $this->webPropertyId;
1840 1840
   }
1841 1841
 }
1842 1842
 
@@ -1844,16 +1844,16 @@  discard block
 block discarded – undo
1844 1844
   public $href;
1845 1845
   public $type;
1846 1846
   public function setHref( $href) {
1847
-    $this->href = $href;
1847
+	$this->href = $href;
1848 1848
   }
1849 1849
   public function getHref() {
1850
-    return $this->href;
1850
+	return $this->href;
1851 1851
   }
1852 1852
   public function setType( $type) {
1853
-    $this->type = $type;
1853
+	$this->type = $type;
1854 1854
   }
1855 1855
   public function getType() {
1856
-    return $this->type;
1856
+	return $this->type;
1857 1857
   }
1858 1858
 }
1859 1859
 
@@ -1861,16 +1861,16 @@  discard block
 block discarded – undo
1861 1861
   public $change;
1862 1862
   public $time;
1863 1863
   public function setChange( $change) {
1864
-    $this->change = $change;
1864
+	$this->change = $change;
1865 1865
   }
1866 1866
   public function getChange() {
1867
-    return $this->change;
1867
+	return $this->change;
1868 1868
   }
1869 1869
   public function setTime( $time) {
1870
-    $this->time = $time;
1870
+	$this->time = $time;
1871 1871
   }
1872 1872
   public function getTime() {
1873
-    return $this->time;
1873
+	return $this->time;
1874 1874
   }
1875 1875
 }
1876 1876
 
@@ -1886,53 +1886,53 @@  discard block
 block discarded – undo
1886 1886
   public $totalResults;
1887 1887
   public $username;
1888 1888
   public function setItems(/* array(Google_DailyUpload) */ $items) {
1889
-    $this->assertIsArray($items, 'Google_DailyUpload', __METHOD__);
1890
-    $this->items = $items;
1889
+	$this->assertIsArray($items, 'Google_DailyUpload', __METHOD__);
1890
+	$this->items = $items;
1891 1891
   }
1892 1892
   public function getItems() {
1893
-    return $this->items;
1893
+	return $this->items;
1894 1894
   }
1895 1895
   public function setItemsPerPage( $itemsPerPage) {
1896
-    $this->itemsPerPage = $itemsPerPage;
1896
+	$this->itemsPerPage = $itemsPerPage;
1897 1897
   }
1898 1898
   public function getItemsPerPage() {
1899
-    return $this->itemsPerPage;
1899
+	return $this->itemsPerPage;
1900 1900
   }
1901 1901
   public function setKind( $kind) {
1902
-    $this->kind = $kind;
1902
+	$this->kind = $kind;
1903 1903
   }
1904 1904
   public function getKind() {
1905
-    return $this->kind;
1905
+	return $this->kind;
1906 1906
   }
1907 1907
   public function setNextLink( $nextLink) {
1908
-    $this->nextLink = $nextLink;
1908
+	$this->nextLink = $nextLink;
1909 1909
   }
1910 1910
   public function getNextLink() {
1911
-    return $this->nextLink;
1911
+	return $this->nextLink;
1912 1912
   }
1913 1913
   public function setPreviousLink( $previousLink) {
1914
-    $this->previousLink = $previousLink;
1914
+	$this->previousLink = $previousLink;
1915 1915
   }
1916 1916
   public function getPreviousLink() {
1917
-    return $this->previousLink;
1917
+	return $this->previousLink;
1918 1918
   }
1919 1919
   public function setStartIndex( $startIndex) {
1920
-    $this->startIndex = $startIndex;
1920
+	$this->startIndex = $startIndex;
1921 1921
   }
1922 1922
   public function getStartIndex() {
1923
-    return $this->startIndex;
1923
+	return $this->startIndex;
1924 1924
   }
1925 1925
   public function setTotalResults( $totalResults) {
1926
-    $this->totalResults = $totalResults;
1926
+	$this->totalResults = $totalResults;
1927 1927
   }
1928 1928
   public function getTotalResults() {
1929
-    return $this->totalResults;
1929
+	return $this->totalResults;
1930 1930
   }
1931 1931
   public function setUsername( $username) {
1932
-    $this->username = $username;
1932
+	$this->username = $username;
1933 1933
   }
1934 1934
   public function getUsername() {
1935
-    return $this->username;
1935
+	return $this->username;
1936 1936
   }
1937 1937
 }
1938 1938
 
@@ -1950,40 +1950,40 @@  discard block
 block discarded – undo
1950 1950
   protected $__userRefDataType = '';
1951 1951
   public $userRef;
1952 1952
   public function setEntity(Google_EntityUserLinkEntity $entity) {
1953
-    $this->entity = $entity;
1953
+	$this->entity = $entity;
1954 1954
   }
1955 1955
   public function getEntity() {
1956
-    return $this->entity;
1956
+	return $this->entity;
1957 1957
   }
1958 1958
   public function setId( $id) {
1959
-    $this->id = $id;
1959
+	$this->id = $id;
1960 1960
   }
1961 1961
   public function getId() {
1962
-    return $this->id;
1962
+	return $this->id;
1963 1963
   }
1964 1964
   public function setKind( $kind) {
1965
-    $this->kind = $kind;
1965
+	$this->kind = $kind;
1966 1966
   }
1967 1967
   public function getKind() {
1968
-    return $this->kind;
1968
+	return $this->kind;
1969 1969
   }
1970 1970
   public function setPermissions(Google_EntityUserLinkPermissions $permissions) {
1971
-    $this->permissions = $permissions;
1971
+	$this->permissions = $permissions;
1972 1972
   }
1973 1973
   public function getPermissions() {
1974
-    return $this->permissions;
1974
+	return $this->permissions;
1975 1975
   }
1976 1976
   public function setSelfLink( $selfLink) {
1977
-    $this->selfLink = $selfLink;
1977
+	$this->selfLink = $selfLink;
1978 1978
   }
1979 1979
   public function getSelfLink() {
1980
-    return $this->selfLink;
1980
+	return $this->selfLink;
1981 1981
   }
1982 1982
   public function setUserRef(Google_UserRef $userRef) {
1983
-    $this->userRef = $userRef;
1983
+	$this->userRef = $userRef;
1984 1984
   }
1985 1985
   public function getUserRef() {
1986
-    return $this->userRef;
1986
+	return $this->userRef;
1987 1987
   }
1988 1988
 }
1989 1989
 
@@ -1998,22 +1998,22 @@  discard block
 block discarded – undo
1998 1998
   protected $__webPropertyRefDataType = '';
1999 1999
   public $webPropertyRef;
2000 2000
   public function setAccountRef(Google_AccountRef $accountRef) {
2001
-    $this->accountRef = $accountRef;
2001
+	$this->accountRef = $accountRef;
2002 2002
   }
2003 2003
   public function getAccountRef() {
2004
-    return $this->accountRef;
2004
+	return $this->accountRef;
2005 2005
   }
2006 2006
   public function setProfileRef(Google_ProfileRef $profileRef) {
2007
-    $this->profileRef = $profileRef;
2007
+	$this->profileRef = $profileRef;
2008 2008
   }
2009 2009
   public function getProfileRef() {
2010
-    return $this->profileRef;
2010
+	return $this->profileRef;
2011 2011
   }
2012 2012
   public function setWebPropertyRef(Google_WebPropertyRef $webPropertyRef) {
2013
-    $this->webPropertyRef = $webPropertyRef;
2013
+	$this->webPropertyRef = $webPropertyRef;
2014 2014
   }
2015 2015
   public function getWebPropertyRef() {
2016
-    return $this->webPropertyRef;
2016
+	return $this->webPropertyRef;
2017 2017
   }
2018 2018
 }
2019 2019
 
@@ -2021,18 +2021,18 @@  discard block
 block discarded – undo
2021 2021
   public $effective;
2022 2022
   public $local;
2023 2023
   public function setEffective(/* array(Google_string) */ $effective) {
2024
-    $this->assertIsArray($effective, 'Google_string', __METHOD__);
2025
-    $this->effective = $effective;
2024
+	$this->assertIsArray($effective, 'Google_string', __METHOD__);
2025
+	$this->effective = $effective;
2026 2026
   }
2027 2027
   public function getEffective() {
2028
-    return $this->effective;
2028
+	return $this->effective;
2029 2029
   }
2030 2030
   public function setLocal(/* array(Google_string) */ $local) {
2031
-    $this->assertIsArray($local, 'Google_string', __METHOD__);
2032
-    $this->local = $local;
2031
+	$this->assertIsArray($local, 'Google_string', __METHOD__);
2032
+	$this->local = $local;
2033 2033
   }
2034 2034
   public function getLocal() {
2035
-    return $this->local;
2035
+	return $this->local;
2036 2036
   }
2037 2037
 }
2038 2038
 
@@ -2047,47 +2047,47 @@  discard block
 block discarded – undo
2047 2047
   public $startIndex;
2048 2048
   public $totalResults;
2049 2049
   public function setItems(/* array(Google_EntityUserLink) */ $items) {
2050
-    $this->assertIsArray($items, 'Google_EntityUserLink', __METHOD__);
2051
-    $this->items = $items;
2050
+	$this->assertIsArray($items, 'Google_EntityUserLink', __METHOD__);
2051
+	$this->items = $items;
2052 2052
   }
2053 2053
   public function getItems() {
2054
-    return $this->items;
2054
+	return $this->items;
2055 2055
   }
2056 2056
   public function setItemsPerPage( $itemsPerPage) {
2057
-    $this->itemsPerPage = $itemsPerPage;
2057
+	$this->itemsPerPage = $itemsPerPage;
2058 2058
   }
2059 2059
   public function getItemsPerPage() {
2060
-    return $this->itemsPerPage;
2060
+	return $this->itemsPerPage;
2061 2061
   }
2062 2062
   public function setKind( $kind) {
2063
-    $this->kind = $kind;
2063
+	$this->kind = $kind;
2064 2064
   }
2065 2065
   public function getKind() {
2066
-    return $this->kind;
2066
+	return $this->kind;
2067 2067
   }
2068 2068
   public function setNextLink( $nextLink) {
2069
-    $this->nextLink = $nextLink;
2069
+	$this->nextLink = $nextLink;
2070 2070
   }
2071 2071
   public function getNextLink() {
2072
-    return $this->nextLink;
2072
+	return $this->nextLink;
2073 2073
   }
2074 2074
   public function setPreviousLink( $previousLink) {
2075
-    $this->previousLink = $previousLink;
2075
+	$this->previousLink = $previousLink;
2076 2076
   }
2077 2077
   public function getPreviousLink() {
2078
-    return $this->previousLink;
2078
+	return $this->previousLink;
2079 2079
   }
2080 2080
   public function setStartIndex( $startIndex) {
2081
-    $this->startIndex = $startIndex;
2081
+	$this->startIndex = $startIndex;
2082 2082
   }
2083 2083
   public function getStartIndex() {
2084
-    return $this->startIndex;
2084
+	return $this->startIndex;
2085 2085
   }
2086 2086
   public function setTotalResults( $totalResults) {
2087
-    $this->totalResults = $totalResults;
2087
+	$this->totalResults = $totalResults;
2088 2088
   }
2089 2089
   public function getTotalResults() {
2090
-    return $this->totalResults;
2090
+	return $this->totalResults;
2091 2091
   }
2092 2092
 }
2093 2093
 
@@ -2124,167 +2124,167 @@  discard block
 block discarded – undo
2124 2124
   public $winnerConfidenceLevel;
2125 2125
   public $winnerFound;
2126 2126
   public function setAccountId( $accountId) {
2127
-    $this->accountId = $accountId;
2127
+	$this->accountId = $accountId;
2128 2128
   }
2129 2129
   public function getAccountId() {
2130
-    return $this->accountId;
2130
+	return $this->accountId;
2131 2131
   }
2132 2132
   public function setCreated( $created) {
2133
-    $this->created = $created;
2133
+	$this->created = $created;
2134 2134
   }
2135 2135
   public function getCreated() {
2136
-    return $this->created;
2136
+	return $this->created;
2137 2137
   }
2138 2138
   public function setDescription( $description) {
2139
-    $this->description = $description;
2139
+	$this->description = $description;
2140 2140
   }
2141 2141
   public function getDescription() {
2142
-    return $this->description;
2142
+	return $this->description;
2143 2143
   }
2144 2144
   public function setEditableInGaUi( $editableInGaUi) {
2145
-    $this->editableInGaUi = $editableInGaUi;
2145
+	$this->editableInGaUi = $editableInGaUi;
2146 2146
   }
2147 2147
   public function getEditableInGaUi() {
2148
-    return $this->editableInGaUi;
2148
+	return $this->editableInGaUi;
2149 2149
   }
2150 2150
   public function setEndTime( $endTime) {
2151
-    $this->endTime = $endTime;
2151
+	$this->endTime = $endTime;
2152 2152
   }
2153 2153
   public function getEndTime() {
2154
-    return $this->endTime;
2154
+	return $this->endTime;
2155 2155
   }
2156 2156
   public function setId( $id) {
2157
-    $this->id = $id;
2157
+	$this->id = $id;
2158 2158
   }
2159 2159
   public function getId() {
2160
-    return $this->id;
2160
+	return $this->id;
2161 2161
   }
2162 2162
   public function setInternalWebPropertyId( $internalWebPropertyId) {
2163
-    $this->internalWebPropertyId = $internalWebPropertyId;
2163
+	$this->internalWebPropertyId = $internalWebPropertyId;
2164 2164
   }
2165 2165
   public function getInternalWebPropertyId() {
2166
-    return $this->internalWebPropertyId;
2166
+	return $this->internalWebPropertyId;
2167 2167
   }
2168 2168
   public function setKind( $kind) {
2169
-    $this->kind = $kind;
2169
+	$this->kind = $kind;
2170 2170
   }
2171 2171
   public function getKind() {
2172
-    return $this->kind;
2172
+	return $this->kind;
2173 2173
   }
2174 2174
   public function setMinimumExperimentLengthInDays( $minimumExperimentLengthInDays) {
2175
-    $this->minimumExperimentLengthInDays = $minimumExperimentLengthInDays;
2175
+	$this->minimumExperimentLengthInDays = $minimumExperimentLengthInDays;
2176 2176
   }
2177 2177
   public function getMinimumExperimentLengthInDays() {
2178
-    return $this->minimumExperimentLengthInDays;
2178
+	return $this->minimumExperimentLengthInDays;
2179 2179
   }
2180 2180
   public function setName( $name) {
2181
-    $this->name = $name;
2181
+	$this->name = $name;
2182 2182
   }
2183 2183
   public function getName() {
2184
-    return $this->name;
2184
+	return $this->name;
2185 2185
   }
2186 2186
   public function setObjectiveMetric( $objectiveMetric) {
2187
-    $this->objectiveMetric = $objectiveMetric;
2187
+	$this->objectiveMetric = $objectiveMetric;
2188 2188
   }
2189 2189
   public function getObjectiveMetric() {
2190
-    return $this->objectiveMetric;
2190
+	return $this->objectiveMetric;
2191 2191
   }
2192 2192
   public function setOptimizationType( $optimizationType) {
2193
-    $this->optimizationType = $optimizationType;
2193
+	$this->optimizationType = $optimizationType;
2194 2194
   }
2195 2195
   public function getOptimizationType() {
2196
-    return $this->optimizationType;
2196
+	return $this->optimizationType;
2197 2197
   }
2198 2198
   public function setParentLink(Google_ExperimentParentLink $parentLink) {
2199
-    $this->parentLink = $parentLink;
2199
+	$this->parentLink = $parentLink;
2200 2200
   }
2201 2201
   public function getParentLink() {
2202
-    return $this->parentLink;
2202
+	return $this->parentLink;
2203 2203
   }
2204 2204
   public function setProfileId( $profileId) {
2205
-    $this->profileId = $profileId;
2205
+	$this->profileId = $profileId;
2206 2206
   }
2207 2207
   public function getProfileId() {
2208
-    return $this->profileId;
2208
+	return $this->profileId;
2209 2209
   }
2210 2210
   public function setReasonExperimentEnded( $reasonExperimentEnded) {
2211
-    $this->reasonExperimentEnded = $reasonExperimentEnded;
2211
+	$this->reasonExperimentEnded = $reasonExperimentEnded;
2212 2212
   }
2213 2213
   public function getReasonExperimentEnded() {
2214
-    return $this->reasonExperimentEnded;
2214
+	return $this->reasonExperimentEnded;
2215 2215
   }
2216 2216
   public function setRewriteVariationUrlsAsOriginal( $rewriteVariationUrlsAsOriginal) {
2217
-    $this->rewriteVariationUrlsAsOriginal = $rewriteVariationUrlsAsOriginal;
2217
+	$this->rewriteVariationUrlsAsOriginal = $rewriteVariationUrlsAsOriginal;
2218 2218
   }
2219 2219
   public function getRewriteVariationUrlsAsOriginal() {
2220
-    return $this->rewriteVariationUrlsAsOriginal;
2220
+	return $this->rewriteVariationUrlsAsOriginal;
2221 2221
   }
2222 2222
   public function setSelfLink( $selfLink) {
2223
-    $this->selfLink = $selfLink;
2223
+	$this->selfLink = $selfLink;
2224 2224
   }
2225 2225
   public function getSelfLink() {
2226
-    return $this->selfLink;
2226
+	return $this->selfLink;
2227 2227
   }
2228 2228
   public function setServingFramework( $servingFramework) {
2229
-    $this->servingFramework = $servingFramework;
2229
+	$this->servingFramework = $servingFramework;
2230 2230
   }
2231 2231
   public function getServingFramework() {
2232
-    return $this->servingFramework;
2232
+	return $this->servingFramework;
2233 2233
   }
2234 2234
   public function setSnippet( $snippet) {
2235
-    $this->snippet = $snippet;
2235
+	$this->snippet = $snippet;
2236 2236
   }
2237 2237
   public function getSnippet() {
2238
-    return $this->snippet;
2238
+	return $this->snippet;
2239 2239
   }
2240 2240
   public function setStartTime( $startTime) {
2241
-    $this->startTime = $startTime;
2241
+	$this->startTime = $startTime;
2242 2242
   }
2243 2243
   public function getStartTime() {
2244
-    return $this->startTime;
2244
+	return $this->startTime;
2245 2245
   }
2246 2246
   public function setStatus( $status) {
2247
-    $this->status = $status;
2247
+	$this->status = $status;
2248 2248
   }
2249 2249
   public function getStatus() {
2250
-    return $this->status;
2250
+	return $this->status;
2251 2251
   }
2252 2252
   public function setTrafficCoverage( $trafficCoverage) {
2253
-    $this->trafficCoverage = $trafficCoverage;
2253
+	$this->trafficCoverage = $trafficCoverage;
2254 2254
   }
2255 2255
   public function getTrafficCoverage() {
2256
-    return $this->trafficCoverage;
2256
+	return $this->trafficCoverage;
2257 2257
   }
2258 2258
   public function setUpdated( $updated) {
2259
-    $this->updated = $updated;
2259
+	$this->updated = $updated;
2260 2260
   }
2261 2261
   public function getUpdated() {
2262
-    return $this->updated;
2262
+	return $this->updated;
2263 2263
   }
2264 2264
   public function setVariations(/* array(Google_ExperimentVariations) */ $variations) {
2265
-    $this->assertIsArray($variations, 'Google_ExperimentVariations', __METHOD__);
2266
-    $this->variations = $variations;
2265
+	$this->assertIsArray($variations, 'Google_ExperimentVariations', __METHOD__);
2266
+	$this->variations = $variations;
2267 2267
   }
2268 2268
   public function getVariations() {
2269
-    return $this->variations;
2269
+	return $this->variations;
2270 2270
   }
2271 2271
   public function setWebPropertyId( $webPropertyId) {
2272
-    $this->webPropertyId = $webPropertyId;
2272
+	$this->webPropertyId = $webPropertyId;
2273 2273
   }
2274 2274
   public function getWebPropertyId() {
2275
-    return $this->webPropertyId;
2275
+	return $this->webPropertyId;
2276 2276
   }
2277 2277
   public function setWinnerConfidenceLevel( $winnerConfidenceLevel) {
2278
-    $this->winnerConfidenceLevel = $winnerConfidenceLevel;
2278
+	$this->winnerConfidenceLevel = $winnerConfidenceLevel;
2279 2279
   }
2280 2280
   public function getWinnerConfidenceLevel() {
2281
-    return $this->winnerConfidenceLevel;
2281
+	return $this->winnerConfidenceLevel;
2282 2282
   }
2283 2283
   public function setWinnerFound( $winnerFound) {
2284
-    $this->winnerFound = $winnerFound;
2284
+	$this->winnerFound = $winnerFound;
2285 2285
   }
2286 2286
   public function getWinnerFound() {
2287
-    return $this->winnerFound;
2287
+	return $this->winnerFound;
2288 2288
   }
2289 2289
 }
2290 2290
 
@@ -2292,16 +2292,16 @@  discard block
 block discarded – undo
2292 2292
   public $href;
2293 2293
   public $type;
2294 2294
   public function setHref( $href) {
2295
-    $this->href = $href;
2295
+	$this->href = $href;
2296 2296
   }
2297 2297
   public function getHref() {
2298
-    return $this->href;
2298
+	return $this->href;
2299 2299
   }
2300 2300
   public function setType( $type) {
2301
-    $this->type = $type;
2301
+	$this->type = $type;
2302 2302
   }
2303 2303
   public function getType() {
2304
-    return $this->type;
2304
+	return $this->type;
2305 2305
   }
2306 2306
 }
2307 2307
 
@@ -2312,34 +2312,34 @@  discard block
 block discarded – undo
2312 2312
   public $weight;
2313 2313
   public $won;
2314 2314
   public function setName( $name) {
2315
-    $this->name = $name;
2315
+	$this->name = $name;
2316 2316
   }
2317 2317
   public function getName() {
2318
-    return $this->name;
2318
+	return $this->name;
2319 2319
   }
2320 2320
   public function setStatus( $status) {
2321
-    $this->status = $status;
2321
+	$this->status = $status;
2322 2322
   }
2323 2323
   public function getStatus() {
2324
-    return $this->status;
2324
+	return $this->status;
2325 2325
   }
2326 2326
   public function setUrl( $url) {
2327
-    $this->url = $url;
2327
+	$this->url = $url;
2328 2328
   }
2329 2329
   public function getUrl() {
2330
-    return $this->url;
2330
+	return $this->url;
2331 2331
   }
2332 2332
   public function setWeight( $weight) {
2333
-    $this->weight = $weight;
2333
+	$this->weight = $weight;
2334 2334
   }
2335 2335
   public function getWeight() {
2336
-    return $this->weight;
2336
+	return $this->weight;
2337 2337
   }
2338 2338
   public function setWon( $won) {
2339
-    $this->won = $won;
2339
+	$this->won = $won;
2340 2340
   }
2341 2341
   public function getWon() {
2342
-    return $this->won;
2342
+	return $this->won;
2343 2343
   }
2344 2344
 }
2345 2345
 
@@ -2355,53 +2355,53 @@  discard block
 block discarded – undo
2355 2355
   public $totalResults;
2356 2356
   public $username;
2357 2357
   public function setItems(/* array(Google_Experiment) */ $items) {
2358
-    $this->assertIsArray($items, 'Google_Experiment', __METHOD__);
2359
-    $this->items = $items;
2358
+	$this->assertIsArray($items, 'Google_Experiment', __METHOD__);
2359
+	$this->items = $items;
2360 2360
   }
2361 2361
   public function getItems() {
2362
-    return $this->items;
2362
+	return $this->items;
2363 2363
   }
2364 2364
   public function setItemsPerPage( $itemsPerPage) {
2365
-    $this->itemsPerPage = $itemsPerPage;
2365
+	$this->itemsPerPage = $itemsPerPage;
2366 2366
   }
2367 2367
   public function getItemsPerPage() {
2368
-    return $this->itemsPerPage;
2368
+	return $this->itemsPerPage;
2369 2369
   }
2370 2370
   public function setKind( $kind) {
2371
-    $this->kind = $kind;
2371
+	$this->kind = $kind;
2372 2372
   }
2373 2373
   public function getKind() {
2374
-    return $this->kind;
2374
+	return $this->kind;
2375 2375
   }
2376 2376
   public function setNextLink( $nextLink) {
2377
-    $this->nextLink = $nextLink;
2377
+	$this->nextLink = $nextLink;
2378 2378
   }
2379 2379
   public function getNextLink() {
2380
-    return $this->nextLink;
2380
+	return $this->nextLink;
2381 2381
   }
2382 2382
   public function setPreviousLink( $previousLink) {
2383
-    $this->previousLink = $previousLink;
2383
+	$this->previousLink = $previousLink;
2384 2384
   }
2385 2385
   public function getPreviousLink() {
2386
-    return $this->previousLink;
2386
+	return $this->previousLink;
2387 2387
   }
2388 2388
   public function setStartIndex( $startIndex) {
2389
-    $this->startIndex = $startIndex;
2389
+	$this->startIndex = $startIndex;
2390 2390
   }
2391 2391
   public function getStartIndex() {
2392
-    return $this->startIndex;
2392
+	return $this->startIndex;
2393 2393
   }
2394 2394
   public function setTotalResults( $totalResults) {
2395
-    $this->totalResults = $totalResults;
2395
+	$this->totalResults = $totalResults;
2396 2396
   }
2397 2397
   public function getTotalResults() {
2398
-    return $this->totalResults;
2398
+	return $this->totalResults;
2399 2399
   }
2400 2400
   public function setUsername( $username) {
2401
-    $this->username = $username;
2401
+	$this->username = $username;
2402 2402
   }
2403 2403
   public function getUsername() {
2404
-    return $this->username;
2404
+	return $this->username;
2405 2405
   }
2406 2406
 }
2407 2407
 
@@ -2426,84 +2426,84 @@  discard block
 block discarded – undo
2426 2426
   public $totalResults;
2427 2427
   public $totalsForAllResults;
2428 2428
   public function setColumnHeaders(/* array(Google_GaDataColumnHeaders) */ $columnHeaders) {
2429
-    $this->assertIsArray($columnHeaders, 'Google_GaDataColumnHeaders', __METHOD__);
2430
-    $this->columnHeaders = $columnHeaders;
2429
+	$this->assertIsArray($columnHeaders, 'Google_GaDataColumnHeaders', __METHOD__);
2430
+	$this->columnHeaders = $columnHeaders;
2431 2431
   }
2432 2432
   public function getColumnHeaders() {
2433
-    return $this->columnHeaders;
2433
+	return $this->columnHeaders;
2434 2434
   }
2435 2435
   public function setContainsSampledData( $containsSampledData) {
2436
-    $this->containsSampledData = $containsSampledData;
2436
+	$this->containsSampledData = $containsSampledData;
2437 2437
   }
2438 2438
   public function getContainsSampledData() {
2439
-    return $this->containsSampledData;
2439
+	return $this->containsSampledData;
2440 2440
   }
2441 2441
   public function setId( $id) {
2442
-    $this->id = $id;
2442
+	$this->id = $id;
2443 2443
   }
2444 2444
   public function getId() {
2445
-    return $this->id;
2445
+	return $this->id;
2446 2446
   }
2447 2447
   public function setItemsPerPage( $itemsPerPage) {
2448
-    $this->itemsPerPage = $itemsPerPage;
2448
+	$this->itemsPerPage = $itemsPerPage;
2449 2449
   }
2450 2450
   public function getItemsPerPage() {
2451
-    return $this->itemsPerPage;
2451
+	return $this->itemsPerPage;
2452 2452
   }
2453 2453
   public function setKind( $kind) {
2454
-    $this->kind = $kind;
2454
+	$this->kind = $kind;
2455 2455
   }
2456 2456
   public function getKind() {
2457
-    return $this->kind;
2457
+	return $this->kind;
2458 2458
   }
2459 2459
   public function setNextLink( $nextLink) {
2460
-    $this->nextLink = $nextLink;
2460
+	$this->nextLink = $nextLink;
2461 2461
   }
2462 2462
   public function getNextLink() {
2463
-    return $this->nextLink;
2463
+	return $this->nextLink;
2464 2464
   }
2465 2465
   public function setPreviousLink( $previousLink) {
2466
-    $this->previousLink = $previousLink;
2466
+	$this->previousLink = $previousLink;
2467 2467
   }
2468 2468
   public function getPreviousLink() {
2469
-    return $this->previousLink;
2469
+	return $this->previousLink;
2470 2470
   }
2471 2471
   public function setProfileInfo(Google_GaDataProfileInfo $profileInfo) {
2472
-    $this->profileInfo = $profileInfo;
2472
+	$this->profileInfo = $profileInfo;
2473 2473
   }
2474 2474
   public function getProfileInfo() {
2475
-    return $this->profileInfo;
2475
+	return $this->profileInfo;
2476 2476
   }
2477 2477
   public function setQuery(Google_GaDataQuery $query) {
2478
-    $this->query = $query;
2478
+	$this->query = $query;
2479 2479
   }
2480 2480
   public function getQuery() {
2481
-    return $this->query;
2481
+	return $this->query;
2482 2482
   }
2483 2483
   public function setRows(/* array(Google_string) */ $rows) {
2484
-    $this->assertIsArray($rows, 'Google_string', __METHOD__);
2485
-    $this->rows = $rows;
2484
+	$this->assertIsArray($rows, 'Google_string', __METHOD__);
2485
+	$this->rows = $rows;
2486 2486
   }
2487 2487
   public function getRows() {
2488
-    return $this->rows;
2488
+	return $this->rows;
2489 2489
   }
2490 2490
   public function setSelfLink( $selfLink) {
2491
-    $this->selfLink = $selfLink;
2491
+	$this->selfLink = $selfLink;
2492 2492
   }
2493 2493
   public function getSelfLink() {
2494
-    return $this->selfLink;
2494
+	return $this->selfLink;
2495 2495
   }
2496 2496
   public function setTotalResults( $totalResults) {
2497
-    $this->totalResults = $totalResults;
2497
+	$this->totalResults = $totalResults;
2498 2498
   }
2499 2499
   public function getTotalResults() {
2500
-    return $this->totalResults;
2500
+	return $this->totalResults;
2501 2501
   }
2502 2502
   public function setTotalsForAllResults( $totalsForAllResults) {
2503
-    $this->totalsForAllResults = $totalsForAllResults;
2503
+	$this->totalsForAllResults = $totalsForAllResults;
2504 2504
   }
2505 2505
   public function getTotalsForAllResults() {
2506
-    return $this->totalsForAllResults;
2506
+	return $this->totalsForAllResults;
2507 2507
   }
2508 2508
 }
2509 2509
 
@@ -2512,22 +2512,22 @@  discard block
 block discarded – undo
2512 2512
   public $dataType;
2513 2513
   public $name;
2514 2514
   public function setColumnType( $columnType) {
2515
-    $this->columnType = $columnType;
2515
+	$this->columnType = $columnType;
2516 2516
   }
2517 2517
   public function getColumnType() {
2518
-    return $this->columnType;
2518
+	return $this->columnType;
2519 2519
   }
2520 2520
   public function setDataType( $dataType) {
2521
-    $this->dataType = $dataType;
2521
+	$this->dataType = $dataType;
2522 2522
   }
2523 2523
   public function getDataType() {
2524
-    return $this->dataType;
2524
+	return $this->dataType;
2525 2525
   }
2526 2526
   public function setName( $name) {
2527
-    $this->name = $name;
2527
+	$this->name = $name;
2528 2528
   }
2529 2529
   public function getName() {
2530
-    return $this->name;
2530
+	return $this->name;
2531 2531
   }
2532 2532
 }
2533 2533
 
@@ -2539,40 +2539,40 @@  discard block
 block discarded – undo
2539 2539
   public $tableId;
2540 2540
   public $webPropertyId;
2541 2541
   public function setAccountId( $accountId) {
2542
-    $this->accountId = $accountId;
2542
+	$this->accountId = $accountId;
2543 2543
   }
2544 2544
   public function getAccountId() {
2545
-    return $this->accountId;
2545
+	return $this->accountId;
2546 2546
   }
2547 2547
   public function setInternalWebPropertyId( $internalWebPropertyId) {
2548
-    $this->internalWebPropertyId = $internalWebPropertyId;
2548
+	$this->internalWebPropertyId = $internalWebPropertyId;
2549 2549
   }
2550 2550
   public function getInternalWebPropertyId() {
2551
-    return $this->internalWebPropertyId;
2551
+	return $this->internalWebPropertyId;
2552 2552
   }
2553 2553
   public function setProfileId( $profileId) {
2554
-    $this->profileId = $profileId;
2554
+	$this->profileId = $profileId;
2555 2555
   }
2556 2556
   public function getProfileId() {
2557
-    return $this->profileId;
2557
+	return $this->profileId;
2558 2558
   }
2559 2559
   public function setProfileName( $profileName) {
2560
-    $this->profileName = $profileName;
2560
+	$this->profileName = $profileName;
2561 2561
   }
2562 2562
   public function getProfileName() {
2563
-    return $this->profileName;
2563
+	return $this->profileName;
2564 2564
   }
2565 2565
   public function setTableId( $tableId) {
2566
-    $this->tableId = $tableId;
2566
+	$this->tableId = $tableId;
2567 2567
   }
2568 2568
   public function getTableId() {
2569
-    return $this->tableId;
2569
+	return $this->tableId;
2570 2570
   }
2571 2571
   public function setWebPropertyId( $webPropertyId) {
2572
-    $this->webPropertyId = $webPropertyId;
2572
+	$this->webPropertyId = $webPropertyId;
2573 2573
   }
2574 2574
   public function getWebPropertyId() {
2575
-    return $this->webPropertyId;
2575
+	return $this->webPropertyId;
2576 2576
   }
2577 2577
 }
2578 2578
 
@@ -2588,66 +2588,66 @@  discard block
 block discarded – undo
2588 2588
   public $start_date;
2589 2589
   public $start_index;
2590 2590
   public function setDimensions( $dimensions) {
2591
-    $this->dimensions = $dimensions;
2591
+	$this->dimensions = $dimensions;
2592 2592
   }
2593 2593
   public function getDimensions() {
2594
-    return $this->dimensions;
2594
+	return $this->dimensions;
2595 2595
   }
2596 2596
   public function setEnd_date( $end_date) {
2597
-    $this->end_date = $end_date;
2597
+	$this->end_date = $end_date;
2598 2598
   }
2599 2599
   public function getEnd_date() {
2600
-    return $this->end_date;
2600
+	return $this->end_date;
2601 2601
   }
2602 2602
   public function setFilters( $filters) {
2603
-    $this->filters = $filters;
2603
+	$this->filters = $filters;
2604 2604
   }
2605 2605
   public function getFilters() {
2606
-    return $this->filters;
2606
+	return $this->filters;
2607 2607
   }
2608 2608
   public function setIds( $ids) {
2609
-    $this->ids = $ids;
2609
+	$this->ids = $ids;
2610 2610
   }
2611 2611
   public function getIds() {
2612
-    return $this->ids;
2612
+	return $this->ids;
2613 2613
   }
2614 2614
   public function setMax_results( $max_results) {
2615
-    $this->max_results = $max_results;
2615
+	$this->max_results = $max_results;
2616 2616
   }
2617 2617
   public function getMax_results() {
2618
-    return $this->max_results;
2618
+	return $this->max_results;
2619 2619
   }
2620 2620
   public function setMetrics(/* array(Google_string) */ $metrics) {
2621
-    $this->assertIsArray($metrics, 'Google_string', __METHOD__);
2622
-    $this->metrics = $metrics;
2621
+	$this->assertIsArray($metrics, 'Google_string', __METHOD__);
2622
+	$this->metrics = $metrics;
2623 2623
   }
2624 2624
   public function getMetrics() {
2625
-    return $this->metrics;
2625
+	return $this->metrics;
2626 2626
   }
2627 2627
   public function setSegment( $segment) {
2628
-    $this->segment = $segment;
2628
+	$this->segment = $segment;
2629 2629
   }
2630 2630
   public function getSegment() {
2631
-    return $this->segment;
2631
+	return $this->segment;
2632 2632
   }
2633 2633
   public function setSort(/* array(Google_string) */ $sort) {
2634
-    $this->assertIsArray($sort, 'Google_string', __METHOD__);
2635
-    $this->sort = $sort;
2634
+	$this->assertIsArray($sort, 'Google_string', __METHOD__);
2635
+	$this->sort = $sort;
2636 2636
   }
2637 2637
   public function getSort() {
2638
-    return $this->sort;
2638
+	return $this->sort;
2639 2639
   }
2640 2640
   public function setStart_date( $start_date) {
2641
-    $this->start_date = $start_date;
2641
+	$this->start_date = $start_date;
2642 2642
   }
2643 2643
   public function getStart_date() {
2644
-    return $this->start_date;
2644
+	return $this->start_date;
2645 2645
   }
2646 2646
   public function setStart_index( $start_index) {
2647
-    $this->start_index = $start_index;
2647
+	$this->start_index = $start_index;
2648 2648
   }
2649 2649
   public function getStart_index() {
2650
-    return $this->start_index;
2650
+	return $this->start_index;
2651 2651
   }
2652 2652
 }
2653 2653
 
@@ -2681,112 +2681,112 @@  discard block
 block discarded – undo
2681 2681
   public $visitTimeOnSiteDetails;
2682 2682
   public $webPropertyId;
2683 2683
   public function setAccountId( $accountId) {
2684
-    $this->accountId = $accountId;
2684
+	$this->accountId = $accountId;
2685 2685
   }
2686 2686
   public function getAccountId() {
2687
-    return $this->accountId;
2687
+	return $this->accountId;
2688 2688
   }
2689 2689
   public function setActive( $active) {
2690
-    $this->active = $active;
2690
+	$this->active = $active;
2691 2691
   }
2692 2692
   public function getActive() {
2693
-    return $this->active;
2693
+	return $this->active;
2694 2694
   }
2695 2695
   public function setCreated( $created) {
2696
-    $this->created = $created;
2696
+	$this->created = $created;
2697 2697
   }
2698 2698
   public function getCreated() {
2699
-    return $this->created;
2699
+	return $this->created;
2700 2700
   }
2701 2701
   public function setEventDetails(Google_GoalEventDetails $eventDetails) {
2702
-    $this->eventDetails = $eventDetails;
2702
+	$this->eventDetails = $eventDetails;
2703 2703
   }
2704 2704
   public function getEventDetails() {
2705
-    return $this->eventDetails;
2705
+	return $this->eventDetails;
2706 2706
   }
2707 2707
   public function setId( $id) {
2708
-    $this->id = $id;
2708
+	$this->id = $id;
2709 2709
   }
2710 2710
   public function getId() {
2711
-    return $this->id;
2711
+	return $this->id;
2712 2712
   }
2713 2713
   public function setInternalWebPropertyId( $internalWebPropertyId) {
2714
-    $this->internalWebPropertyId = $internalWebPropertyId;
2714
+	$this->internalWebPropertyId = $internalWebPropertyId;
2715 2715
   }
2716 2716
   public function getInternalWebPropertyId() {
2717
-    return $this->internalWebPropertyId;
2717
+	return $this->internalWebPropertyId;
2718 2718
   }
2719 2719
   public function setKind( $kind) {
2720
-    $this->kind = $kind;
2720
+	$this->kind = $kind;
2721 2721
   }
2722 2722
   public function getKind() {
2723
-    return $this->kind;
2723
+	return $this->kind;
2724 2724
   }
2725 2725
   public function setName( $name) {
2726
-    $this->name = $name;
2726
+	$this->name = $name;
2727 2727
   }
2728 2728
   public function getName() {
2729
-    return $this->name;
2729
+	return $this->name;
2730 2730
   }
2731 2731
   public function setParentLink(Google_GoalParentLink $parentLink) {
2732
-    $this->parentLink = $parentLink;
2732
+	$this->parentLink = $parentLink;
2733 2733
   }
2734 2734
   public function getParentLink() {
2735
-    return $this->parentLink;
2735
+	return $this->parentLink;
2736 2736
   }
2737 2737
   public function setProfileId( $profileId) {
2738
-    $this->profileId = $profileId;
2738
+	$this->profileId = $profileId;
2739 2739
   }
2740 2740
   public function getProfileId() {
2741
-    return $this->profileId;
2741
+	return $this->profileId;
2742 2742
   }
2743 2743
   public function setSelfLink( $selfLink) {
2744
-    $this->selfLink = $selfLink;
2744
+	$this->selfLink = $selfLink;
2745 2745
   }
2746 2746
   public function getSelfLink() {
2747
-    return $this->selfLink;
2747
+	return $this->selfLink;
2748 2748
   }
2749 2749
   public function setType( $type) {
2750
-    $this->type = $type;
2750
+	$this->type = $type;
2751 2751
   }
2752 2752
   public function getType() {
2753
-    return $this->type;
2753
+	return $this->type;
2754 2754
   }
2755 2755
   public function setUpdated( $updated) {
2756
-    $this->updated = $updated;
2756
+	$this->updated = $updated;
2757 2757
   }
2758 2758
   public function getUpdated() {
2759
-    return $this->updated;
2759
+	return $this->updated;
2760 2760
   }
2761 2761
   public function setUrlDestinationDetails(Google_GoalUrlDestinationDetails $urlDestinationDetails) {
2762
-    $this->urlDestinationDetails = $urlDestinationDetails;
2762
+	$this->urlDestinationDetails = $urlDestinationDetails;
2763 2763
   }
2764 2764
   public function getUrlDestinationDetails() {
2765
-    return $this->urlDestinationDetails;
2765
+	return $this->urlDestinationDetails;
2766 2766
   }
2767 2767
   public function setValue( $value) {
2768
-    $this->value = $value;
2768
+	$this->value = $value;
2769 2769
   }
2770 2770
   public function getValue() {
2771
-    return $this->value;
2771
+	return $this->value;
2772 2772
   }
2773 2773
   public function setVisitNumPagesDetails(Google_GoalVisitNumPagesDetails $visitNumPagesDetails) {
2774
-    $this->visitNumPagesDetails = $visitNumPagesDetails;
2774
+	$this->visitNumPagesDetails = $visitNumPagesDetails;
2775 2775
   }
2776 2776
   public function getVisitNumPagesDetails() {
2777
-    return $this->visitNumPagesDetails;
2777
+	return $this->visitNumPagesDetails;
2778 2778
   }
2779 2779
   public function setVisitTimeOnSiteDetails(Google_GoalVisitTimeOnSiteDetails $visitTimeOnSiteDetails) {
2780
-    $this->visitTimeOnSiteDetails = $visitTimeOnSiteDetails;
2780
+	$this->visitTimeOnSiteDetails = $visitTimeOnSiteDetails;
2781 2781
   }
2782 2782
   public function getVisitTimeOnSiteDetails() {
2783
-    return $this->visitTimeOnSiteDetails;
2783
+	return $this->visitTimeOnSiteDetails;
2784 2784
   }
2785 2785
   public function setWebPropertyId( $webPropertyId) {
2786
-    $this->webPropertyId = $webPropertyId;
2786
+	$this->webPropertyId = $webPropertyId;
2787 2787
   }
2788 2788
   public function getWebPropertyId() {
2789
-    return $this->webPropertyId;
2789
+	return $this->webPropertyId;
2790 2790
   }
2791 2791
 }
2792 2792
 
@@ -2796,17 +2796,17 @@  discard block
 block discarded – undo
2796 2796
   public $eventConditions;
2797 2797
   public $useEventValue;
2798 2798
   public function setEventConditions(/* array(Google_GoalEventDetailsEventConditions) */ $eventConditions) {
2799
-    $this->assertIsArray($eventConditions, 'Google_GoalEventDetailsEventConditions', __METHOD__);
2800
-    $this->eventConditions = $eventConditions;
2799
+	$this->assertIsArray($eventConditions, 'Google_GoalEventDetailsEventConditions', __METHOD__);
2800
+	$this->eventConditions = $eventConditions;
2801 2801
   }
2802 2802
   public function getEventConditions() {
2803
-    return $this->eventConditions;
2803
+	return $this->eventConditions;
2804 2804
   }
2805 2805
   public function setUseEventValue( $useEventValue) {
2806
-    $this->useEventValue = $useEventValue;
2806
+	$this->useEventValue = $useEventValue;
2807 2807
   }
2808 2808
   public function getUseEventValue() {
2809
-    return $this->useEventValue;
2809
+	return $this->useEventValue;
2810 2810
   }
2811 2811
 }
2812 2812
 
@@ -2817,34 +2817,34 @@  discard block
 block discarded – undo
2817 2817
   public $matchType;
2818 2818
   public $type;
2819 2819
   public function setComparisonType( $comparisonType) {
2820
-    $this->comparisonType = $comparisonType;
2820
+	$this->comparisonType = $comparisonType;
2821 2821
   }
2822 2822
   public function getComparisonType() {
2823
-    return $this->comparisonType;
2823
+	return $this->comparisonType;
2824 2824
   }
2825 2825
   public function setComparisonValue( $comparisonValue) {
2826
-    $this->comparisonValue = $comparisonValue;
2826
+	$this->comparisonValue = $comparisonValue;
2827 2827
   }
2828 2828
   public function getComparisonValue() {
2829
-    return $this->comparisonValue;
2829
+	return $this->comparisonValue;
2830 2830
   }
2831 2831
   public function setExpression( $expression) {
2832
-    $this->expression = $expression;
2832
+	$this->expression = $expression;
2833 2833
   }
2834 2834
   public function getExpression() {
2835
-    return $this->expression;
2835
+	return $this->expression;
2836 2836
   }
2837 2837
   public function setMatchType( $matchType) {
2838
-    $this->matchType = $matchType;
2838
+	$this->matchType = $matchType;
2839 2839
   }
2840 2840
   public function getMatchType() {
2841
-    return $this->matchType;
2841
+	return $this->matchType;
2842 2842
   }
2843 2843
   public function setType( $type) {
2844
-    $this->type = $type;
2844
+	$this->type = $type;
2845 2845
   }
2846 2846
   public function getType() {
2847
-    return $this->type;
2847
+	return $this->type;
2848 2848
   }
2849 2849
 }
2850 2850
 
@@ -2852,16 +2852,16 @@  discard block
 block discarded – undo
2852 2852
   public $href;
2853 2853
   public $type;
2854 2854
   public function setHref( $href) {
2855
-    $this->href = $href;
2855
+	$this->href = $href;
2856 2856
   }
2857 2857
   public function getHref() {
2858
-    return $this->href;
2858
+	return $this->href;
2859 2859
   }
2860 2860
   public function setType( $type) {
2861
-    $this->type = $type;
2861
+	$this->type = $type;
2862 2862
   }
2863 2863
   public function getType() {
2864
-    return $this->type;
2864
+	return $this->type;
2865 2865
   }
2866 2866
 }
2867 2867
 
@@ -2874,35 +2874,35 @@  discard block
 block discarded – undo
2874 2874
   public $steps;
2875 2875
   public $url;
2876 2876
   public function setCaseSensitive( $caseSensitive) {
2877
-    $this->caseSensitive = $caseSensitive;
2877
+	$this->caseSensitive = $caseSensitive;
2878 2878
   }
2879 2879
   public function getCaseSensitive() {
2880
-    return $this->caseSensitive;
2880
+	return $this->caseSensitive;
2881 2881
   }
2882 2882
   public function setFirstStepRequired( $firstStepRequired) {
2883
-    $this->firstStepRequired = $firstStepRequired;
2883
+	$this->firstStepRequired = $firstStepRequired;
2884 2884
   }
2885 2885
   public function getFirstStepRequired() {
2886
-    return $this->firstStepRequired;
2886
+	return $this->firstStepRequired;
2887 2887
   }
2888 2888
   public function setMatchType( $matchType) {
2889
-    $this->matchType = $matchType;
2889
+	$this->matchType = $matchType;
2890 2890
   }
2891 2891
   public function getMatchType() {
2892
-    return $this->matchType;
2892
+	return $this->matchType;
2893 2893
   }
2894 2894
   public function setSteps(/* array(Google_GoalUrlDestinationDetailsSteps) */ $steps) {
2895
-    $this->assertIsArray($steps, 'Google_GoalUrlDestinationDetailsSteps', __METHOD__);
2896
-    $this->steps = $steps;
2895
+	$this->assertIsArray($steps, 'Google_GoalUrlDestinationDetailsSteps', __METHOD__);
2896
+	$this->steps = $steps;
2897 2897
   }
2898 2898
   public function getSteps() {
2899
-    return $this->steps;
2899
+	return $this->steps;
2900 2900
   }
2901 2901
   public function setUrl( $url) {
2902
-    $this->url = $url;
2902
+	$this->url = $url;
2903 2903
   }
2904 2904
   public function getUrl() {
2905
-    return $this->url;
2905
+	return $this->url;
2906 2906
   }
2907 2907
 }
2908 2908
 
@@ -2911,22 +2911,22 @@  discard block
 block discarded – undo
2911 2911
   public $number;
2912 2912
   public $url;
2913 2913
   public function setName( $name) {
2914
-    $this->name = $name;
2914
+	$this->name = $name;
2915 2915
   }
2916 2916
   public function getName() {
2917
-    return $this->name;
2917
+	return $this->name;
2918 2918
   }
2919 2919
   public function setNumber( $number) {
2920
-    $this->number = $number;
2920
+	$this->number = $number;
2921 2921
   }
2922 2922
   public function getNumber() {
2923
-    return $this->number;
2923
+	return $this->number;
2924 2924
   }
2925 2925
   public function setUrl( $url) {
2926
-    $this->url = $url;
2926
+	$this->url = $url;
2927 2927
   }
2928 2928
   public function getUrl() {
2929
-    return $this->url;
2929
+	return $this->url;
2930 2930
   }
2931 2931
 }
2932 2932
 
@@ -2934,16 +2934,16 @@  discard block
 block discarded – undo
2934 2934
   public $comparisonType;
2935 2935
   public $comparisonValue;
2936 2936
   public function setComparisonType( $comparisonType) {
2937
-    $this->comparisonType = $comparisonType;
2937
+	$this->comparisonType = $comparisonType;
2938 2938
   }
2939 2939
   public function getComparisonType() {
2940
-    return $this->comparisonType;
2940
+	return $this->comparisonType;
2941 2941
   }
2942 2942
   public function setComparisonValue( $comparisonValue) {
2943
-    $this->comparisonValue = $comparisonValue;
2943
+	$this->comparisonValue = $comparisonValue;
2944 2944
   }
2945 2945
   public function getComparisonValue() {
2946
-    return $this->comparisonValue;
2946
+	return $this->comparisonValue;
2947 2947
   }
2948 2948
 }
2949 2949
 
@@ -2951,16 +2951,16 @@  discard block
 block discarded – undo
2951 2951
   public $comparisonType;
2952 2952
   public $comparisonValue;
2953 2953
   public function setComparisonType( $comparisonType) {
2954
-    $this->comparisonType = $comparisonType;
2954
+	$this->comparisonType = $comparisonType;
2955 2955
   }
2956 2956
   public function getComparisonType() {
2957
-    return $this->comparisonType;
2957
+	return $this->comparisonType;
2958 2958
   }
2959 2959
   public function setComparisonValue( $comparisonValue) {
2960
-    $this->comparisonValue = $comparisonValue;
2960
+	$this->comparisonValue = $comparisonValue;
2961 2961
   }
2962 2962
   public function getComparisonValue() {
2963
-    return $this->comparisonValue;
2963
+	return $this->comparisonValue;
2964 2964
   }
2965 2965
 }
2966 2966
 
@@ -2976,53 +2976,53 @@  discard block
 block discarded – undo
2976 2976
   public $totalResults;
2977 2977
   public $username;
2978 2978
   public function setItems(/* array(Google_Goal) */ $items) {
2979
-    $this->assertIsArray($items, 'Google_Goal', __METHOD__);
2980
-    $this->items = $items;
2979
+	$this->assertIsArray($items, 'Google_Goal', __METHOD__);
2980
+	$this->items = $items;
2981 2981
   }
2982 2982
   public function getItems() {
2983
-    return $this->items;
2983
+	return $this->items;
2984 2984
   }
2985 2985
   public function setItemsPerPage( $itemsPerPage) {
2986
-    $this->itemsPerPage = $itemsPerPage;
2986
+	$this->itemsPerPage = $itemsPerPage;
2987 2987
   }
2988 2988
   public function getItemsPerPage() {
2989
-    return $this->itemsPerPage;
2989
+	return $this->itemsPerPage;
2990 2990
   }
2991 2991
   public function setKind( $kind) {
2992
-    $this->kind = $kind;
2992
+	$this->kind = $kind;
2993 2993
   }
2994 2994
   public function getKind() {
2995
-    return $this->kind;
2995
+	return $this->kind;
2996 2996
   }
2997 2997
   public function setNextLink( $nextLink) {
2998
-    $this->nextLink = $nextLink;
2998
+	$this->nextLink = $nextLink;
2999 2999
   }
3000 3000
   public function getNextLink() {
3001
-    return $this->nextLink;
3001
+	return $this->nextLink;
3002 3002
   }
3003 3003
   public function setPreviousLink( $previousLink) {
3004
-    $this->previousLink = $previousLink;
3004
+	$this->previousLink = $previousLink;
3005 3005
   }
3006 3006
   public function getPreviousLink() {
3007
-    return $this->previousLink;
3007
+	return $this->previousLink;
3008 3008
   }
3009 3009
   public function setStartIndex( $startIndex) {
3010
-    $this->startIndex = $startIndex;
3010
+	$this->startIndex = $startIndex;
3011 3011
   }
3012 3012
   public function getStartIndex() {
3013
-    return $this->startIndex;
3013
+	return $this->startIndex;
3014 3014
   }
3015 3015
   public function setTotalResults( $totalResults) {
3016
-    $this->totalResults = $totalResults;
3016
+	$this->totalResults = $totalResults;
3017 3017
   }
3018 3018
   public function getTotalResults() {
3019
-    return $this->totalResults;
3019
+	return $this->totalResults;
3020 3020
   }
3021 3021
   public function setUsername( $username) {
3022
-    $this->username = $username;
3022
+	$this->username = $username;
3023 3023
   }
3024 3024
   public function getUsername() {
3025
-    return $this->username;
3025
+	return $this->username;
3026 3026
   }
3027 3027
 }
3028 3028
 
@@ -3049,84 +3049,84 @@  discard block
 block discarded – undo
3049 3049
   public $totalResults;
3050 3050
   public $totalsForAllResults;
3051 3051
   public function setColumnHeaders(/* array(Google_McfDataColumnHeaders) */ $columnHeaders) {
3052
-    $this->assertIsArray($columnHeaders, 'Google_McfDataColumnHeaders', __METHOD__);
3053
-    $this->columnHeaders = $columnHeaders;
3052
+	$this->assertIsArray($columnHeaders, 'Google_McfDataColumnHeaders', __METHOD__);
3053
+	$this->columnHeaders = $columnHeaders;
3054 3054
   }
3055 3055
   public function getColumnHeaders() {
3056
-    return $this->columnHeaders;
3056
+	return $this->columnHeaders;
3057 3057
   }
3058 3058
   public function setContainsSampledData( $containsSampledData) {
3059
-    $this->containsSampledData = $containsSampledData;
3059
+	$this->containsSampledData = $containsSampledData;
3060 3060
   }
3061 3061
   public function getContainsSampledData() {
3062
-    return $this->containsSampledData;
3062
+	return $this->containsSampledData;
3063 3063
   }
3064 3064
   public function setId( $id) {
3065
-    $this->id = $id;
3065
+	$this->id = $id;
3066 3066
   }
3067 3067
   public function getId() {
3068
-    return $this->id;
3068
+	return $this->id;
3069 3069
   }
3070 3070
   public function setItemsPerPage( $itemsPerPage) {
3071
-    $this->itemsPerPage = $itemsPerPage;
3071
+	$this->itemsPerPage = $itemsPerPage;
3072 3072
   }
3073 3073
   public function getItemsPerPage() {
3074
-    return $this->itemsPerPage;
3074
+	return $this->itemsPerPage;
3075 3075
   }
3076 3076
   public function setKind( $kind) {
3077
-    $this->kind = $kind;
3077
+	$this->kind = $kind;
3078 3078
   }
3079 3079
   public function getKind() {
3080
-    return $this->kind;
3080
+	return $this->kind;
3081 3081
   }
3082 3082
   public function setNextLink( $nextLink) {
3083
-    $this->nextLink = $nextLink;
3083
+	$this->nextLink = $nextLink;
3084 3084
   }
3085 3085
   public function getNextLink() {
3086
-    return $this->nextLink;
3086
+	return $this->nextLink;
3087 3087
   }
3088 3088
   public function setPreviousLink( $previousLink) {
3089
-    $this->previousLink = $previousLink;
3089
+	$this->previousLink = $previousLink;
3090 3090
   }
3091 3091
   public function getPreviousLink() {
3092
-    return $this->previousLink;
3092
+	return $this->previousLink;
3093 3093
   }
3094 3094
   public function setProfileInfo(Google_McfDataProfileInfo $profileInfo) {
3095
-    $this->profileInfo = $profileInfo;
3095
+	$this->profileInfo = $profileInfo;
3096 3096
   }
3097 3097
   public function getProfileInfo() {
3098
-    return $this->profileInfo;
3098
+	return $this->profileInfo;
3099 3099
   }
3100 3100
   public function setQuery(Google_McfDataQuery $query) {
3101
-    $this->query = $query;
3101
+	$this->query = $query;
3102 3102
   }
3103 3103
   public function getQuery() {
3104
-    return $this->query;
3104
+	return $this->query;
3105 3105
   }
3106 3106
   public function setRows(/* array(Google_McfDataRows) */ $rows) {
3107
-    $this->assertIsArray($rows, 'Google_McfDataRows', __METHOD__);
3108
-    $this->rows = $rows;
3107
+	$this->assertIsArray($rows, 'Google_McfDataRows', __METHOD__);
3108
+	$this->rows = $rows;
3109 3109
   }
3110 3110
   public function getRows() {
3111
-    return $this->rows;
3111
+	return $this->rows;
3112 3112
   }
3113 3113
   public function setSelfLink( $selfLink) {
3114
-    $this->selfLink = $selfLink;
3114
+	$this->selfLink = $selfLink;
3115 3115
   }
3116 3116
   public function getSelfLink() {
3117
-    return $this->selfLink;
3117
+	return $this->selfLink;
3118 3118
   }
3119 3119
   public function setTotalResults( $totalResults) {
3120
-    $this->totalResults = $totalResults;
3120
+	$this->totalResults = $totalResults;
3121 3121
   }
3122 3122
   public function getTotalResults() {
3123
-    return $this->totalResults;
3123
+	return $this->totalResults;
3124 3124
   }
3125 3125
   public function setTotalsForAllResults( $totalsForAllResults) {
3126
-    $this->totalsForAllResults = $totalsForAllResults;
3126
+	$this->totalsForAllResults = $totalsForAllResults;
3127 3127
   }
3128 3128
   public function getTotalsForAllResults() {
3129
-    return $this->totalsForAllResults;
3129
+	return $this->totalsForAllResults;
3130 3130
   }
3131 3131
 }
3132 3132
 
@@ -3135,22 +3135,22 @@  discard block
 block discarded – undo
3135 3135
   public $dataType;
3136 3136
   public $name;
3137 3137
   public function setColumnType( $columnType) {
3138
-    $this->columnType = $columnType;
3138
+	$this->columnType = $columnType;
3139 3139
   }
3140 3140
   public function getColumnType() {
3141
-    return $this->columnType;
3141
+	return $this->columnType;
3142 3142
   }
3143 3143
   public function setDataType( $dataType) {
3144
-    $this->dataType = $dataType;
3144
+	$this->dataType = $dataType;
3145 3145
   }
3146 3146
   public function getDataType() {
3147
-    return $this->dataType;
3147
+	return $this->dataType;
3148 3148
   }
3149 3149
   public function setName( $name) {
3150
-    $this->name = $name;
3150
+	$this->name = $name;
3151 3151
   }
3152 3152
   public function getName() {
3153
-    return $this->name;
3153
+	return $this->name;
3154 3154
   }
3155 3155
 }
3156 3156
 
@@ -3162,40 +3162,40 @@  discard block
 block discarded – undo
3162 3162
   public $tableId;
3163 3163
   public $webPropertyId;
3164 3164
   public function setAccountId( $accountId) {
3165
-    $this->accountId = $accountId;
3165
+	$this->accountId = $accountId;
3166 3166
   }
3167 3167
   public function getAccountId() {
3168
-    return $this->accountId;
3168
+	return $this->accountId;
3169 3169
   }
3170 3170
   public function setInternalWebPropertyId( $internalWebPropertyId) {
3171
-    $this->internalWebPropertyId = $internalWebPropertyId;
3171
+	$this->internalWebPropertyId = $internalWebPropertyId;
3172 3172
   }
3173 3173
   public function getInternalWebPropertyId() {
3174
-    return $this->internalWebPropertyId;
3174
+	return $this->internalWebPropertyId;
3175 3175
   }
3176 3176
   public function setProfileId( $profileId) {
3177
-    $this->profileId = $profileId;
3177
+	$this->profileId = $profileId;
3178 3178
   }
3179 3179
   public function getProfileId() {
3180
-    return $this->profileId;
3180
+	return $this->profileId;
3181 3181
   }
3182 3182
   public function setProfileName( $profileName) {
3183
-    $this->profileName = $profileName;
3183
+	$this->profileName = $profileName;
3184 3184
   }
3185 3185
   public function getProfileName() {
3186
-    return $this->profileName;
3186
+	return $this->profileName;
3187 3187
   }
3188 3188
   public function setTableId( $tableId) {
3189
-    $this->tableId = $tableId;
3189
+	$this->tableId = $tableId;
3190 3190
   }
3191 3191
   public function getTableId() {
3192
-    return $this->tableId;
3192
+	return $this->tableId;
3193 3193
   }
3194 3194
   public function setWebPropertyId( $webPropertyId) {
3195
-    $this->webPropertyId = $webPropertyId;
3195
+	$this->webPropertyId = $webPropertyId;
3196 3196
   }
3197 3197
   public function getWebPropertyId() {
3198
-    return $this->webPropertyId;
3198
+	return $this->webPropertyId;
3199 3199
   }
3200 3200
 }
3201 3201
 
@@ -3211,66 +3211,66 @@  discard block
 block discarded – undo
3211 3211
   public $start_date;
3212 3212
   public $start_index;
3213 3213
   public function setDimensions( $dimensions) {
3214
-    $this->dimensions = $dimensions;
3214
+	$this->dimensions = $dimensions;
3215 3215
   }
3216 3216
   public function getDimensions() {
3217
-    return $this->dimensions;
3217
+	return $this->dimensions;
3218 3218
   }
3219 3219
   public function setEnd_date( $end_date) {
3220
-    $this->end_date = $end_date;
3220
+	$this->end_date = $end_date;
3221 3221
   }
3222 3222
   public function getEnd_date() {
3223
-    return $this->end_date;
3223
+	return $this->end_date;
3224 3224
   }
3225 3225
   public function setFilters( $filters) {
3226
-    $this->filters = $filters;
3226
+	$this->filters = $filters;
3227 3227
   }
3228 3228
   public function getFilters() {
3229
-    return $this->filters;
3229
+	return $this->filters;
3230 3230
   }
3231 3231
   public function setIds( $ids) {
3232
-    $this->ids = $ids;
3232
+	$this->ids = $ids;
3233 3233
   }
3234 3234
   public function getIds() {
3235
-    return $this->ids;
3235
+	return $this->ids;
3236 3236
   }
3237 3237
   public function setMax_results( $max_results) {
3238
-    $this->max_results = $max_results;
3238
+	$this->max_results = $max_results;
3239 3239
   }
3240 3240
   public function getMax_results() {
3241
-    return $this->max_results;
3241
+	return $this->max_results;
3242 3242
   }
3243 3243
   public function setMetrics(/* array(Google_string) */ $metrics) {
3244
-    $this->assertIsArray($metrics, 'Google_string', __METHOD__);
3245
-    $this->metrics = $metrics;
3244
+	$this->assertIsArray($metrics, 'Google_string', __METHOD__);
3245
+	$this->metrics = $metrics;
3246 3246
   }
3247 3247
   public function getMetrics() {
3248
-    return $this->metrics;
3248
+	return $this->metrics;
3249 3249
   }
3250 3250
   public function setSegment( $segment) {
3251
-    $this->segment = $segment;
3251
+	$this->segment = $segment;
3252 3252
   }
3253 3253
   public function getSegment() {
3254
-    return $this->segment;
3254
+	return $this->segment;
3255 3255
   }
3256 3256
   public function setSort(/* array(Google_string) */ $sort) {
3257
-    $this->assertIsArray($sort, 'Google_string', __METHOD__);
3258
-    $this->sort = $sort;
3257
+	$this->assertIsArray($sort, 'Google_string', __METHOD__);
3258
+	$this->sort = $sort;
3259 3259
   }
3260 3260
   public function getSort() {
3261
-    return $this->sort;
3261
+	return $this->sort;
3262 3262
   }
3263 3263
   public function setStart_date( $start_date) {
3264
-    $this->start_date = $start_date;
3264
+	$this->start_date = $start_date;
3265 3265
   }
3266 3266
   public function getStart_date() {
3267
-    return $this->start_date;
3267
+	return $this->start_date;
3268 3268
   }
3269 3269
   public function setStart_index( $start_index) {
3270
-    $this->start_index = $start_index;
3270
+	$this->start_index = $start_index;
3271 3271
   }
3272 3272
   public function getStart_index() {
3273
-    return $this->start_index;
3273
+	return $this->start_index;
3274 3274
   }
3275 3275
 }
3276 3276
 
@@ -3280,17 +3280,17 @@  discard block
 block discarded – undo
3280 3280
   public $conversionPathValue;
3281 3281
   public $primitiveValue;
3282 3282
   public function setConversionPathValue(/* array(Google_McfDataRowsConversionPathValue) */ $conversionPathValue) {
3283
-    $this->assertIsArray($conversionPathValue, 'Google_McfDataRowsConversionPathValue', __METHOD__);
3284
-    $this->conversionPathValue = $conversionPathValue;
3283
+	$this->assertIsArray($conversionPathValue, 'Google_McfDataRowsConversionPathValue', __METHOD__);
3284
+	$this->conversionPathValue = $conversionPathValue;
3285 3285
   }
3286 3286
   public function getConversionPathValue() {
3287
-    return $this->conversionPathValue;
3287
+	return $this->conversionPathValue;
3288 3288
   }
3289 3289
   public function setPrimitiveValue( $primitiveValue) {
3290
-    $this->primitiveValue = $primitiveValue;
3290
+	$this->primitiveValue = $primitiveValue;
3291 3291
   }
3292 3292
   public function getPrimitiveValue() {
3293
-    return $this->primitiveValue;
3293
+	return $this->primitiveValue;
3294 3294
   }
3295 3295
 }
3296 3296
 
@@ -3298,16 +3298,16 @@  discard block
 block discarded – undo
3298 3298
   public $interactionType;
3299 3299
   public $nodeValue;
3300 3300
   public function setInteractionType( $interactionType) {
3301
-    $this->interactionType = $interactionType;
3301
+	$this->interactionType = $interactionType;
3302 3302
   }
3303 3303
   public function getInteractionType() {
3304
-    return $this->interactionType;
3304
+	return $this->interactionType;
3305 3305
   }
3306 3306
   public function setNodeValue( $nodeValue) {
3307
-    $this->nodeValue = $nodeValue;
3307
+	$this->nodeValue = $nodeValue;
3308 3308
   }
3309 3309
   public function getNodeValue() {
3310
-    return $this->nodeValue;
3310
+	return $this->nodeValue;
3311 3311
   }
3312 3312
 }
3313 3313
 
@@ -3340,130 +3340,130 @@  discard block
 block discarded – undo
3340 3340
   public $webPropertyId;
3341 3341
   public $websiteUrl;
3342 3342
   public function setAccountId( $accountId) {
3343
-    $this->accountId = $accountId;
3343
+	$this->accountId = $accountId;
3344 3344
   }
3345 3345
   public function getAccountId() {
3346
-    return $this->accountId;
3346
+	return $this->accountId;
3347 3347
   }
3348 3348
   public function setChildLink(Google_ProfileChildLink $childLink) {
3349
-    $this->childLink = $childLink;
3349
+	$this->childLink = $childLink;
3350 3350
   }
3351 3351
   public function getChildLink() {
3352
-    return $this->childLink;
3352
+	return $this->childLink;
3353 3353
   }
3354 3354
   public function setCreated( $created) {
3355
-    $this->created = $created;
3355
+	$this->created = $created;
3356 3356
   }
3357 3357
   public function getCreated() {
3358
-    return $this->created;
3358
+	return $this->created;
3359 3359
   }
3360 3360
   public function setCurrency( $currency) {
3361
-    $this->currency = $currency;
3361
+	$this->currency = $currency;
3362 3362
   }
3363 3363
   public function getCurrency() {
3364
-    return $this->currency;
3364
+	return $this->currency;
3365 3365
   }
3366 3366
   public function setDefaultPage( $defaultPage) {
3367
-    $this->defaultPage = $defaultPage;
3367
+	$this->defaultPage = $defaultPage;
3368 3368
   }
3369 3369
   public function getDefaultPage() {
3370
-    return $this->defaultPage;
3370
+	return $this->defaultPage;
3371 3371
   }
3372 3372
   public function setECommerceTracking( $eCommerceTracking) {
3373
-    $this->eCommerceTracking = $eCommerceTracking;
3373
+	$this->eCommerceTracking = $eCommerceTracking;
3374 3374
   }
3375 3375
   public function getECommerceTracking() {
3376
-    return $this->eCommerceTracking;
3376
+	return $this->eCommerceTracking;
3377 3377
   }
3378 3378
   public function setExcludeQueryParameters( $excludeQueryParameters) {
3379
-    $this->excludeQueryParameters = $excludeQueryParameters;
3379
+	$this->excludeQueryParameters = $excludeQueryParameters;
3380 3380
   }
3381 3381
   public function getExcludeQueryParameters() {
3382
-    return $this->excludeQueryParameters;
3382
+	return $this->excludeQueryParameters;
3383 3383
   }
3384 3384
   public function setId( $id) {
3385
-    $this->id = $id;
3385
+	$this->id = $id;
3386 3386
   }
3387 3387
   public function getId() {
3388
-    return $this->id;
3388
+	return $this->id;
3389 3389
   }
3390 3390
   public function setInternalWebPropertyId( $internalWebPropertyId) {
3391
-    $this->internalWebPropertyId = $internalWebPropertyId;
3391
+	$this->internalWebPropertyId = $internalWebPropertyId;
3392 3392
   }
3393 3393
   public function getInternalWebPropertyId() {
3394
-    return $this->internalWebPropertyId;
3394
+	return $this->internalWebPropertyId;
3395 3395
   }
3396 3396
   public function setKind( $kind) {
3397
-    $this->kind = $kind;
3397
+	$this->kind = $kind;
3398 3398
   }
3399 3399
   public function getKind() {
3400
-    return $this->kind;
3400
+	return $this->kind;
3401 3401
   }
3402 3402
   public function setName( $name) {
3403
-    $this->name = $name;
3403
+	$this->name = $name;
3404 3404
   }
3405 3405
   public function getName() {
3406
-    return $this->name;
3406
+	return $this->name;
3407 3407
   }
3408 3408
   public function setParentLink(Google_ProfileParentLink $parentLink) {
3409
-    $this->parentLink = $parentLink;
3409
+	$this->parentLink = $parentLink;
3410 3410
   }
3411 3411
   public function getParentLink() {
3412
-    return $this->parentLink;
3412
+	return $this->parentLink;
3413 3413
   }
3414 3414
   public function setPermissions(Google_ProfilePermissions $permissions) {
3415
-    $this->permissions = $permissions;
3415
+	$this->permissions = $permissions;
3416 3416
   }
3417 3417
   public function getPermissions() {
3418
-    return $this->permissions;
3418
+	return $this->permissions;
3419 3419
   }
3420 3420
   public function setSelfLink( $selfLink) {
3421
-    $this->selfLink = $selfLink;
3421
+	$this->selfLink = $selfLink;
3422 3422
   }
3423 3423
   public function getSelfLink() {
3424
-    return $this->selfLink;
3424
+	return $this->selfLink;
3425 3425
   }
3426 3426
   public function setSiteSearchCategoryParameters( $siteSearchCategoryParameters) {
3427
-    $this->siteSearchCategoryParameters = $siteSearchCategoryParameters;
3427
+	$this->siteSearchCategoryParameters = $siteSearchCategoryParameters;
3428 3428
   }
3429 3429
   public function getSiteSearchCategoryParameters() {
3430
-    return $this->siteSearchCategoryParameters;
3430
+	return $this->siteSearchCategoryParameters;
3431 3431
   }
3432 3432
   public function setSiteSearchQueryParameters( $siteSearchQueryParameters) {
3433
-    $this->siteSearchQueryParameters = $siteSearchQueryParameters;
3433
+	$this->siteSearchQueryParameters = $siteSearchQueryParameters;
3434 3434
   }
3435 3435
   public function getSiteSearchQueryParameters() {
3436
-    return $this->siteSearchQueryParameters;
3436
+	return $this->siteSearchQueryParameters;
3437 3437
   }
3438 3438
   public function setTimezone( $timezone) {
3439
-    $this->timezone = $timezone;
3439
+	$this->timezone = $timezone;
3440 3440
   }
3441 3441
   public function getTimezone() {
3442
-    return $this->timezone;
3442
+	return $this->timezone;
3443 3443
   }
3444 3444
   public function setType( $type) {
3445
-    $this->type = $type;
3445
+	$this->type = $type;
3446 3446
   }
3447 3447
   public function getType() {
3448
-    return $this->type;
3448
+	return $this->type;
3449 3449
   }
3450 3450
   public function setUpdated( $updated) {
3451
-    $this->updated = $updated;
3451
+	$this->updated = $updated;
3452 3452
   }
3453 3453
   public function getUpdated() {
3454
-    return $this->updated;
3454
+	return $this->updated;
3455 3455
   }
3456 3456
   public function setWebPropertyId( $webPropertyId) {
3457
-    $this->webPropertyId = $webPropertyId;
3457
+	$this->webPropertyId = $webPropertyId;
3458 3458
   }
3459 3459
   public function getWebPropertyId() {
3460
-    return $this->webPropertyId;
3460
+	return $this->webPropertyId;
3461 3461
   }
3462 3462
   public function setWebsiteUrl( $websiteUrl) {
3463
-    $this->websiteUrl = $websiteUrl;
3463
+	$this->websiteUrl = $websiteUrl;
3464 3464
   }
3465 3465
   public function getWebsiteUrl() {
3466
-    return $this->websiteUrl;
3466
+	return $this->websiteUrl;
3467 3467
   }
3468 3468
 }
3469 3469
 
@@ -3471,16 +3471,16 @@  discard block
 block discarded – undo
3471 3471
   public $href;
3472 3472
   public $type;
3473 3473
   public function setHref( $href) {
3474
-    $this->href = $href;
3474
+	$this->href = $href;
3475 3475
   }
3476 3476
   public function getHref() {
3477
-    return $this->href;
3477
+	return $this->href;
3478 3478
   }
3479 3479
   public function setType( $type) {
3480
-    $this->type = $type;
3480
+	$this->type = $type;
3481 3481
   }
3482 3482
   public function getType() {
3483
-    return $this->type;
3483
+	return $this->type;
3484 3484
   }
3485 3485
 }
3486 3486
 
@@ -3488,27 +3488,27 @@  discard block
 block discarded – undo
3488 3488
   public $href;
3489 3489
   public $type;
3490 3490
   public function setHref( $href) {
3491
-    $this->href = $href;
3491
+	$this->href = $href;
3492 3492
   }
3493 3493
   public function getHref() {
3494
-    return $this->href;
3494
+	return $this->href;
3495 3495
   }
3496 3496
   public function setType( $type) {
3497
-    $this->type = $type;
3497
+	$this->type = $type;
3498 3498
   }
3499 3499
   public function getType() {
3500
-    return $this->type;
3500
+	return $this->type;
3501 3501
   }
3502 3502
 }
3503 3503
 
3504 3504
 class Google_ProfilePermissions extends Google_Model {
3505 3505
   public $effective;
3506 3506
   public function setEffective(/* array(Google_string) */ $effective) {
3507
-    $this->assertIsArray($effective, 'Google_string', __METHOD__);
3508
-    $this->effective = $effective;
3507
+	$this->assertIsArray($effective, 'Google_string', __METHOD__);
3508
+	$this->effective = $effective;
3509 3509
   }
3510 3510
   public function getEffective() {
3511
-    return $this->effective;
3511
+	return $this->effective;
3512 3512
   }
3513 3513
 }
3514 3514
 
@@ -3521,46 +3521,46 @@  discard block
 block discarded – undo
3521 3521
   public $name;
3522 3522
   public $webPropertyId;
3523 3523
   public function setAccountId( $accountId) {
3524
-    $this->accountId = $accountId;
3524
+	$this->accountId = $accountId;
3525 3525
   }
3526 3526
   public function getAccountId() {
3527
-    return $this->accountId;
3527
+	return $this->accountId;
3528 3528
   }
3529 3529
   public function setHref( $href) {
3530
-    $this->href = $href;
3530
+	$this->href = $href;
3531 3531
   }
3532 3532
   public function getHref() {
3533
-    return $this->href;
3533
+	return $this->href;
3534 3534
   }
3535 3535
   public function setId( $id) {
3536
-    $this->id = $id;
3536
+	$this->id = $id;
3537 3537
   }
3538 3538
   public function getId() {
3539
-    return $this->id;
3539
+	return $this->id;
3540 3540
   }
3541 3541
   public function setInternalWebPropertyId( $internalWebPropertyId) {
3542
-    $this->internalWebPropertyId = $internalWebPropertyId;
3542
+	$this->internalWebPropertyId = $internalWebPropertyId;
3543 3543
   }
3544 3544
   public function getInternalWebPropertyId() {
3545
-    return $this->internalWebPropertyId;
3545
+	return $this->internalWebPropertyId;
3546 3546
   }
3547 3547
   public function setKind( $kind) {
3548
-    $this->kind = $kind;
3548
+	$this->kind = $kind;
3549 3549
   }
3550 3550
   public function getKind() {
3551
-    return $this->kind;
3551
+	return $this->kind;
3552 3552
   }
3553 3553
   public function setName( $name) {
3554
-    $this->name = $name;
3554
+	$this->name = $name;
3555 3555
   }
3556 3556
   public function getName() {
3557
-    return $this->name;
3557
+	return $this->name;
3558 3558
   }
3559 3559
   public function setWebPropertyId( $webPropertyId) {
3560
-    $this->webPropertyId = $webPropertyId;
3560
+	$this->webPropertyId = $webPropertyId;
3561 3561
   }
3562 3562
   public function getWebPropertyId() {
3563
-    return $this->webPropertyId;
3563
+	return $this->webPropertyId;
3564 3564
   }
3565 3565
 }
3566 3566
 
@@ -3576,53 +3576,53 @@  discard block
 block discarded – undo
3576 3576
   public $totalResults;
3577 3577
   public $username;
3578 3578
   public function setItems(/* array(Google_Profile) */ $items) {
3579
-    $this->assertIsArray($items, 'Google_Profile', __METHOD__);
3580
-    $this->items = $items;
3579
+	$this->assertIsArray($items, 'Google_Profile', __METHOD__);
3580
+	$this->items = $items;
3581 3581
   }
3582 3582
   public function getItems() {
3583
-    return $this->items;
3583
+	return $this->items;
3584 3584
   }
3585 3585
   public function setItemsPerPage( $itemsPerPage) {
3586
-    $this->itemsPerPage = $itemsPerPage;
3586
+	$this->itemsPerPage = $itemsPerPage;
3587 3587
   }
3588 3588
   public function getItemsPerPage() {
3589
-    return $this->itemsPerPage;
3589
+	return $this->itemsPerPage;
3590 3590
   }
3591 3591
   public function setKind( $kind) {
3592
-    $this->kind = $kind;
3592
+	$this->kind = $kind;
3593 3593
   }
3594 3594
   public function getKind() {
3595
-    return $this->kind;
3595
+	return $this->kind;
3596 3596
   }
3597 3597
   public function setNextLink( $nextLink) {
3598
-    $this->nextLink = $nextLink;
3598
+	$this->nextLink = $nextLink;
3599 3599
   }
3600 3600
   public function getNextLink() {
3601
-    return $this->nextLink;
3601
+	return $this->nextLink;
3602 3602
   }
3603 3603
   public function setPreviousLink( $previousLink) {
3604
-    $this->previousLink = $previousLink;
3604
+	$this->previousLink = $previousLink;
3605 3605
   }
3606 3606
   public function getPreviousLink() {
3607
-    return $this->previousLink;
3607
+	return $this->previousLink;
3608 3608
   }
3609 3609
   public function setStartIndex( $startIndex) {
3610
-    $this->startIndex = $startIndex;
3610
+	$this->startIndex = $startIndex;
3611 3611
   }
3612 3612
   public function getStartIndex() {
3613
-    return $this->startIndex;
3613
+	return $this->startIndex;
3614 3614
   }
3615 3615
   public function setTotalResults( $totalResults) {
3616
-    $this->totalResults = $totalResults;
3616
+	$this->totalResults = $totalResults;
3617 3617
   }
3618 3618
   public function getTotalResults() {
3619
-    return $this->totalResults;
3619
+	return $this->totalResults;
3620 3620
   }
3621 3621
   public function setUsername( $username) {
3622
-    $this->username = $username;
3622
+	$this->username = $username;
3623 3623
   }
3624 3624
   public function getUsername() {
3625
-    return $this->username;
3625
+	return $this->username;
3626 3626
   }
3627 3627
 }
3628 3628
 
@@ -3643,60 +3643,60 @@  discard block
 block discarded – undo
3643 3643
   public $totalResults;
3644 3644
   public $totalsForAllResults;
3645 3645
   public function setColumnHeaders(/* array(Google_RealtimeDataColumnHeaders) */ $columnHeaders) {
3646
-    $this->assertIsArray($columnHeaders, 'Google_RealtimeDataColumnHeaders', __METHOD__);
3647
-    $this->columnHeaders = $columnHeaders;
3646
+	$this->assertIsArray($columnHeaders, 'Google_RealtimeDataColumnHeaders', __METHOD__);
3647
+	$this->columnHeaders = $columnHeaders;
3648 3648
   }
3649 3649
   public function getColumnHeaders() {
3650
-    return $this->columnHeaders;
3650
+	return $this->columnHeaders;
3651 3651
   }
3652 3652
   public function setId( $id) {
3653
-    $this->id = $id;
3653
+	$this->id = $id;
3654 3654
   }
3655 3655
   public function getId() {
3656
-    return $this->id;
3656
+	return $this->id;
3657 3657
   }
3658 3658
   public function setKind( $kind) {
3659
-    $this->kind = $kind;
3659
+	$this->kind = $kind;
3660 3660
   }
3661 3661
   public function getKind() {
3662
-    return $this->kind;
3662
+	return $this->kind;
3663 3663
   }
3664 3664
   public function setProfileInfo(Google_RealtimeDataProfileInfo $profileInfo) {
3665
-    $this->profileInfo = $profileInfo;
3665
+	$this->profileInfo = $profileInfo;
3666 3666
   }
3667 3667
   public function getProfileInfo() {
3668
-    return $this->profileInfo;
3668
+	return $this->profileInfo;
3669 3669
   }
3670 3670
   public function setQuery(Google_RealtimeDataQuery $query) {
3671
-    $this->query = $query;
3671
+	$this->query = $query;
3672 3672
   }
3673 3673
   public function getQuery() {
3674
-    return $this->query;
3674
+	return $this->query;
3675 3675
   }
3676 3676
   public function setRows(/* array(Google_string) */ $rows) {
3677
-    $this->assertIsArray($rows, 'Google_string', __METHOD__);
3678
-    $this->rows = $rows;
3677
+	$this->assertIsArray($rows, 'Google_string', __METHOD__);
3678
+	$this->rows = $rows;
3679 3679
   }
3680 3680
   public function getRows() {
3681
-    return $this->rows;
3681
+	return $this->rows;
3682 3682
   }
3683 3683
   public function setSelfLink( $selfLink) {
3684
-    $this->selfLink = $selfLink;
3684
+	$this->selfLink = $selfLink;
3685 3685
   }
3686 3686
   public function getSelfLink() {
3687
-    return $this->selfLink;
3687
+	return $this->selfLink;
3688 3688
   }
3689 3689
   public function setTotalResults( $totalResults) {
3690
-    $this->totalResults = $totalResults;
3690
+	$this->totalResults = $totalResults;
3691 3691
   }
3692 3692
   public function getTotalResults() {
3693
-    return $this->totalResults;
3693
+	return $this->totalResults;
3694 3694
   }
3695 3695
   public function setTotalsForAllResults( $totalsForAllResults) {
3696
-    $this->totalsForAllResults = $totalsForAllResults;
3696
+	$this->totalsForAllResults = $totalsForAllResults;
3697 3697
   }
3698 3698
   public function getTotalsForAllResults() {
3699
-    return $this->totalsForAllResults;
3699
+	return $this->totalsForAllResults;
3700 3700
   }
3701 3701
 }
3702 3702
 
@@ -3705,22 +3705,22 @@  discard block
 block discarded – undo
3705 3705
   public $dataType;
3706 3706
   public $name;
3707 3707
   public function setColumnType( $columnType) {
3708
-    $this->columnType = $columnType;
3708
+	$this->columnType = $columnType;
3709 3709
   }
3710 3710
   public function getColumnType() {
3711
-    return $this->columnType;
3711
+	return $this->columnType;
3712 3712
   }
3713 3713
   public function setDataType( $dataType) {
3714
-    $this->dataType = $dataType;
3714
+	$this->dataType = $dataType;
3715 3715
   }
3716 3716
   public function getDataType() {
3717
-    return $this->dataType;
3717
+	return $this->dataType;
3718 3718
   }
3719 3719
   public function setName( $name) {
3720
-    $this->name = $name;
3720
+	$this->name = $name;
3721 3721
   }
3722 3722
   public function getName() {
3723
-    return $this->name;
3723
+	return $this->name;
3724 3724
   }
3725 3725
 }
3726 3726
 
@@ -3732,40 +3732,40 @@  discard block
 block discarded – undo
3732 3732
   public $tableId;
3733 3733
   public $webPropertyId;
3734 3734
   public function setAccountId( $accountId) {
3735
-    $this->accountId = $accountId;
3735
+	$this->accountId = $accountId;
3736 3736
   }
3737 3737
   public function getAccountId() {
3738
-    return $this->accountId;
3738
+	return $this->accountId;
3739 3739
   }
3740 3740
   public function setInternalWebPropertyId( $internalWebPropertyId) {
3741
-    $this->internalWebPropertyId = $internalWebPropertyId;
3741
+	$this->internalWebPropertyId = $internalWebPropertyId;
3742 3742
   }
3743 3743
   public function getInternalWebPropertyId() {
3744
-    return $this->internalWebPropertyId;
3744
+	return $this->internalWebPropertyId;
3745 3745
   }
3746 3746
   public function setProfileId( $profileId) {
3747
-    $this->profileId = $profileId;
3747
+	$this->profileId = $profileId;
3748 3748
   }
3749 3749
   public function getProfileId() {
3750
-    return $this->profileId;
3750
+	return $this->profileId;
3751 3751
   }
3752 3752
   public function setProfileName( $profileName) {
3753
-    $this->profileName = $profileName;
3753
+	$this->profileName = $profileName;
3754 3754
   }
3755 3755
   public function getProfileName() {
3756
-    return $this->profileName;
3756
+	return $this->profileName;
3757 3757
   }
3758 3758
   public function setTableId( $tableId) {
3759
-    $this->tableId = $tableId;
3759
+	$this->tableId = $tableId;
3760 3760
   }
3761 3761
   public function getTableId() {
3762
-    return $this->tableId;
3762
+	return $this->tableId;
3763 3763
   }
3764 3764
   public function setWebPropertyId( $webPropertyId) {
3765
-    $this->webPropertyId = $webPropertyId;
3765
+	$this->webPropertyId = $webPropertyId;
3766 3766
   }
3767 3767
   public function getWebPropertyId() {
3768
-    return $this->webPropertyId;
3768
+	return $this->webPropertyId;
3769 3769
   }
3770 3770
 }
3771 3771
 
@@ -3777,42 +3777,42 @@  discard block
 block discarded – undo
3777 3777
   public $metrics;
3778 3778
   public $sort;
3779 3779
   public function setDimensions( $dimensions) {
3780
-    $this->dimensions = $dimensions;
3780
+	$this->dimensions = $dimensions;
3781 3781
   }
3782 3782
   public function getDimensions() {
3783
-    return $this->dimensions;
3783
+	return $this->dimensions;
3784 3784
   }
3785 3785
   public function setFilters( $filters) {
3786
-    $this->filters = $filters;
3786
+	$this->filters = $filters;
3787 3787
   }
3788 3788
   public function getFilters() {
3789
-    return $this->filters;
3789
+	return $this->filters;
3790 3790
   }
3791 3791
   public function setIds( $ids) {
3792
-    $this->ids = $ids;
3792
+	$this->ids = $ids;
3793 3793
   }
3794 3794
   public function getIds() {
3795
-    return $this->ids;
3795
+	return $this->ids;
3796 3796
   }
3797 3797
   public function setMax_results( $max_results) {
3798
-    $this->max_results = $max_results;
3798
+	$this->max_results = $max_results;
3799 3799
   }
3800 3800
   public function getMax_results() {
3801
-    return $this->max_results;
3801
+	return $this->max_results;
3802 3802
   }
3803 3803
   public function setMetrics(/* array(Google_string) */ $metrics) {
3804
-    $this->assertIsArray($metrics, 'Google_string', __METHOD__);
3805
-    $this->metrics = $metrics;
3804
+	$this->assertIsArray($metrics, 'Google_string', __METHOD__);
3805
+	$this->metrics = $metrics;
3806 3806
   }
3807 3807
   public function getMetrics() {
3808
-    return $this->metrics;
3808
+	return $this->metrics;
3809 3809
   }
3810 3810
   public function setSort(/* array(Google_string) */ $sort) {
3811
-    $this->assertIsArray($sort, 'Google_string', __METHOD__);
3812
-    $this->sort = $sort;
3811
+	$this->assertIsArray($sort, 'Google_string', __METHOD__);
3812
+	$this->sort = $sort;
3813 3813
   }
3814 3814
   public function getSort() {
3815
-    return $this->sort;
3815
+	return $this->sort;
3816 3816
   }
3817 3817
 }
3818 3818
 
@@ -3826,52 +3826,52 @@  discard block
 block discarded – undo
3826 3826
   public $selfLink;
3827 3827
   public $updated;
3828 3828
   public function setCreated( $created) {
3829
-    $this->created = $created;
3829
+	$this->created = $created;
3830 3830
   }
3831 3831
   public function getCreated() {
3832
-    return $this->created;
3832
+	return $this->created;
3833 3833
   }
3834 3834
   public function setDefinition( $definition) {
3835
-    $this->definition = $definition;
3835
+	$this->definition = $definition;
3836 3836
   }
3837 3837
   public function getDefinition() {
3838
-    return $this->definition;
3838
+	return $this->definition;
3839 3839
   }
3840 3840
   public function setId( $id) {
3841
-    $this->id = $id;
3841
+	$this->id = $id;
3842 3842
   }
3843 3843
   public function getId() {
3844
-    return $this->id;
3844
+	return $this->id;
3845 3845
   }
3846 3846
   public function setKind( $kind) {
3847
-    $this->kind = $kind;
3847
+	$this->kind = $kind;
3848 3848
   }
3849 3849
   public function getKind() {
3850
-    return $this->kind;
3850
+	return $this->kind;
3851 3851
   }
3852 3852
   public function setName( $name) {
3853
-    $this->name = $name;
3853
+	$this->name = $name;
3854 3854
   }
3855 3855
   public function getName() {
3856
-    return $this->name;
3856
+	return $this->name;
3857 3857
   }
3858 3858
   public function setSegmentId( $segmentId) {
3859
-    $this->segmentId = $segmentId;
3859
+	$this->segmentId = $segmentId;
3860 3860
   }
3861 3861
   public function getSegmentId() {
3862
-    return $this->segmentId;
3862
+	return $this->segmentId;
3863 3863
   }
3864 3864
   public function setSelfLink( $selfLink) {
3865
-    $this->selfLink = $selfLink;
3865
+	$this->selfLink = $selfLink;
3866 3866
   }
3867 3867
   public function getSelfLink() {
3868
-    return $this->selfLink;
3868
+	return $this->selfLink;
3869 3869
   }
3870 3870
   public function setUpdated( $updated) {
3871
-    $this->updated = $updated;
3871
+	$this->updated = $updated;
3872 3872
   }
3873 3873
   public function getUpdated() {
3874
-    return $this->updated;
3874
+	return $this->updated;
3875 3875
   }
3876 3876
 }
3877 3877
 
@@ -3887,53 +3887,53 @@  discard block
 block discarded – undo
3887 3887
   public $totalResults;
3888 3888
   public $username;
3889 3889
   public function setItems(/* array(Google_Segment) */ $items) {
3890
-    $this->assertIsArray($items, 'Google_Segment', __METHOD__);
3891
-    $this->items = $items;
3890
+	$this->assertIsArray($items, 'Google_Segment', __METHOD__);
3891
+	$this->items = $items;
3892 3892
   }
3893 3893
   public function getItems() {
3894
-    return $this->items;
3894
+	return $this->items;
3895 3895
   }
3896 3896
   public function setItemsPerPage( $itemsPerPage) {
3897
-    $this->itemsPerPage = $itemsPerPage;
3897
+	$this->itemsPerPage = $itemsPerPage;
3898 3898
   }
3899 3899
   public function getItemsPerPage() {
3900
-    return $this->itemsPerPage;
3900
+	return $this->itemsPerPage;
3901 3901
   }
3902 3902
   public function setKind( $kind) {
3903
-    $this->kind = $kind;
3903
+	$this->kind = $kind;
3904 3904
   }
3905 3905
   public function getKind() {
3906
-    return $this->kind;
3906
+	return $this->kind;
3907 3907
   }
3908 3908
   public function setNextLink( $nextLink) {
3909
-    $this->nextLink = $nextLink;
3909
+	$this->nextLink = $nextLink;
3910 3910
   }
3911 3911
   public function getNextLink() {
3912
-    return $this->nextLink;
3912
+	return $this->nextLink;
3913 3913
   }
3914 3914
   public function setPreviousLink( $previousLink) {
3915
-    $this->previousLink = $previousLink;
3915
+	$this->previousLink = $previousLink;
3916 3916
   }
3917 3917
   public function getPreviousLink() {
3918
-    return $this->previousLink;
3918
+	return $this->previousLink;
3919 3919
   }
3920 3920
   public function setStartIndex( $startIndex) {
3921
-    $this->startIndex = $startIndex;
3921
+	$this->startIndex = $startIndex;
3922 3922
   }
3923 3923
   public function getStartIndex() {
3924
-    return $this->startIndex;
3924
+	return $this->startIndex;
3925 3925
   }
3926 3926
   public function setTotalResults( $totalResults) {
3927
-    $this->totalResults = $totalResults;
3927
+	$this->totalResults = $totalResults;
3928 3928
   }
3929 3929
   public function getTotalResults() {
3930
-    return $this->totalResults;
3930
+	return $this->totalResults;
3931 3931
   }
3932 3932
   public function setUsername( $username) {
3933
-    $this->username = $username;
3933
+	$this->username = $username;
3934 3934
   }
3935 3935
   public function getUsername() {
3936
-    return $this->username;
3936
+	return $this->username;
3937 3937
   }
3938 3938
 }
3939 3939
 
@@ -3945,41 +3945,41 @@  discard block
 block discarded – undo
3945 3945
   public $kind;
3946 3946
   public $status;
3947 3947
   public function setAccountId( $accountId) {
3948
-    $this->accountId = $accountId;
3948
+	$this->accountId = $accountId;
3949 3949
   }
3950 3950
   public function getAccountId() {
3951
-    return $this->accountId;
3951
+	return $this->accountId;
3952 3952
   }
3953 3953
   public function setCustomDataSourceId( $customDataSourceId) {
3954
-    $this->customDataSourceId = $customDataSourceId;
3954
+	$this->customDataSourceId = $customDataSourceId;
3955 3955
   }
3956 3956
   public function getCustomDataSourceId() {
3957
-    return $this->customDataSourceId;
3957
+	return $this->customDataSourceId;
3958 3958
   }
3959 3959
   public function setErrors(/* array(Google_string) */ $errors) {
3960
-    $this->assertIsArray($errors, 'Google_string', __METHOD__);
3961
-    $this->errors = $errors;
3960
+	$this->assertIsArray($errors, 'Google_string', __METHOD__);
3961
+	$this->errors = $errors;
3962 3962
   }
3963 3963
   public function getErrors() {
3964
-    return $this->errors;
3964
+	return $this->errors;
3965 3965
   }
3966 3966
   public function setId( $id) {
3967
-    $this->id = $id;
3967
+	$this->id = $id;
3968 3968
   }
3969 3969
   public function getId() {
3970
-    return $this->id;
3970
+	return $this->id;
3971 3971
   }
3972 3972
   public function setKind( $kind) {
3973
-    $this->kind = $kind;
3973
+	$this->kind = $kind;
3974 3974
   }
3975 3975
   public function getKind() {
3976
-    return $this->kind;
3976
+	return $this->kind;
3977 3977
   }
3978 3978
   public function setStatus( $status) {
3979
-    $this->status = $status;
3979
+	$this->status = $status;
3980 3980
   }
3981 3981
   public function getStatus() {
3982
-    return $this->status;
3982
+	return $this->status;
3983 3983
   }
3984 3984
 }
3985 3985
 
@@ -3994,47 +3994,47 @@  discard block
 block discarded – undo
3994 3994
   public $startIndex;
3995 3995
   public $totalResults;
3996 3996
   public function setItems(/* array(Google_Upload) */ $items) {
3997
-    $this->assertIsArray($items, 'Google_Upload', __METHOD__);
3998
-    $this->items = $items;
3997
+	$this->assertIsArray($items, 'Google_Upload', __METHOD__);
3998
+	$this->items = $items;
3999 3999
   }
4000 4000
   public function getItems() {
4001
-    return $this->items;
4001
+	return $this->items;
4002 4002
   }
4003 4003
   public function setItemsPerPage( $itemsPerPage) {
4004
-    $this->itemsPerPage = $itemsPerPage;
4004
+	$this->itemsPerPage = $itemsPerPage;
4005 4005
   }
4006 4006
   public function getItemsPerPage() {
4007
-    return $this->itemsPerPage;
4007
+	return $this->itemsPerPage;
4008 4008
   }
4009 4009
   public function setKind( $kind) {
4010
-    $this->kind = $kind;
4010
+	$this->kind = $kind;
4011 4011
   }
4012 4012
   public function getKind() {
4013
-    return $this->kind;
4013
+	return $this->kind;
4014 4014
   }
4015 4015
   public function setNextLink( $nextLink) {
4016
-    $this->nextLink = $nextLink;
4016
+	$this->nextLink = $nextLink;
4017 4017
   }
4018 4018
   public function getNextLink() {
4019
-    return $this->nextLink;
4019
+	return $this->nextLink;
4020 4020
   }
4021 4021
   public function setPreviousLink( $previousLink) {
4022
-    $this->previousLink = $previousLink;
4022
+	$this->previousLink = $previousLink;
4023 4023
   }
4024 4024
   public function getPreviousLink() {
4025
-    return $this->previousLink;
4025
+	return $this->previousLink;
4026 4026
   }
4027 4027
   public function setStartIndex( $startIndex) {
4028
-    $this->startIndex = $startIndex;
4028
+	$this->startIndex = $startIndex;
4029 4029
   }
4030 4030
   public function getStartIndex() {
4031
-    return $this->startIndex;
4031
+	return $this->startIndex;
4032 4032
   }
4033 4033
   public function setTotalResults( $totalResults) {
4034
-    $this->totalResults = $totalResults;
4034
+	$this->totalResults = $totalResults;
4035 4035
   }
4036 4036
   public function getTotalResults() {
4037
-    return $this->totalResults;
4037
+	return $this->totalResults;
4038 4038
   }
4039 4039
 }
4040 4040
 
@@ -4043,22 +4043,22 @@  discard block
 block discarded – undo
4043 4043
   public $id;
4044 4044
   public $kind;
4045 4045
   public function setEmail( $email) {
4046
-    $this->email = $email;
4046
+	$this->email = $email;
4047 4047
   }
4048 4048
   public function getEmail() {
4049
-    return $this->email;
4049
+	return $this->email;
4050 4050
   }
4051 4051
   public function setId( $id) {
4052
-    $this->id = $id;
4052
+	$this->id = $id;
4053 4053
   }
4054 4054
   public function getId() {
4055
-    return $this->id;
4055
+	return $this->id;
4056 4056
   }
4057 4057
   public function setKind( $kind) {
4058
-    $this->kind = $kind;
4058
+	$this->kind = $kind;
4059 4059
   }
4060 4060
   public function getKind() {
4061
-    return $this->kind;
4061
+	return $this->kind;
4062 4062
   }
4063 4063
 }
4064 4064
 
@@ -4070,40 +4070,40 @@  discard block
 block discarded – undo
4070 4070
   public $kind;
4071 4071
   public $name;
4072 4072
   public function setAccountId( $accountId) {
4073
-    $this->accountId = $accountId;
4073
+	$this->accountId = $accountId;
4074 4074
   }
4075 4075
   public function getAccountId() {
4076
-    return $this->accountId;
4076
+	return $this->accountId;
4077 4077
   }
4078 4078
   public function setHref( $href) {
4079
-    $this->href = $href;
4079
+	$this->href = $href;
4080 4080
   }
4081 4081
   public function getHref() {
4082
-    return $this->href;
4082
+	return $this->href;
4083 4083
   }
4084 4084
   public function setId( $id) {
4085
-    $this->id = $id;
4085
+	$this->id = $id;
4086 4086
   }
4087 4087
   public function getId() {
4088
-    return $this->id;
4088
+	return $this->id;
4089 4089
   }
4090 4090
   public function setInternalWebPropertyId( $internalWebPropertyId) {
4091
-    $this->internalWebPropertyId = $internalWebPropertyId;
4091
+	$this->internalWebPropertyId = $internalWebPropertyId;
4092 4092
   }
4093 4093
   public function getInternalWebPropertyId() {
4094
-    return $this->internalWebPropertyId;
4094
+	return $this->internalWebPropertyId;
4095 4095
   }
4096 4096
   public function setKind( $kind) {
4097
-    $this->kind = $kind;
4097
+	$this->kind = $kind;
4098 4098
   }
4099 4099
   public function getKind() {
4100
-    return $this->kind;
4100
+	return $this->kind;
4101 4101
   }
4102 4102
   public function setName( $name) {
4103
-    $this->name = $name;
4103
+	$this->name = $name;
4104 4104
   }
4105 4105
   public function getName() {
4106
-    return $this->name;
4106
+	return $this->name;
4107 4107
   }
4108 4108
 }
4109 4109
 
@@ -4119,53 +4119,53 @@  discard block
 block discarded – undo
4119 4119
   public $totalResults;
4120 4120
   public $username;
4121 4121
   public function setItems(/* array(Google_Webproperty) */ $items) {
4122
-    $this->assertIsArray($items, 'Google_Webproperty', __METHOD__);
4123
-    $this->items = $items;
4122
+	$this->assertIsArray($items, 'Google_Webproperty', __METHOD__);
4123
+	$this->items = $items;
4124 4124
   }
4125 4125
   public function getItems() {
4126
-    return $this->items;
4126
+	return $this->items;
4127 4127
   }
4128 4128
   public function setItemsPerPage( $itemsPerPage) {
4129
-    $this->itemsPerPage = $itemsPerPage;
4129
+	$this->itemsPerPage = $itemsPerPage;
4130 4130
   }
4131 4131
   public function getItemsPerPage() {
4132
-    return $this->itemsPerPage;
4132
+	return $this->itemsPerPage;
4133 4133
   }
4134 4134
   public function setKind( $kind) {
4135
-    $this->kind = $kind;
4135
+	$this->kind = $kind;
4136 4136
   }
4137 4137
   public function getKind() {
4138
-    return $this->kind;
4138
+	return $this->kind;
4139 4139
   }
4140 4140
   public function setNextLink( $nextLink) {
4141
-    $this->nextLink = $nextLink;
4141
+	$this->nextLink = $nextLink;
4142 4142
   }
4143 4143
   public function getNextLink() {
4144
-    return $this->nextLink;
4144
+	return $this->nextLink;
4145 4145
   }
4146 4146
   public function setPreviousLink( $previousLink) {
4147
-    $this->previousLink = $previousLink;
4147
+	$this->previousLink = $previousLink;
4148 4148
   }
4149 4149
   public function getPreviousLink() {
4150
-    return $this->previousLink;
4150
+	return $this->previousLink;
4151 4151
   }
4152 4152
   public function setStartIndex( $startIndex) {
4153
-    $this->startIndex = $startIndex;
4153
+	$this->startIndex = $startIndex;
4154 4154
   }
4155 4155
   public function getStartIndex() {
4156
-    return $this->startIndex;
4156
+	return $this->startIndex;
4157 4157
   }
4158 4158
   public function setTotalResults( $totalResults) {
4159
-    $this->totalResults = $totalResults;
4159
+	$this->totalResults = $totalResults;
4160 4160
   }
4161 4161
   public function getTotalResults() {
4162
-    return $this->totalResults;
4162
+	return $this->totalResults;
4163 4163
   }
4164 4164
   public function setUsername( $username) {
4165
-    $this->username = $username;
4165
+	$this->username = $username;
4166 4166
   }
4167 4167
   public function getUsername() {
4168
-    return $this->username;
4168
+	return $this->username;
4169 4169
   }
4170 4170
 }
4171 4171
 
@@ -4193,100 +4193,100 @@  discard block
 block discarded – undo
4193 4193
   public $updated;
4194 4194
   public $websiteUrl;
4195 4195
   public function setAccountId( $accountId) {
4196
-    $this->accountId = $accountId;
4196
+	$this->accountId = $accountId;
4197 4197
   }
4198 4198
   public function getAccountId() {
4199
-    return $this->accountId;
4199
+	return $this->accountId;
4200 4200
   }
4201 4201
   public function setChildLink(Google_WebpropertyChildLink $childLink) {
4202
-    $this->childLink = $childLink;
4202
+	$this->childLink = $childLink;
4203 4203
   }
4204 4204
   public function getChildLink() {
4205
-    return $this->childLink;
4205
+	return $this->childLink;
4206 4206
   }
4207 4207
   public function setCreated( $created) {
4208
-    $this->created = $created;
4208
+	$this->created = $created;
4209 4209
   }
4210 4210
   public function getCreated() {
4211
-    return $this->created;
4211
+	return $this->created;
4212 4212
   }
4213 4213
   public function setDefaultProfileId( $defaultProfileId) {
4214
-    $this->defaultProfileId = $defaultProfileId;
4214
+	$this->defaultProfileId = $defaultProfileId;
4215 4215
   }
4216 4216
   public function getDefaultProfileId() {
4217
-    return $this->defaultProfileId;
4217
+	return $this->defaultProfileId;
4218 4218
   }
4219 4219
   public function setId( $id) {
4220
-    $this->id = $id;
4220
+	$this->id = $id;
4221 4221
   }
4222 4222
   public function getId() {
4223
-    return $this->id;
4223
+	return $this->id;
4224 4224
   }
4225 4225
   public function setIndustryVertical( $industryVertical) {
4226
-    $this->industryVertical = $industryVertical;
4226
+	$this->industryVertical = $industryVertical;
4227 4227
   }
4228 4228
   public function getIndustryVertical() {
4229
-    return $this->industryVertical;
4229
+	return $this->industryVertical;
4230 4230
   }
4231 4231
   public function setInternalWebPropertyId( $internalWebPropertyId) {
4232
-    $this->internalWebPropertyId = $internalWebPropertyId;
4232
+	$this->internalWebPropertyId = $internalWebPropertyId;
4233 4233
   }
4234 4234
   public function getInternalWebPropertyId() {
4235
-    return $this->internalWebPropertyId;
4235
+	return $this->internalWebPropertyId;
4236 4236
   }
4237 4237
   public function setKind( $kind) {
4238
-    $this->kind = $kind;
4238
+	$this->kind = $kind;
4239 4239
   }
4240 4240
   public function getKind() {
4241
-    return $this->kind;
4241
+	return $this->kind;
4242 4242
   }
4243 4243
   public function setLevel( $level) {
4244
-    $this->level = $level;
4244
+	$this->level = $level;
4245 4245
   }
4246 4246
   public function getLevel() {
4247
-    return $this->level;
4247
+	return $this->level;
4248 4248
   }
4249 4249
   public function setName( $name) {
4250
-    $this->name = $name;
4250
+	$this->name = $name;
4251 4251
   }
4252 4252
   public function getName() {
4253
-    return $this->name;
4253
+	return $this->name;
4254 4254
   }
4255 4255
   public function setParentLink(Google_WebpropertyParentLink $parentLink) {
4256
-    $this->parentLink = $parentLink;
4256
+	$this->parentLink = $parentLink;
4257 4257
   }
4258 4258
   public function getParentLink() {
4259
-    return $this->parentLink;
4259
+	return $this->parentLink;
4260 4260
   }
4261 4261
   public function setPermissions(Google_WebpropertyPermissions $permissions) {
4262
-    $this->permissions = $permissions;
4262
+	$this->permissions = $permissions;
4263 4263
   }
4264 4264
   public function getPermissions() {
4265
-    return $this->permissions;
4265
+	return $this->permissions;
4266 4266
   }
4267 4267
   public function setProfileCount( $profileCount) {
4268
-    $this->profileCount = $profileCount;
4268
+	$this->profileCount = $profileCount;
4269 4269
   }
4270 4270
   public function getProfileCount() {
4271
-    return $this->profileCount;
4271
+	return $this->profileCount;
4272 4272
   }
4273 4273
   public function setSelfLink( $selfLink) {
4274
-    $this->selfLink = $selfLink;
4274
+	$this->selfLink = $selfLink;
4275 4275
   }
4276 4276
   public function getSelfLink() {
4277
-    return $this->selfLink;
4277
+	return $this->selfLink;
4278 4278
   }
4279 4279
   public function setUpdated( $updated) {
4280
-    $this->updated = $updated;
4280
+	$this->updated = $updated;
4281 4281
   }
4282 4282
   public function getUpdated() {
4283
-    return $this->updated;
4283
+	return $this->updated;
4284 4284
   }
4285 4285
   public function setWebsiteUrl( $websiteUrl) {
4286
-    $this->websiteUrl = $websiteUrl;
4286
+	$this->websiteUrl = $websiteUrl;
4287 4287
   }
4288 4288
   public function getWebsiteUrl() {
4289
-    return $this->websiteUrl;
4289
+	return $this->websiteUrl;
4290 4290
   }
4291 4291
 }
4292 4292
 
@@ -4294,16 +4294,16 @@  discard block
 block discarded – undo
4294 4294
   public $href;
4295 4295
   public $type;
4296 4296
   public function setHref( $href) {
4297
-    $this->href = $href;
4297
+	$this->href = $href;
4298 4298
   }
4299 4299
   public function getHref() {
4300
-    return $this->href;
4300
+	return $this->href;
4301 4301
   }
4302 4302
   public function setType( $type) {
4303
-    $this->type = $type;
4303
+	$this->type = $type;
4304 4304
   }
4305 4305
   public function getType() {
4306
-    return $this->type;
4306
+	return $this->type;
4307 4307
   }
4308 4308
 }
4309 4309
 
@@ -4311,26 +4311,26 @@  discard block
 block discarded – undo
4311 4311
   public $href;
4312 4312
   public $type;
4313 4313
   public function setHref( $href) {
4314
-    $this->href = $href;
4314
+	$this->href = $href;
4315 4315
   }
4316 4316
   public function getHref() {
4317
-    return $this->href;
4317
+	return $this->href;
4318 4318
   }
4319 4319
   public function setType( $type) {
4320
-    $this->type = $type;
4320
+	$this->type = $type;
4321 4321
   }
4322 4322
   public function getType() {
4323
-    return $this->type;
4323
+	return $this->type;
4324 4324
   }
4325 4325
 }
4326 4326
 
4327 4327
 class Google_WebpropertyPermissions extends Google_Model {
4328 4328
   public $effective;
4329 4329
   public function setEffective(/* array(Google_string) */ $effective) {
4330
-    $this->assertIsArray($effective, 'Google_string', __METHOD__);
4331
-    $this->effective = $effective;
4330
+	$this->assertIsArray($effective, 'Google_string', __METHOD__);
4331
+	$this->effective = $effective;
4332 4332
   }
4333 4333
   public function getEffective() {
4334
-    return $this->effective;
4334
+	return $this->effective;
4335 4335
   }
4336 4336
 }
Please login to merge, or discard this patch.
Spacing   +328 added lines, -328 removed lines patch added patch discarded remove patch
@@ -1266,25 +1266,25 @@  discard block
 block discarded – undo
1266 1266
   public function getChildLink() {
1267 1267
     return $this->childLink;
1268 1268
   }
1269
-  public function setCreated( $created) {
1269
+  public function setCreated($created) {
1270 1270
     $this->created = $created;
1271 1271
   }
1272 1272
   public function getCreated() {
1273 1273
     return $this->created;
1274 1274
   }
1275
-  public function setId( $id) {
1275
+  public function setId($id) {
1276 1276
     $this->id = $id;
1277 1277
   }
1278 1278
   public function getId() {
1279 1279
     return $this->id;
1280 1280
   }
1281
-  public function setKind( $kind) {
1281
+  public function setKind($kind) {
1282 1282
     $this->kind = $kind;
1283 1283
   }
1284 1284
   public function getKind() {
1285 1285
     return $this->kind;
1286 1286
   }
1287
-  public function setName( $name) {
1287
+  public function setName($name) {
1288 1288
     $this->name = $name;
1289 1289
   }
1290 1290
   public function getName() {
@@ -1296,13 +1296,13 @@  discard block
 block discarded – undo
1296 1296
   public function getPermissions() {
1297 1297
     return $this->permissions;
1298 1298
   }
1299
-  public function setSelfLink( $selfLink) {
1299
+  public function setSelfLink($selfLink) {
1300 1300
     $this->selfLink = $selfLink;
1301 1301
   }
1302 1302
   public function getSelfLink() {
1303 1303
     return $this->selfLink;
1304 1304
   }
1305
-  public function setUpdated( $updated) {
1305
+  public function setUpdated($updated) {
1306 1306
     $this->updated = $updated;
1307 1307
   }
1308 1308
   public function getUpdated() {
@@ -1313,13 +1313,13 @@  discard block
 block discarded – undo
1313 1313
 class Google_AccountChildLink extends Google_Model {
1314 1314
   public $href;
1315 1315
   public $type;
1316
-  public function setHref( $href) {
1316
+  public function setHref($href) {
1317 1317
     $this->href = $href;
1318 1318
   }
1319 1319
   public function getHref() {
1320 1320
     return $this->href;
1321 1321
   }
1322
-  public function setType( $type) {
1322
+  public function setType($type) {
1323 1323
     $this->type = $type;
1324 1324
   }
1325 1325
   public function getType() {
@@ -1343,25 +1343,25 @@  discard block
 block discarded – undo
1343 1343
   public $id;
1344 1344
   public $kind;
1345 1345
   public $name;
1346
-  public function setHref( $href) {
1346
+  public function setHref($href) {
1347 1347
     $this->href = $href;
1348 1348
   }
1349 1349
   public function getHref() {
1350 1350
     return $this->href;
1351 1351
   }
1352
-  public function setId( $id) {
1352
+  public function setId($id) {
1353 1353
     $this->id = $id;
1354 1354
   }
1355 1355
   public function getId() {
1356 1356
     return $this->id;
1357 1357
   }
1358
-  public function setKind( $kind) {
1358
+  public function setKind($kind) {
1359 1359
     $this->kind = $kind;
1360 1360
   }
1361 1361
   public function getKind() {
1362 1362
     return $this->kind;
1363 1363
   }
1364
-  public function setName( $name) {
1364
+  public function setName($name) {
1365 1365
     $this->name = $name;
1366 1366
   }
1367 1367
   public function getName() {
@@ -1387,43 +1387,43 @@  discard block
 block discarded – undo
1387 1387
   public function getItems() {
1388 1388
     return $this->items;
1389 1389
   }
1390
-  public function setItemsPerPage( $itemsPerPage) {
1390
+  public function setItemsPerPage($itemsPerPage) {
1391 1391
     $this->itemsPerPage = $itemsPerPage;
1392 1392
   }
1393 1393
   public function getItemsPerPage() {
1394 1394
     return $this->itemsPerPage;
1395 1395
   }
1396
-  public function setKind( $kind) {
1396
+  public function setKind($kind) {
1397 1397
     $this->kind = $kind;
1398 1398
   }
1399 1399
   public function getKind() {
1400 1400
     return $this->kind;
1401 1401
   }
1402
-  public function setNextLink( $nextLink) {
1402
+  public function setNextLink($nextLink) {
1403 1403
     $this->nextLink = $nextLink;
1404 1404
   }
1405 1405
   public function getNextLink() {
1406 1406
     return $this->nextLink;
1407 1407
   }
1408
-  public function setPreviousLink( $previousLink) {
1408
+  public function setPreviousLink($previousLink) {
1409 1409
     $this->previousLink = $previousLink;
1410 1410
   }
1411 1411
   public function getPreviousLink() {
1412 1412
     return $this->previousLink;
1413 1413
   }
1414
-  public function setStartIndex( $startIndex) {
1414
+  public function setStartIndex($startIndex) {
1415 1415
     $this->startIndex = $startIndex;
1416 1416
   }
1417 1417
   public function getStartIndex() {
1418 1418
     return $this->startIndex;
1419 1419
   }
1420
-  public function setTotalResults( $totalResults) {
1420
+  public function setTotalResults($totalResults) {
1421 1421
     $this->totalResults = $totalResults;
1422 1422
   }
1423 1423
   public function getTotalResults() {
1424 1424
     return $this->totalResults;
1425 1425
   }
1426
-  public function setUsername( $username) {
1426
+  public function setUsername($username) {
1427 1427
     $this->username = $username;
1428 1428
   }
1429 1429
   public function getUsername() {
@@ -1446,19 +1446,19 @@  discard block
 block discarded – undo
1446 1446
   public $attributes;
1447 1447
   public $id;
1448 1448
   public $kind;
1449
-  public function setAttributes( $attributes) {
1449
+  public function setAttributes($attributes) {
1450 1450
     $this->attributes = $attributes;
1451 1451
   }
1452 1452
   public function getAttributes() {
1453 1453
     return $this->attributes;
1454 1454
   }
1455
-  public function setId( $id) {
1455
+  public function setId($id) {
1456 1456
     $this->id = $id;
1457 1457
   }
1458 1458
   public function getId() {
1459 1459
     return $this->id;
1460 1460
   }
1461
-  public function setKind( $kind) {
1461
+  public function setKind($kind) {
1462 1462
     $this->kind = $kind;
1463 1463
   }
1464 1464
   public function getKind() {
@@ -1481,7 +1481,7 @@  discard block
 block discarded – undo
1481 1481
   public function getAttributeNames() {
1482 1482
     return $this->attributeNames;
1483 1483
   }
1484
-  public function setEtag( $etag) {
1484
+  public function setEtag($etag) {
1485 1485
     $this->etag = $etag;
1486 1486
   }
1487 1487
   public function getEtag() {
@@ -1494,13 +1494,13 @@  discard block
 block discarded – undo
1494 1494
   public function getItems() {
1495 1495
     return $this->items;
1496 1496
   }
1497
-  public function setKind( $kind) {
1497
+  public function setKind($kind) {
1498 1498
     $this->kind = $kind;
1499 1499
   }
1500 1500
   public function getKind() {
1501 1501
     return $this->kind;
1502 1502
   }
1503
-  public function setTotalResults( $totalResults) {
1503
+  public function setTotalResults($totalResults) {
1504 1504
     $this->totalResults = $totalResults;
1505 1505
   }
1506 1506
   public function getTotalResults() {
@@ -1526,7 +1526,7 @@  discard block
 block discarded – undo
1526 1526
   public $type;
1527 1527
   public $updated;
1528 1528
   public $webPropertyId;
1529
-  public function setAccountId( $accountId) {
1529
+  public function setAccountId($accountId) {
1530 1530
     $this->accountId = $accountId;
1531 1531
   }
1532 1532
   public function getAccountId() {
@@ -1538,31 +1538,31 @@  discard block
 block discarded – undo
1538 1538
   public function getChildLink() {
1539 1539
     return $this->childLink;
1540 1540
   }
1541
-  public function setCreated( $created) {
1541
+  public function setCreated($created) {
1542 1542
     $this->created = $created;
1543 1543
   }
1544 1544
   public function getCreated() {
1545 1545
     return $this->created;
1546 1546
   }
1547
-  public function setDescription( $description) {
1547
+  public function setDescription($description) {
1548 1548
     $this->description = $description;
1549 1549
   }
1550 1550
   public function getDescription() {
1551 1551
     return $this->description;
1552 1552
   }
1553
-  public function setId( $id) {
1553
+  public function setId($id) {
1554 1554
     $this->id = $id;
1555 1555
   }
1556 1556
   public function getId() {
1557 1557
     return $this->id;
1558 1558
   }
1559
-  public function setKind( $kind) {
1559
+  public function setKind($kind) {
1560 1560
     $this->kind = $kind;
1561 1561
   }
1562 1562
   public function getKind() {
1563 1563
     return $this->kind;
1564 1564
   }
1565
-  public function setName( $name) {
1565
+  public function setName($name) {
1566 1566
     $this->name = $name;
1567 1567
   }
1568 1568
   public function getName() {
@@ -1581,25 +1581,25 @@  discard block
 block discarded – undo
1581 1581
   public function getProfilesLinked() {
1582 1582
     return $this->profilesLinked;
1583 1583
   }
1584
-  public function setSelfLink( $selfLink) {
1584
+  public function setSelfLink($selfLink) {
1585 1585
     $this->selfLink = $selfLink;
1586 1586
   }
1587 1587
   public function getSelfLink() {
1588 1588
     return $this->selfLink;
1589 1589
   }
1590
-  public function setType( $type) {
1590
+  public function setType($type) {
1591 1591
     $this->type = $type;
1592 1592
   }
1593 1593
   public function getType() {
1594 1594
     return $this->type;
1595 1595
   }
1596
-  public function setUpdated( $updated) {
1596
+  public function setUpdated($updated) {
1597 1597
     $this->updated = $updated;
1598 1598
   }
1599 1599
   public function getUpdated() {
1600 1600
     return $this->updated;
1601 1601
   }
1602
-  public function setWebPropertyId( $webPropertyId) {
1602
+  public function setWebPropertyId($webPropertyId) {
1603 1603
     $this->webPropertyId = $webPropertyId;
1604 1604
   }
1605 1605
   public function getWebPropertyId() {
@@ -1610,13 +1610,13 @@  discard block
 block discarded – undo
1610 1610
 class Google_CustomDataSourceChildLink extends Google_Model {
1611 1611
   public $href;
1612 1612
   public $type;
1613
-  public function setHref( $href) {
1613
+  public function setHref($href) {
1614 1614
     $this->href = $href;
1615 1615
   }
1616 1616
   public function getHref() {
1617 1617
     return $this->href;
1618 1618
   }
1619
-  public function setType( $type) {
1619
+  public function setType($type) {
1620 1620
     $this->type = $type;
1621 1621
   }
1622 1622
   public function getType() {
@@ -1627,13 +1627,13 @@  discard block
 block discarded – undo
1627 1627
 class Google_CustomDataSourceParentLink extends Google_Model {
1628 1628
   public $href;
1629 1629
   public $type;
1630
-  public function setHref( $href) {
1630
+  public function setHref($href) {
1631 1631
     $this->href = $href;
1632 1632
   }
1633 1633
   public function getHref() {
1634 1634
     return $this->href;
1635 1635
   }
1636
-  public function setType( $type) {
1636
+  public function setType($type) {
1637 1637
     $this->type = $type;
1638 1638
   }
1639 1639
   public function getType() {
@@ -1659,43 +1659,43 @@  discard block
 block discarded – undo
1659 1659
   public function getItems() {
1660 1660
     return $this->items;
1661 1661
   }
1662
-  public function setItemsPerPage( $itemsPerPage) {
1662
+  public function setItemsPerPage($itemsPerPage) {
1663 1663
     $this->itemsPerPage = $itemsPerPage;
1664 1664
   }
1665 1665
   public function getItemsPerPage() {
1666 1666
     return $this->itemsPerPage;
1667 1667
   }
1668
-  public function setKind( $kind) {
1668
+  public function setKind($kind) {
1669 1669
     $this->kind = $kind;
1670 1670
   }
1671 1671
   public function getKind() {
1672 1672
     return $this->kind;
1673 1673
   }
1674
-  public function setNextLink( $nextLink) {
1674
+  public function setNextLink($nextLink) {
1675 1675
     $this->nextLink = $nextLink;
1676 1676
   }
1677 1677
   public function getNextLink() {
1678 1678
     return $this->nextLink;
1679 1679
   }
1680
-  public function setPreviousLink( $previousLink) {
1680
+  public function setPreviousLink($previousLink) {
1681 1681
     $this->previousLink = $previousLink;
1682 1682
   }
1683 1683
   public function getPreviousLink() {
1684 1684
     return $this->previousLink;
1685 1685
   }
1686
-  public function setStartIndex( $startIndex) {
1686
+  public function setStartIndex($startIndex) {
1687 1687
     $this->startIndex = $startIndex;
1688 1688
   }
1689 1689
   public function getStartIndex() {
1690 1690
     return $this->startIndex;
1691 1691
   }
1692
-  public function setTotalResults( $totalResults) {
1692
+  public function setTotalResults($totalResults) {
1693 1693
     $this->totalResults = $totalResults;
1694 1694
   }
1695 1695
   public function getTotalResults() {
1696 1696
     return $this->totalResults;
1697 1697
   }
1698
-  public function setUsername( $username) {
1698
+  public function setUsername($username) {
1699 1699
     $this->username = $username;
1700 1700
   }
1701 1701
   public function getUsername() {
@@ -1719,43 +1719,43 @@  discard block
 block discarded – undo
1719 1719
   public $recentChanges;
1720 1720
   public $selfLink;
1721 1721
   public $webPropertyId;
1722
-  public function setAccountId( $accountId) {
1722
+  public function setAccountId($accountId) {
1723 1723
     $this->accountId = $accountId;
1724 1724
   }
1725 1725
   public function getAccountId() {
1726 1726
     return $this->accountId;
1727 1727
   }
1728
-  public function setAppendCount( $appendCount) {
1728
+  public function setAppendCount($appendCount) {
1729 1729
     $this->appendCount = $appendCount;
1730 1730
   }
1731 1731
   public function getAppendCount() {
1732 1732
     return $this->appendCount;
1733 1733
   }
1734
-  public function setCreatedTime( $createdTime) {
1734
+  public function setCreatedTime($createdTime) {
1735 1735
     $this->createdTime = $createdTime;
1736 1736
   }
1737 1737
   public function getCreatedTime() {
1738 1738
     return $this->createdTime;
1739 1739
   }
1740
-  public function setCustomDataSourceId( $customDataSourceId) {
1740
+  public function setCustomDataSourceId($customDataSourceId) {
1741 1741
     $this->customDataSourceId = $customDataSourceId;
1742 1742
   }
1743 1743
   public function getCustomDataSourceId() {
1744 1744
     return $this->customDataSourceId;
1745 1745
   }
1746
-  public function setDate( $date) {
1746
+  public function setDate($date) {
1747 1747
     $this->date = $date;
1748 1748
   }
1749 1749
   public function getDate() {
1750 1750
     return $this->date;
1751 1751
   }
1752
-  public function setKind( $kind) {
1752
+  public function setKind($kind) {
1753 1753
     $this->kind = $kind;
1754 1754
   }
1755 1755
   public function getKind() {
1756 1756
     return $this->kind;
1757 1757
   }
1758
-  public function setModifiedTime( $modifiedTime) {
1758
+  public function setModifiedTime($modifiedTime) {
1759 1759
     $this->modifiedTime = $modifiedTime;
1760 1760
   }
1761 1761
   public function getModifiedTime() {
@@ -1774,13 +1774,13 @@  discard block
 block discarded – undo
1774 1774
   public function getRecentChanges() {
1775 1775
     return $this->recentChanges;
1776 1776
   }
1777
-  public function setSelfLink( $selfLink) {
1777
+  public function setSelfLink($selfLink) {
1778 1778
     $this->selfLink = $selfLink;
1779 1779
   }
1780 1780
   public function getSelfLink() {
1781 1781
     return $this->selfLink;
1782 1782
   }
1783
-  public function setWebPropertyId( $webPropertyId) {
1783
+  public function setWebPropertyId($webPropertyId) {
1784 1784
     $this->webPropertyId = $webPropertyId;
1785 1785
   }
1786 1786
   public function getWebPropertyId() {
@@ -1796,43 +1796,43 @@  discard block
 block discarded – undo
1796 1796
   public $kind;
1797 1797
   public $nextAppendLink;
1798 1798
   public $webPropertyId;
1799
-  public function setAccountId( $accountId) {
1799
+  public function setAccountId($accountId) {
1800 1800
     $this->accountId = $accountId;
1801 1801
   }
1802 1802
   public function getAccountId() {
1803 1803
     return $this->accountId;
1804 1804
   }
1805
-  public function setAppendNumber( $appendNumber) {
1805
+  public function setAppendNumber($appendNumber) {
1806 1806
     $this->appendNumber = $appendNumber;
1807 1807
   }
1808 1808
   public function getAppendNumber() {
1809 1809
     return $this->appendNumber;
1810 1810
   }
1811
-  public function setCustomDataSourceId( $customDataSourceId) {
1811
+  public function setCustomDataSourceId($customDataSourceId) {
1812 1812
     $this->customDataSourceId = $customDataSourceId;
1813 1813
   }
1814 1814
   public function getCustomDataSourceId() {
1815 1815
     return $this->customDataSourceId;
1816 1816
   }
1817
-  public function setDate( $date) {
1817
+  public function setDate($date) {
1818 1818
     $this->date = $date;
1819 1819
   }
1820 1820
   public function getDate() {
1821 1821
     return $this->date;
1822 1822
   }
1823
-  public function setKind( $kind) {
1823
+  public function setKind($kind) {
1824 1824
     $this->kind = $kind;
1825 1825
   }
1826 1826
   public function getKind() {
1827 1827
     return $this->kind;
1828 1828
   }
1829
-  public function setNextAppendLink( $nextAppendLink) {
1829
+  public function setNextAppendLink($nextAppendLink) {
1830 1830
     $this->nextAppendLink = $nextAppendLink;
1831 1831
   }
1832 1832
   public function getNextAppendLink() {
1833 1833
     return $this->nextAppendLink;
1834 1834
   }
1835
-  public function setWebPropertyId( $webPropertyId) {
1835
+  public function setWebPropertyId($webPropertyId) {
1836 1836
     $this->webPropertyId = $webPropertyId;
1837 1837
   }
1838 1838
   public function getWebPropertyId() {
@@ -1843,13 +1843,13 @@  discard block
 block discarded – undo
1843 1843
 class Google_DailyUploadParentLink extends Google_Model {
1844 1844
   public $href;
1845 1845
   public $type;
1846
-  public function setHref( $href) {
1846
+  public function setHref($href) {
1847 1847
     $this->href = $href;
1848 1848
   }
1849 1849
   public function getHref() {
1850 1850
     return $this->href;
1851 1851
   }
1852
-  public function setType( $type) {
1852
+  public function setType($type) {
1853 1853
     $this->type = $type;
1854 1854
   }
1855 1855
   public function getType() {
@@ -1860,13 +1860,13 @@  discard block
 block discarded – undo
1860 1860
 class Google_DailyUploadRecentChanges extends Google_Model {
1861 1861
   public $change;
1862 1862
   public $time;
1863
-  public function setChange( $change) {
1863
+  public function setChange($change) {
1864 1864
     $this->change = $change;
1865 1865
   }
1866 1866
   public function getChange() {
1867 1867
     return $this->change;
1868 1868
   }
1869
-  public function setTime( $time) {
1869
+  public function setTime($time) {
1870 1870
     $this->time = $time;
1871 1871
   }
1872 1872
   public function getTime() {
@@ -1892,43 +1892,43 @@  discard block
 block discarded – undo
1892 1892
   public function getItems() {
1893 1893
     return $this->items;
1894 1894
   }
1895
-  public function setItemsPerPage( $itemsPerPage) {
1895
+  public function setItemsPerPage($itemsPerPage) {
1896 1896
     $this->itemsPerPage = $itemsPerPage;
1897 1897
   }
1898 1898
   public function getItemsPerPage() {
1899 1899
     return $this->itemsPerPage;
1900 1900
   }
1901
-  public function setKind( $kind) {
1901
+  public function setKind($kind) {
1902 1902
     $this->kind = $kind;
1903 1903
   }
1904 1904
   public function getKind() {
1905 1905
     return $this->kind;
1906 1906
   }
1907
-  public function setNextLink( $nextLink) {
1907
+  public function setNextLink($nextLink) {
1908 1908
     $this->nextLink = $nextLink;
1909 1909
   }
1910 1910
   public function getNextLink() {
1911 1911
     return $this->nextLink;
1912 1912
   }
1913
-  public function setPreviousLink( $previousLink) {
1913
+  public function setPreviousLink($previousLink) {
1914 1914
     $this->previousLink = $previousLink;
1915 1915
   }
1916 1916
   public function getPreviousLink() {
1917 1917
     return $this->previousLink;
1918 1918
   }
1919
-  public function setStartIndex( $startIndex) {
1919
+  public function setStartIndex($startIndex) {
1920 1920
     $this->startIndex = $startIndex;
1921 1921
   }
1922 1922
   public function getStartIndex() {
1923 1923
     return $this->startIndex;
1924 1924
   }
1925
-  public function setTotalResults( $totalResults) {
1925
+  public function setTotalResults($totalResults) {
1926 1926
     $this->totalResults = $totalResults;
1927 1927
   }
1928 1928
   public function getTotalResults() {
1929 1929
     return $this->totalResults;
1930 1930
   }
1931
-  public function setUsername( $username) {
1931
+  public function setUsername($username) {
1932 1932
     $this->username = $username;
1933 1933
   }
1934 1934
   public function getUsername() {
@@ -1955,13 +1955,13 @@  discard block
 block discarded – undo
1955 1955
   public function getEntity() {
1956 1956
     return $this->entity;
1957 1957
   }
1958
-  public function setId( $id) {
1958
+  public function setId($id) {
1959 1959
     $this->id = $id;
1960 1960
   }
1961 1961
   public function getId() {
1962 1962
     return $this->id;
1963 1963
   }
1964
-  public function setKind( $kind) {
1964
+  public function setKind($kind) {
1965 1965
     $this->kind = $kind;
1966 1966
   }
1967 1967
   public function getKind() {
@@ -1973,7 +1973,7 @@  discard block
 block discarded – undo
1973 1973
   public function getPermissions() {
1974 1974
     return $this->permissions;
1975 1975
   }
1976
-  public function setSelfLink( $selfLink) {
1976
+  public function setSelfLink($selfLink) {
1977 1977
     $this->selfLink = $selfLink;
1978 1978
   }
1979 1979
   public function getSelfLink() {
@@ -2053,37 +2053,37 @@  discard block
 block discarded – undo
2053 2053
   public function getItems() {
2054 2054
     return $this->items;
2055 2055
   }
2056
-  public function setItemsPerPage( $itemsPerPage) {
2056
+  public function setItemsPerPage($itemsPerPage) {
2057 2057
     $this->itemsPerPage = $itemsPerPage;
2058 2058
   }
2059 2059
   public function getItemsPerPage() {
2060 2060
     return $this->itemsPerPage;
2061 2061
   }
2062
-  public function setKind( $kind) {
2062
+  public function setKind($kind) {
2063 2063
     $this->kind = $kind;
2064 2064
   }
2065 2065
   public function getKind() {
2066 2066
     return $this->kind;
2067 2067
   }
2068
-  public function setNextLink( $nextLink) {
2068
+  public function setNextLink($nextLink) {
2069 2069
     $this->nextLink = $nextLink;
2070 2070
   }
2071 2071
   public function getNextLink() {
2072 2072
     return $this->nextLink;
2073 2073
   }
2074
-  public function setPreviousLink( $previousLink) {
2074
+  public function setPreviousLink($previousLink) {
2075 2075
     $this->previousLink = $previousLink;
2076 2076
   }
2077 2077
   public function getPreviousLink() {
2078 2078
     return $this->previousLink;
2079 2079
   }
2080
-  public function setStartIndex( $startIndex) {
2080
+  public function setStartIndex($startIndex) {
2081 2081
     $this->startIndex = $startIndex;
2082 2082
   }
2083 2083
   public function getStartIndex() {
2084 2084
     return $this->startIndex;
2085 2085
   }
2086
-  public function setTotalResults( $totalResults) {
2086
+  public function setTotalResults($totalResults) {
2087 2087
     $this->totalResults = $totalResults;
2088 2088
   }
2089 2089
   public function getTotalResults() {
@@ -2123,73 +2123,73 @@  discard block
 block discarded – undo
2123 2123
   public $webPropertyId;
2124 2124
   public $winnerConfidenceLevel;
2125 2125
   public $winnerFound;
2126
-  public function setAccountId( $accountId) {
2126
+  public function setAccountId($accountId) {
2127 2127
     $this->accountId = $accountId;
2128 2128
   }
2129 2129
   public function getAccountId() {
2130 2130
     return $this->accountId;
2131 2131
   }
2132
-  public function setCreated( $created) {
2132
+  public function setCreated($created) {
2133 2133
     $this->created = $created;
2134 2134
   }
2135 2135
   public function getCreated() {
2136 2136
     return $this->created;
2137 2137
   }
2138
-  public function setDescription( $description) {
2138
+  public function setDescription($description) {
2139 2139
     $this->description = $description;
2140 2140
   }
2141 2141
   public function getDescription() {
2142 2142
     return $this->description;
2143 2143
   }
2144
-  public function setEditableInGaUi( $editableInGaUi) {
2144
+  public function setEditableInGaUi($editableInGaUi) {
2145 2145
     $this->editableInGaUi = $editableInGaUi;
2146 2146
   }
2147 2147
   public function getEditableInGaUi() {
2148 2148
     return $this->editableInGaUi;
2149 2149
   }
2150
-  public function setEndTime( $endTime) {
2150
+  public function setEndTime($endTime) {
2151 2151
     $this->endTime = $endTime;
2152 2152
   }
2153 2153
   public function getEndTime() {
2154 2154
     return $this->endTime;
2155 2155
   }
2156
-  public function setId( $id) {
2156
+  public function setId($id) {
2157 2157
     $this->id = $id;
2158 2158
   }
2159 2159
   public function getId() {
2160 2160
     return $this->id;
2161 2161
   }
2162
-  public function setInternalWebPropertyId( $internalWebPropertyId) {
2162
+  public function setInternalWebPropertyId($internalWebPropertyId) {
2163 2163
     $this->internalWebPropertyId = $internalWebPropertyId;
2164 2164
   }
2165 2165
   public function getInternalWebPropertyId() {
2166 2166
     return $this->internalWebPropertyId;
2167 2167
   }
2168
-  public function setKind( $kind) {
2168
+  public function setKind($kind) {
2169 2169
     $this->kind = $kind;
2170 2170
   }
2171 2171
   public function getKind() {
2172 2172
     return $this->kind;
2173 2173
   }
2174
-  public function setMinimumExperimentLengthInDays( $minimumExperimentLengthInDays) {
2174
+  public function setMinimumExperimentLengthInDays($minimumExperimentLengthInDays) {
2175 2175
     $this->minimumExperimentLengthInDays = $minimumExperimentLengthInDays;
2176 2176
   }
2177 2177
   public function getMinimumExperimentLengthInDays() {
2178 2178
     return $this->minimumExperimentLengthInDays;
2179 2179
   }
2180
-  public function setName( $name) {
2180
+  public function setName($name) {
2181 2181
     $this->name = $name;
2182 2182
   }
2183 2183
   public function getName() {
2184 2184
     return $this->name;
2185 2185
   }
2186
-  public function setObjectiveMetric( $objectiveMetric) {
2186
+  public function setObjectiveMetric($objectiveMetric) {
2187 2187
     $this->objectiveMetric = $objectiveMetric;
2188 2188
   }
2189 2189
   public function getObjectiveMetric() {
2190 2190
     return $this->objectiveMetric;
2191 2191
   }
2192
-  public function setOptimizationType( $optimizationType) {
2192
+  public function setOptimizationType($optimizationType) {
2193 2193
     $this->optimizationType = $optimizationType;
2194 2194
   }
2195 2195
   public function getOptimizationType() {
@@ -2201,61 +2201,61 @@  discard block
 block discarded – undo
2201 2201
   public function getParentLink() {
2202 2202
     return $this->parentLink;
2203 2203
   }
2204
-  public function setProfileId( $profileId) {
2204
+  public function setProfileId($profileId) {
2205 2205
     $this->profileId = $profileId;
2206 2206
   }
2207 2207
   public function getProfileId() {
2208 2208
     return $this->profileId;
2209 2209
   }
2210
-  public function setReasonExperimentEnded( $reasonExperimentEnded) {
2210
+  public function setReasonExperimentEnded($reasonExperimentEnded) {
2211 2211
     $this->reasonExperimentEnded = $reasonExperimentEnded;
2212 2212
   }
2213 2213
   public function getReasonExperimentEnded() {
2214 2214
     return $this->reasonExperimentEnded;
2215 2215
   }
2216
-  public function setRewriteVariationUrlsAsOriginal( $rewriteVariationUrlsAsOriginal) {
2216
+  public function setRewriteVariationUrlsAsOriginal($rewriteVariationUrlsAsOriginal) {
2217 2217
     $this->rewriteVariationUrlsAsOriginal = $rewriteVariationUrlsAsOriginal;
2218 2218
   }
2219 2219
   public function getRewriteVariationUrlsAsOriginal() {
2220 2220
     return $this->rewriteVariationUrlsAsOriginal;
2221 2221
   }
2222
-  public function setSelfLink( $selfLink) {
2222
+  public function setSelfLink($selfLink) {
2223 2223
     $this->selfLink = $selfLink;
2224 2224
   }
2225 2225
   public function getSelfLink() {
2226 2226
     return $this->selfLink;
2227 2227
   }
2228
-  public function setServingFramework( $servingFramework) {
2228
+  public function setServingFramework($servingFramework) {
2229 2229
     $this->servingFramework = $servingFramework;
2230 2230
   }
2231 2231
   public function getServingFramework() {
2232 2232
     return $this->servingFramework;
2233 2233
   }
2234
-  public function setSnippet( $snippet) {
2234
+  public function setSnippet($snippet) {
2235 2235
     $this->snippet = $snippet;
2236 2236
   }
2237 2237
   public function getSnippet() {
2238 2238
     return $this->snippet;
2239 2239
   }
2240
-  public function setStartTime( $startTime) {
2240
+  public function setStartTime($startTime) {
2241 2241
     $this->startTime = $startTime;
2242 2242
   }
2243 2243
   public function getStartTime() {
2244 2244
     return $this->startTime;
2245 2245
   }
2246
-  public function setStatus( $status) {
2246
+  public function setStatus($status) {
2247 2247
     $this->status = $status;
2248 2248
   }
2249 2249
   public function getStatus() {
2250 2250
     return $this->status;
2251 2251
   }
2252
-  public function setTrafficCoverage( $trafficCoverage) {
2252
+  public function setTrafficCoverage($trafficCoverage) {
2253 2253
     $this->trafficCoverage = $trafficCoverage;
2254 2254
   }
2255 2255
   public function getTrafficCoverage() {
2256 2256
     return $this->trafficCoverage;
2257 2257
   }
2258
-  public function setUpdated( $updated) {
2258
+  public function setUpdated($updated) {
2259 2259
     $this->updated = $updated;
2260 2260
   }
2261 2261
   public function getUpdated() {
@@ -2268,19 +2268,19 @@  discard block
 block discarded – undo
2268 2268
   public function getVariations() {
2269 2269
     return $this->variations;
2270 2270
   }
2271
-  public function setWebPropertyId( $webPropertyId) {
2271
+  public function setWebPropertyId($webPropertyId) {
2272 2272
     $this->webPropertyId = $webPropertyId;
2273 2273
   }
2274 2274
   public function getWebPropertyId() {
2275 2275
     return $this->webPropertyId;
2276 2276
   }
2277
-  public function setWinnerConfidenceLevel( $winnerConfidenceLevel) {
2277
+  public function setWinnerConfidenceLevel($winnerConfidenceLevel) {
2278 2278
     $this->winnerConfidenceLevel = $winnerConfidenceLevel;
2279 2279
   }
2280 2280
   public function getWinnerConfidenceLevel() {
2281 2281
     return $this->winnerConfidenceLevel;
2282 2282
   }
2283
-  public function setWinnerFound( $winnerFound) {
2283
+  public function setWinnerFound($winnerFound) {
2284 2284
     $this->winnerFound = $winnerFound;
2285 2285
   }
2286 2286
   public function getWinnerFound() {
@@ -2291,13 +2291,13 @@  discard block
 block discarded – undo
2291 2291
 class Google_ExperimentParentLink extends Google_Model {
2292 2292
   public $href;
2293 2293
   public $type;
2294
-  public function setHref( $href) {
2294
+  public function setHref($href) {
2295 2295
     $this->href = $href;
2296 2296
   }
2297 2297
   public function getHref() {
2298 2298
     return $this->href;
2299 2299
   }
2300
-  public function setType( $type) {
2300
+  public function setType($type) {
2301 2301
     $this->type = $type;
2302 2302
   }
2303 2303
   public function getType() {
@@ -2311,31 +2311,31 @@  discard block
 block discarded – undo
2311 2311
   public $url;
2312 2312
   public $weight;
2313 2313
   public $won;
2314
-  public function setName( $name) {
2314
+  public function setName($name) {
2315 2315
     $this->name = $name;
2316 2316
   }
2317 2317
   public function getName() {
2318 2318
     return $this->name;
2319 2319
   }
2320
-  public function setStatus( $status) {
2320
+  public function setStatus($status) {
2321 2321
     $this->status = $status;
2322 2322
   }
2323 2323
   public function getStatus() {
2324 2324
     return $this->status;
2325 2325
   }
2326
-  public function setUrl( $url) {
2326
+  public function setUrl($url) {
2327 2327
     $this->url = $url;
2328 2328
   }
2329 2329
   public function getUrl() {
2330 2330
     return $this->url;
2331 2331
   }
2332
-  public function setWeight( $weight) {
2332
+  public function setWeight($weight) {
2333 2333
     $this->weight = $weight;
2334 2334
   }
2335 2335
   public function getWeight() {
2336 2336
     return $this->weight;
2337 2337
   }
2338
-  public function setWon( $won) {
2338
+  public function setWon($won) {
2339 2339
     $this->won = $won;
2340 2340
   }
2341 2341
   public function getWon() {
@@ -2361,43 +2361,43 @@  discard block
 block discarded – undo
2361 2361
   public function getItems() {
2362 2362
     return $this->items;
2363 2363
   }
2364
-  public function setItemsPerPage( $itemsPerPage) {
2364
+  public function setItemsPerPage($itemsPerPage) {
2365 2365
     $this->itemsPerPage = $itemsPerPage;
2366 2366
   }
2367 2367
   public function getItemsPerPage() {
2368 2368
     return $this->itemsPerPage;
2369 2369
   }
2370
-  public function setKind( $kind) {
2370
+  public function setKind($kind) {
2371 2371
     $this->kind = $kind;
2372 2372
   }
2373 2373
   public function getKind() {
2374 2374
     return $this->kind;
2375 2375
   }
2376
-  public function setNextLink( $nextLink) {
2376
+  public function setNextLink($nextLink) {
2377 2377
     $this->nextLink = $nextLink;
2378 2378
   }
2379 2379
   public function getNextLink() {
2380 2380
     return $this->nextLink;
2381 2381
   }
2382
-  public function setPreviousLink( $previousLink) {
2382
+  public function setPreviousLink($previousLink) {
2383 2383
     $this->previousLink = $previousLink;
2384 2384
   }
2385 2385
   public function getPreviousLink() {
2386 2386
     return $this->previousLink;
2387 2387
   }
2388
-  public function setStartIndex( $startIndex) {
2388
+  public function setStartIndex($startIndex) {
2389 2389
     $this->startIndex = $startIndex;
2390 2390
   }
2391 2391
   public function getStartIndex() {
2392 2392
     return $this->startIndex;
2393 2393
   }
2394
-  public function setTotalResults( $totalResults) {
2394
+  public function setTotalResults($totalResults) {
2395 2395
     $this->totalResults = $totalResults;
2396 2396
   }
2397 2397
   public function getTotalResults() {
2398 2398
     return $this->totalResults;
2399 2399
   }
2400
-  public function setUsername( $username) {
2400
+  public function setUsername($username) {
2401 2401
     $this->username = $username;
2402 2402
   }
2403 2403
   public function getUsername() {
@@ -2432,37 +2432,37 @@  discard block
 block discarded – undo
2432 2432
   public function getColumnHeaders() {
2433 2433
     return $this->columnHeaders;
2434 2434
   }
2435
-  public function setContainsSampledData( $containsSampledData) {
2435
+  public function setContainsSampledData($containsSampledData) {
2436 2436
     $this->containsSampledData = $containsSampledData;
2437 2437
   }
2438 2438
   public function getContainsSampledData() {
2439 2439
     return $this->containsSampledData;
2440 2440
   }
2441
-  public function setId( $id) {
2441
+  public function setId($id) {
2442 2442
     $this->id = $id;
2443 2443
   }
2444 2444
   public function getId() {
2445 2445
     return $this->id;
2446 2446
   }
2447
-  public function setItemsPerPage( $itemsPerPage) {
2447
+  public function setItemsPerPage($itemsPerPage) {
2448 2448
     $this->itemsPerPage = $itemsPerPage;
2449 2449
   }
2450 2450
   public function getItemsPerPage() {
2451 2451
     return $this->itemsPerPage;
2452 2452
   }
2453
-  public function setKind( $kind) {
2453
+  public function setKind($kind) {
2454 2454
     $this->kind = $kind;
2455 2455
   }
2456 2456
   public function getKind() {
2457 2457
     return $this->kind;
2458 2458
   }
2459
-  public function setNextLink( $nextLink) {
2459
+  public function setNextLink($nextLink) {
2460 2460
     $this->nextLink = $nextLink;
2461 2461
   }
2462 2462
   public function getNextLink() {
2463 2463
     return $this->nextLink;
2464 2464
   }
2465
-  public function setPreviousLink( $previousLink) {
2465
+  public function setPreviousLink($previousLink) {
2466 2466
     $this->previousLink = $previousLink;
2467 2467
   }
2468 2468
   public function getPreviousLink() {
@@ -2487,19 +2487,19 @@  discard block
 block discarded – undo
2487 2487
   public function getRows() {
2488 2488
     return $this->rows;
2489 2489
   }
2490
-  public function setSelfLink( $selfLink) {
2490
+  public function setSelfLink($selfLink) {
2491 2491
     $this->selfLink = $selfLink;
2492 2492
   }
2493 2493
   public function getSelfLink() {
2494 2494
     return $this->selfLink;
2495 2495
   }
2496
-  public function setTotalResults( $totalResults) {
2496
+  public function setTotalResults($totalResults) {
2497 2497
     $this->totalResults = $totalResults;
2498 2498
   }
2499 2499
   public function getTotalResults() {
2500 2500
     return $this->totalResults;
2501 2501
   }
2502
-  public function setTotalsForAllResults( $totalsForAllResults) {
2502
+  public function setTotalsForAllResults($totalsForAllResults) {
2503 2503
     $this->totalsForAllResults = $totalsForAllResults;
2504 2504
   }
2505 2505
   public function getTotalsForAllResults() {
@@ -2511,19 +2511,19 @@  discard block
 block discarded – undo
2511 2511
   public $columnType;
2512 2512
   public $dataType;
2513 2513
   public $name;
2514
-  public function setColumnType( $columnType) {
2514
+  public function setColumnType($columnType) {
2515 2515
     $this->columnType = $columnType;
2516 2516
   }
2517 2517
   public function getColumnType() {
2518 2518
     return $this->columnType;
2519 2519
   }
2520
-  public function setDataType( $dataType) {
2520
+  public function setDataType($dataType) {
2521 2521
     $this->dataType = $dataType;
2522 2522
   }
2523 2523
   public function getDataType() {
2524 2524
     return $this->dataType;
2525 2525
   }
2526
-  public function setName( $name) {
2526
+  public function setName($name) {
2527 2527
     $this->name = $name;
2528 2528
   }
2529 2529
   public function getName() {
@@ -2538,37 +2538,37 @@  discard block
 block discarded – undo
2538 2538
   public $profileName;
2539 2539
   public $tableId;
2540 2540
   public $webPropertyId;
2541
-  public function setAccountId( $accountId) {
2541
+  public function setAccountId($accountId) {
2542 2542
     $this->accountId = $accountId;
2543 2543
   }
2544 2544
   public function getAccountId() {
2545 2545
     return $this->accountId;
2546 2546
   }
2547
-  public function setInternalWebPropertyId( $internalWebPropertyId) {
2547
+  public function setInternalWebPropertyId($internalWebPropertyId) {
2548 2548
     $this->internalWebPropertyId = $internalWebPropertyId;
2549 2549
   }
2550 2550
   public function getInternalWebPropertyId() {
2551 2551
     return $this->internalWebPropertyId;
2552 2552
   }
2553
-  public function setProfileId( $profileId) {
2553
+  public function setProfileId($profileId) {
2554 2554
     $this->profileId = $profileId;
2555 2555
   }
2556 2556
   public function getProfileId() {
2557 2557
     return $this->profileId;
2558 2558
   }
2559
-  public function setProfileName( $profileName) {
2559
+  public function setProfileName($profileName) {
2560 2560
     $this->profileName = $profileName;
2561 2561
   }
2562 2562
   public function getProfileName() {
2563 2563
     return $this->profileName;
2564 2564
   }
2565
-  public function setTableId( $tableId) {
2565
+  public function setTableId($tableId) {
2566 2566
     $this->tableId = $tableId;
2567 2567
   }
2568 2568
   public function getTableId() {
2569 2569
     return $this->tableId;
2570 2570
   }
2571
-  public function setWebPropertyId( $webPropertyId) {
2571
+  public function setWebPropertyId($webPropertyId) {
2572 2572
     $this->webPropertyId = $webPropertyId;
2573 2573
   }
2574 2574
   public function getWebPropertyId() {
@@ -2587,31 +2587,31 @@  discard block
 block discarded – undo
2587 2587
   public $sort;
2588 2588
   public $start_date;
2589 2589
   public $start_index;
2590
-  public function setDimensions( $dimensions) {
2590
+  public function setDimensions($dimensions) {
2591 2591
     $this->dimensions = $dimensions;
2592 2592
   }
2593 2593
   public function getDimensions() {
2594 2594
     return $this->dimensions;
2595 2595
   }
2596
-  public function setEnd_date( $end_date) {
2596
+  public function setEnd_date($end_date) {
2597 2597
     $this->end_date = $end_date;
2598 2598
   }
2599 2599
   public function getEnd_date() {
2600 2600
     return $this->end_date;
2601 2601
   }
2602
-  public function setFilters( $filters) {
2602
+  public function setFilters($filters) {
2603 2603
     $this->filters = $filters;
2604 2604
   }
2605 2605
   public function getFilters() {
2606 2606
     return $this->filters;
2607 2607
   }
2608
-  public function setIds( $ids) {
2608
+  public function setIds($ids) {
2609 2609
     $this->ids = $ids;
2610 2610
   }
2611 2611
   public function getIds() {
2612 2612
     return $this->ids;
2613 2613
   }
2614
-  public function setMax_results( $max_results) {
2614
+  public function setMax_results($max_results) {
2615 2615
     $this->max_results = $max_results;
2616 2616
   }
2617 2617
   public function getMax_results() {
@@ -2624,7 +2624,7 @@  discard block
 block discarded – undo
2624 2624
   public function getMetrics() {
2625 2625
     return $this->metrics;
2626 2626
   }
2627
-  public function setSegment( $segment) {
2627
+  public function setSegment($segment) {
2628 2628
     $this->segment = $segment;
2629 2629
   }
2630 2630
   public function getSegment() {
@@ -2637,13 +2637,13 @@  discard block
 block discarded – undo
2637 2637
   public function getSort() {
2638 2638
     return $this->sort;
2639 2639
   }
2640
-  public function setStart_date( $start_date) {
2640
+  public function setStart_date($start_date) {
2641 2641
     $this->start_date = $start_date;
2642 2642
   }
2643 2643
   public function getStart_date() {
2644 2644
     return $this->start_date;
2645 2645
   }
2646
-  public function setStart_index( $start_index) {
2646
+  public function setStart_index($start_index) {
2647 2647
     $this->start_index = $start_index;
2648 2648
   }
2649 2649
   public function getStart_index() {
@@ -2680,19 +2680,19 @@  discard block
 block discarded – undo
2680 2680
   protected $__visitTimeOnSiteDetailsDataType = '';
2681 2681
   public $visitTimeOnSiteDetails;
2682 2682
   public $webPropertyId;
2683
-  public function setAccountId( $accountId) {
2683
+  public function setAccountId($accountId) {
2684 2684
     $this->accountId = $accountId;
2685 2685
   }
2686 2686
   public function getAccountId() {
2687 2687
     return $this->accountId;
2688 2688
   }
2689
-  public function setActive( $active) {
2689
+  public function setActive($active) {
2690 2690
     $this->active = $active;
2691 2691
   }
2692 2692
   public function getActive() {
2693 2693
     return $this->active;
2694 2694
   }
2695
-  public function setCreated( $created) {
2695
+  public function setCreated($created) {
2696 2696
     $this->created = $created;
2697 2697
   }
2698 2698
   public function getCreated() {
@@ -2704,25 +2704,25 @@  discard block
 block discarded – undo
2704 2704
   public function getEventDetails() {
2705 2705
     return $this->eventDetails;
2706 2706
   }
2707
-  public function setId( $id) {
2707
+  public function setId($id) {
2708 2708
     $this->id = $id;
2709 2709
   }
2710 2710
   public function getId() {
2711 2711
     return $this->id;
2712 2712
   }
2713
-  public function setInternalWebPropertyId( $internalWebPropertyId) {
2713
+  public function setInternalWebPropertyId($internalWebPropertyId) {
2714 2714
     $this->internalWebPropertyId = $internalWebPropertyId;
2715 2715
   }
2716 2716
   public function getInternalWebPropertyId() {
2717 2717
     return $this->internalWebPropertyId;
2718 2718
   }
2719
-  public function setKind( $kind) {
2719
+  public function setKind($kind) {
2720 2720
     $this->kind = $kind;
2721 2721
   }
2722 2722
   public function getKind() {
2723 2723
     return $this->kind;
2724 2724
   }
2725
-  public function setName( $name) {
2725
+  public function setName($name) {
2726 2726
     $this->name = $name;
2727 2727
   }
2728 2728
   public function getName() {
@@ -2734,25 +2734,25 @@  discard block
 block discarded – undo
2734 2734
   public function getParentLink() {
2735 2735
     return $this->parentLink;
2736 2736
   }
2737
-  public function setProfileId( $profileId) {
2737
+  public function setProfileId($profileId) {
2738 2738
     $this->profileId = $profileId;
2739 2739
   }
2740 2740
   public function getProfileId() {
2741 2741
     return $this->profileId;
2742 2742
   }
2743
-  public function setSelfLink( $selfLink) {
2743
+  public function setSelfLink($selfLink) {
2744 2744
     $this->selfLink = $selfLink;
2745 2745
   }
2746 2746
   public function getSelfLink() {
2747 2747
     return $this->selfLink;
2748 2748
   }
2749
-  public function setType( $type) {
2749
+  public function setType($type) {
2750 2750
     $this->type = $type;
2751 2751
   }
2752 2752
   public function getType() {
2753 2753
     return $this->type;
2754 2754
   }
2755
-  public function setUpdated( $updated) {
2755
+  public function setUpdated($updated) {
2756 2756
     $this->updated = $updated;
2757 2757
   }
2758 2758
   public function getUpdated() {
@@ -2764,7 +2764,7 @@  discard block
 block discarded – undo
2764 2764
   public function getUrlDestinationDetails() {
2765 2765
     return $this->urlDestinationDetails;
2766 2766
   }
2767
-  public function setValue( $value) {
2767
+  public function setValue($value) {
2768 2768
     $this->value = $value;
2769 2769
   }
2770 2770
   public function getValue() {
@@ -2782,7 +2782,7 @@  discard block
 block discarded – undo
2782 2782
   public function getVisitTimeOnSiteDetails() {
2783 2783
     return $this->visitTimeOnSiteDetails;
2784 2784
   }
2785
-  public function setWebPropertyId( $webPropertyId) {
2785
+  public function setWebPropertyId($webPropertyId) {
2786 2786
     $this->webPropertyId = $webPropertyId;
2787 2787
   }
2788 2788
   public function getWebPropertyId() {
@@ -2802,7 +2802,7 @@  discard block
 block discarded – undo
2802 2802
   public function getEventConditions() {
2803 2803
     return $this->eventConditions;
2804 2804
   }
2805
-  public function setUseEventValue( $useEventValue) {
2805
+  public function setUseEventValue($useEventValue) {
2806 2806
     $this->useEventValue = $useEventValue;
2807 2807
   }
2808 2808
   public function getUseEventValue() {
@@ -2816,31 +2816,31 @@  discard block
 block discarded – undo
2816 2816
   public $expression;
2817 2817
   public $matchType;
2818 2818
   public $type;
2819
-  public function setComparisonType( $comparisonType) {
2819
+  public function setComparisonType($comparisonType) {
2820 2820
     $this->comparisonType = $comparisonType;
2821 2821
   }
2822 2822
   public function getComparisonType() {
2823 2823
     return $this->comparisonType;
2824 2824
   }
2825
-  public function setComparisonValue( $comparisonValue) {
2825
+  public function setComparisonValue($comparisonValue) {
2826 2826
     $this->comparisonValue = $comparisonValue;
2827 2827
   }
2828 2828
   public function getComparisonValue() {
2829 2829
     return $this->comparisonValue;
2830 2830
   }
2831
-  public function setExpression( $expression) {
2831
+  public function setExpression($expression) {
2832 2832
     $this->expression = $expression;
2833 2833
   }
2834 2834
   public function getExpression() {
2835 2835
     return $this->expression;
2836 2836
   }
2837
-  public function setMatchType( $matchType) {
2837
+  public function setMatchType($matchType) {
2838 2838
     $this->matchType = $matchType;
2839 2839
   }
2840 2840
   public function getMatchType() {
2841 2841
     return $this->matchType;
2842 2842
   }
2843
-  public function setType( $type) {
2843
+  public function setType($type) {
2844 2844
     $this->type = $type;
2845 2845
   }
2846 2846
   public function getType() {
@@ -2851,13 +2851,13 @@  discard block
 block discarded – undo
2851 2851
 class Google_GoalParentLink extends Google_Model {
2852 2852
   public $href;
2853 2853
   public $type;
2854
-  public function setHref( $href) {
2854
+  public function setHref($href) {
2855 2855
     $this->href = $href;
2856 2856
   }
2857 2857
   public function getHref() {
2858 2858
     return $this->href;
2859 2859
   }
2860
-  public function setType( $type) {
2860
+  public function setType($type) {
2861 2861
     $this->type = $type;
2862 2862
   }
2863 2863
   public function getType() {
@@ -2873,19 +2873,19 @@  discard block
 block discarded – undo
2873 2873
   protected $__stepsDataType = 'array';
2874 2874
   public $steps;
2875 2875
   public $url;
2876
-  public function setCaseSensitive( $caseSensitive) {
2876
+  public function setCaseSensitive($caseSensitive) {
2877 2877
     $this->caseSensitive = $caseSensitive;
2878 2878
   }
2879 2879
   public function getCaseSensitive() {
2880 2880
     return $this->caseSensitive;
2881 2881
   }
2882
-  public function setFirstStepRequired( $firstStepRequired) {
2882
+  public function setFirstStepRequired($firstStepRequired) {
2883 2883
     $this->firstStepRequired = $firstStepRequired;
2884 2884
   }
2885 2885
   public function getFirstStepRequired() {
2886 2886
     return $this->firstStepRequired;
2887 2887
   }
2888
-  public function setMatchType( $matchType) {
2888
+  public function setMatchType($matchType) {
2889 2889
     $this->matchType = $matchType;
2890 2890
   }
2891 2891
   public function getMatchType() {
@@ -2898,7 +2898,7 @@  discard block
 block discarded – undo
2898 2898
   public function getSteps() {
2899 2899
     return $this->steps;
2900 2900
   }
2901
-  public function setUrl( $url) {
2901
+  public function setUrl($url) {
2902 2902
     $this->url = $url;
2903 2903
   }
2904 2904
   public function getUrl() {
@@ -2910,19 +2910,19 @@  discard block
 block discarded – undo
2910 2910
   public $name;
2911 2911
   public $number;
2912 2912
   public $url;
2913
-  public function setName( $name) {
2913
+  public function setName($name) {
2914 2914
     $this->name = $name;
2915 2915
   }
2916 2916
   public function getName() {
2917 2917
     return $this->name;
2918 2918
   }
2919
-  public function setNumber( $number) {
2919
+  public function setNumber($number) {
2920 2920
     $this->number = $number;
2921 2921
   }
2922 2922
   public function getNumber() {
2923 2923
     return $this->number;
2924 2924
   }
2925
-  public function setUrl( $url) {
2925
+  public function setUrl($url) {
2926 2926
     $this->url = $url;
2927 2927
   }
2928 2928
   public function getUrl() {
@@ -2933,13 +2933,13 @@  discard block
 block discarded – undo
2933 2933
 class Google_GoalVisitNumPagesDetails extends Google_Model {
2934 2934
   public $comparisonType;
2935 2935
   public $comparisonValue;
2936
-  public function setComparisonType( $comparisonType) {
2936
+  public function setComparisonType($comparisonType) {
2937 2937
     $this->comparisonType = $comparisonType;
2938 2938
   }
2939 2939
   public function getComparisonType() {
2940 2940
     return $this->comparisonType;
2941 2941
   }
2942
-  public function setComparisonValue( $comparisonValue) {
2942
+  public function setComparisonValue($comparisonValue) {
2943 2943
     $this->comparisonValue = $comparisonValue;
2944 2944
   }
2945 2945
   public function getComparisonValue() {
@@ -2950,13 +2950,13 @@  discard block
 block discarded – undo
2950 2950
 class Google_GoalVisitTimeOnSiteDetails extends Google_Model {
2951 2951
   public $comparisonType;
2952 2952
   public $comparisonValue;
2953
-  public function setComparisonType( $comparisonType) {
2953
+  public function setComparisonType($comparisonType) {
2954 2954
     $this->comparisonType = $comparisonType;
2955 2955
   }
2956 2956
   public function getComparisonType() {
2957 2957
     return $this->comparisonType;
2958 2958
   }
2959
-  public function setComparisonValue( $comparisonValue) {
2959
+  public function setComparisonValue($comparisonValue) {
2960 2960
     $this->comparisonValue = $comparisonValue;
2961 2961
   }
2962 2962
   public function getComparisonValue() {
@@ -2982,43 +2982,43 @@  discard block
 block discarded – undo
2982 2982
   public function getItems() {
2983 2983
     return $this->items;
2984 2984
   }
2985
-  public function setItemsPerPage( $itemsPerPage) {
2985
+  public function setItemsPerPage($itemsPerPage) {
2986 2986
     $this->itemsPerPage = $itemsPerPage;
2987 2987
   }
2988 2988
   public function getItemsPerPage() {
2989 2989
     return $this->itemsPerPage;
2990 2990
   }
2991
-  public function setKind( $kind) {
2991
+  public function setKind($kind) {
2992 2992
     $this->kind = $kind;
2993 2993
   }
2994 2994
   public function getKind() {
2995 2995
     return $this->kind;
2996 2996
   }
2997
-  public function setNextLink( $nextLink) {
2997
+  public function setNextLink($nextLink) {
2998 2998
     $this->nextLink = $nextLink;
2999 2999
   }
3000 3000
   public function getNextLink() {
3001 3001
     return $this->nextLink;
3002 3002
   }
3003
-  public function setPreviousLink( $previousLink) {
3003
+  public function setPreviousLink($previousLink) {
3004 3004
     $this->previousLink = $previousLink;
3005 3005
   }
3006 3006
   public function getPreviousLink() {
3007 3007
     return $this->previousLink;
3008 3008
   }
3009
-  public function setStartIndex( $startIndex) {
3009
+  public function setStartIndex($startIndex) {
3010 3010
     $this->startIndex = $startIndex;
3011 3011
   }
3012 3012
   public function getStartIndex() {
3013 3013
     return $this->startIndex;
3014 3014
   }
3015
-  public function setTotalResults( $totalResults) {
3015
+  public function setTotalResults($totalResults) {
3016 3016
     $this->totalResults = $totalResults;
3017 3017
   }
3018 3018
   public function getTotalResults() {
3019 3019
     return $this->totalResults;
3020 3020
   }
3021
-  public function setUsername( $username) {
3021
+  public function setUsername($username) {
3022 3022
     $this->username = $username;
3023 3023
   }
3024 3024
   public function getUsername() {
@@ -3055,37 +3055,37 @@  discard block
 block discarded – undo
3055 3055
   public function getColumnHeaders() {
3056 3056
     return $this->columnHeaders;
3057 3057
   }
3058
-  public function setContainsSampledData( $containsSampledData) {
3058
+  public function setContainsSampledData($containsSampledData) {
3059 3059
     $this->containsSampledData = $containsSampledData;
3060 3060
   }
3061 3061
   public function getContainsSampledData() {
3062 3062
     return $this->containsSampledData;
3063 3063
   }
3064
-  public function setId( $id) {
3064
+  public function setId($id) {
3065 3065
     $this->id = $id;
3066 3066
   }
3067 3067
   public function getId() {
3068 3068
     return $this->id;
3069 3069
   }
3070
-  public function setItemsPerPage( $itemsPerPage) {
3070
+  public function setItemsPerPage($itemsPerPage) {
3071 3071
     $this->itemsPerPage = $itemsPerPage;
3072 3072
   }
3073 3073
   public function getItemsPerPage() {
3074 3074
     return $this->itemsPerPage;
3075 3075
   }
3076
-  public function setKind( $kind) {
3076
+  public function setKind($kind) {
3077 3077
     $this->kind = $kind;
3078 3078
   }
3079 3079
   public function getKind() {
3080 3080
     return $this->kind;
3081 3081
   }
3082
-  public function setNextLink( $nextLink) {
3082
+  public function setNextLink($nextLink) {
3083 3083
     $this->nextLink = $nextLink;
3084 3084
   }
3085 3085
   public function getNextLink() {
3086 3086
     return $this->nextLink;
3087 3087
   }
3088
-  public function setPreviousLink( $previousLink) {
3088
+  public function setPreviousLink($previousLink) {
3089 3089
     $this->previousLink = $previousLink;
3090 3090
   }
3091 3091
   public function getPreviousLink() {
@@ -3110,19 +3110,19 @@  discard block
 block discarded – undo
3110 3110
   public function getRows() {
3111 3111
     return $this->rows;
3112 3112
   }
3113
-  public function setSelfLink( $selfLink) {
3113
+  public function setSelfLink($selfLink) {
3114 3114
     $this->selfLink = $selfLink;
3115 3115
   }
3116 3116
   public function getSelfLink() {
3117 3117
     return $this->selfLink;
3118 3118
   }
3119
-  public function setTotalResults( $totalResults) {
3119
+  public function setTotalResults($totalResults) {
3120 3120
     $this->totalResults = $totalResults;
3121 3121
   }
3122 3122
   public function getTotalResults() {
3123 3123
     return $this->totalResults;
3124 3124
   }
3125
-  public function setTotalsForAllResults( $totalsForAllResults) {
3125
+  public function setTotalsForAllResults($totalsForAllResults) {
3126 3126
     $this->totalsForAllResults = $totalsForAllResults;
3127 3127
   }
3128 3128
   public function getTotalsForAllResults() {
@@ -3134,19 +3134,19 @@  discard block
 block discarded – undo
3134 3134
   public $columnType;
3135 3135
   public $dataType;
3136 3136
   public $name;
3137
-  public function setColumnType( $columnType) {
3137
+  public function setColumnType($columnType) {
3138 3138
     $this->columnType = $columnType;
3139 3139
   }
3140 3140
   public function getColumnType() {
3141 3141
     return $this->columnType;
3142 3142
   }
3143
-  public function setDataType( $dataType) {
3143
+  public function setDataType($dataType) {
3144 3144
     $this->dataType = $dataType;
3145 3145
   }
3146 3146
   public function getDataType() {
3147 3147
     return $this->dataType;
3148 3148
   }
3149
-  public function setName( $name) {
3149
+  public function setName($name) {
3150 3150
     $this->name = $name;
3151 3151
   }
3152 3152
   public function getName() {
@@ -3161,37 +3161,37 @@  discard block
 block discarded – undo
3161 3161
   public $profileName;
3162 3162
   public $tableId;
3163 3163
   public $webPropertyId;
3164
-  public function setAccountId( $accountId) {
3164
+  public function setAccountId($accountId) {
3165 3165
     $this->accountId = $accountId;
3166 3166
   }
3167 3167
   public function getAccountId() {
3168 3168
     return $this->accountId;
3169 3169
   }
3170
-  public function setInternalWebPropertyId( $internalWebPropertyId) {
3170
+  public function setInternalWebPropertyId($internalWebPropertyId) {
3171 3171
     $this->internalWebPropertyId = $internalWebPropertyId;
3172 3172
   }
3173 3173
   public function getInternalWebPropertyId() {
3174 3174
     return $this->internalWebPropertyId;
3175 3175
   }
3176
-  public function setProfileId( $profileId) {
3176
+  public function setProfileId($profileId) {
3177 3177
     $this->profileId = $profileId;
3178 3178
   }
3179 3179
   public function getProfileId() {
3180 3180
     return $this->profileId;
3181 3181
   }
3182
-  public function setProfileName( $profileName) {
3182
+  public function setProfileName($profileName) {
3183 3183
     $this->profileName = $profileName;
3184 3184
   }
3185 3185
   public function getProfileName() {
3186 3186
     return $this->profileName;
3187 3187
   }
3188
-  public function setTableId( $tableId) {
3188
+  public function setTableId($tableId) {
3189 3189
     $this->tableId = $tableId;
3190 3190
   }
3191 3191
   public function getTableId() {
3192 3192
     return $this->tableId;
3193 3193
   }
3194
-  public function setWebPropertyId( $webPropertyId) {
3194
+  public function setWebPropertyId($webPropertyId) {
3195 3195
     $this->webPropertyId = $webPropertyId;
3196 3196
   }
3197 3197
   public function getWebPropertyId() {
@@ -3210,31 +3210,31 @@  discard block
 block discarded – undo
3210 3210
   public $sort;
3211 3211
   public $start_date;
3212 3212
   public $start_index;
3213
-  public function setDimensions( $dimensions) {
3213
+  public function setDimensions($dimensions) {
3214 3214
     $this->dimensions = $dimensions;
3215 3215
   }
3216 3216
   public function getDimensions() {
3217 3217
     return $this->dimensions;
3218 3218
   }
3219
-  public function setEnd_date( $end_date) {
3219
+  public function setEnd_date($end_date) {
3220 3220
     $this->end_date = $end_date;
3221 3221
   }
3222 3222
   public function getEnd_date() {
3223 3223
     return $this->end_date;
3224 3224
   }
3225
-  public function setFilters( $filters) {
3225
+  public function setFilters($filters) {
3226 3226
     $this->filters = $filters;
3227 3227
   }
3228 3228
   public function getFilters() {
3229 3229
     return $this->filters;
3230 3230
   }
3231
-  public function setIds( $ids) {
3231
+  public function setIds($ids) {
3232 3232
     $this->ids = $ids;
3233 3233
   }
3234 3234
   public function getIds() {
3235 3235
     return $this->ids;
3236 3236
   }
3237
-  public function setMax_results( $max_results) {
3237
+  public function setMax_results($max_results) {
3238 3238
     $this->max_results = $max_results;
3239 3239
   }
3240 3240
   public function getMax_results() {
@@ -3247,7 +3247,7 @@  discard block
 block discarded – undo
3247 3247
   public function getMetrics() {
3248 3248
     return $this->metrics;
3249 3249
   }
3250
-  public function setSegment( $segment) {
3250
+  public function setSegment($segment) {
3251 3251
     $this->segment = $segment;
3252 3252
   }
3253 3253
   public function getSegment() {
@@ -3260,13 +3260,13 @@  discard block
 block discarded – undo
3260 3260
   public function getSort() {
3261 3261
     return $this->sort;
3262 3262
   }
3263
-  public function setStart_date( $start_date) {
3263
+  public function setStart_date($start_date) {
3264 3264
     $this->start_date = $start_date;
3265 3265
   }
3266 3266
   public function getStart_date() {
3267 3267
     return $this->start_date;
3268 3268
   }
3269
-  public function setStart_index( $start_index) {
3269
+  public function setStart_index($start_index) {
3270 3270
     $this->start_index = $start_index;
3271 3271
   }
3272 3272
   public function getStart_index() {
@@ -3286,7 +3286,7 @@  discard block
 block discarded – undo
3286 3286
   public function getConversionPathValue() {
3287 3287
     return $this->conversionPathValue;
3288 3288
   }
3289
-  public function setPrimitiveValue( $primitiveValue) {
3289
+  public function setPrimitiveValue($primitiveValue) {
3290 3290
     $this->primitiveValue = $primitiveValue;
3291 3291
   }
3292 3292
   public function getPrimitiveValue() {
@@ -3297,13 +3297,13 @@  discard block
 block discarded – undo
3297 3297
 class Google_McfDataRowsConversionPathValue extends Google_Model {
3298 3298
   public $interactionType;
3299 3299
   public $nodeValue;
3300
-  public function setInteractionType( $interactionType) {
3300
+  public function setInteractionType($interactionType) {
3301 3301
     $this->interactionType = $interactionType;
3302 3302
   }
3303 3303
   public function getInteractionType() {
3304 3304
     return $this->interactionType;
3305 3305
   }
3306
-  public function setNodeValue( $nodeValue) {
3306
+  public function setNodeValue($nodeValue) {
3307 3307
     $this->nodeValue = $nodeValue;
3308 3308
   }
3309 3309
   public function getNodeValue() {
@@ -3339,7 +3339,7 @@  discard block
 block discarded – undo
3339 3339
   public $updated;
3340 3340
   public $webPropertyId;
3341 3341
   public $websiteUrl;
3342
-  public function setAccountId( $accountId) {
3342
+  public function setAccountId($accountId) {
3343 3343
     $this->accountId = $accountId;
3344 3344
   }
3345 3345
   public function getAccountId() {
@@ -3351,55 +3351,55 @@  discard block
 block discarded – undo
3351 3351
   public function getChildLink() {
3352 3352
     return $this->childLink;
3353 3353
   }
3354
-  public function setCreated( $created) {
3354
+  public function setCreated($created) {
3355 3355
     $this->created = $created;
3356 3356
   }
3357 3357
   public function getCreated() {
3358 3358
     return $this->created;
3359 3359
   }
3360
-  public function setCurrency( $currency) {
3360
+  public function setCurrency($currency) {
3361 3361
     $this->currency = $currency;
3362 3362
   }
3363 3363
   public function getCurrency() {
3364 3364
     return $this->currency;
3365 3365
   }
3366
-  public function setDefaultPage( $defaultPage) {
3366
+  public function setDefaultPage($defaultPage) {
3367 3367
     $this->defaultPage = $defaultPage;
3368 3368
   }
3369 3369
   public function getDefaultPage() {
3370 3370
     return $this->defaultPage;
3371 3371
   }
3372
-  public function setECommerceTracking( $eCommerceTracking) {
3372
+  public function setECommerceTracking($eCommerceTracking) {
3373 3373
     $this->eCommerceTracking = $eCommerceTracking;
3374 3374
   }
3375 3375
   public function getECommerceTracking() {
3376 3376
     return $this->eCommerceTracking;
3377 3377
   }
3378
-  public function setExcludeQueryParameters( $excludeQueryParameters) {
3378
+  public function setExcludeQueryParameters($excludeQueryParameters) {
3379 3379
     $this->excludeQueryParameters = $excludeQueryParameters;
3380 3380
   }
3381 3381
   public function getExcludeQueryParameters() {
3382 3382
     return $this->excludeQueryParameters;
3383 3383
   }
3384
-  public function setId( $id) {
3384
+  public function setId($id) {
3385 3385
     $this->id = $id;
3386 3386
   }
3387 3387
   public function getId() {
3388 3388
     return $this->id;
3389 3389
   }
3390
-  public function setInternalWebPropertyId( $internalWebPropertyId) {
3390
+  public function setInternalWebPropertyId($internalWebPropertyId) {
3391 3391
     $this->internalWebPropertyId = $internalWebPropertyId;
3392 3392
   }
3393 3393
   public function getInternalWebPropertyId() {
3394 3394
     return $this->internalWebPropertyId;
3395 3395
   }
3396
-  public function setKind( $kind) {
3396
+  public function setKind($kind) {
3397 3397
     $this->kind = $kind;
3398 3398
   }
3399 3399
   public function getKind() {
3400 3400
     return $this->kind;
3401 3401
   }
3402
-  public function setName( $name) {
3402
+  public function setName($name) {
3403 3403
     $this->name = $name;
3404 3404
   }
3405 3405
   public function getName() {
@@ -3417,49 +3417,49 @@  discard block
 block discarded – undo
3417 3417
   public function getPermissions() {
3418 3418
     return $this->permissions;
3419 3419
   }
3420
-  public function setSelfLink( $selfLink) {
3420
+  public function setSelfLink($selfLink) {
3421 3421
     $this->selfLink = $selfLink;
3422 3422
   }
3423 3423
   public function getSelfLink() {
3424 3424
     return $this->selfLink;
3425 3425
   }
3426
-  public function setSiteSearchCategoryParameters( $siteSearchCategoryParameters) {
3426
+  public function setSiteSearchCategoryParameters($siteSearchCategoryParameters) {
3427 3427
     $this->siteSearchCategoryParameters = $siteSearchCategoryParameters;
3428 3428
   }
3429 3429
   public function getSiteSearchCategoryParameters() {
3430 3430
     return $this->siteSearchCategoryParameters;
3431 3431
   }
3432
-  public function setSiteSearchQueryParameters( $siteSearchQueryParameters) {
3432
+  public function setSiteSearchQueryParameters($siteSearchQueryParameters) {
3433 3433
     $this->siteSearchQueryParameters = $siteSearchQueryParameters;
3434 3434
   }
3435 3435
   public function getSiteSearchQueryParameters() {
3436 3436
     return $this->siteSearchQueryParameters;
3437 3437
   }
3438
-  public function setTimezone( $timezone) {
3438
+  public function setTimezone($timezone) {
3439 3439
     $this->timezone = $timezone;
3440 3440
   }
3441 3441
   public function getTimezone() {
3442 3442
     return $this->timezone;
3443 3443
   }
3444
-  public function setType( $type) {
3444
+  public function setType($type) {
3445 3445
     $this->type = $type;
3446 3446
   }
3447 3447
   public function getType() {
3448 3448
     return $this->type;
3449 3449
   }
3450
-  public function setUpdated( $updated) {
3450
+  public function setUpdated($updated) {
3451 3451
     $this->updated = $updated;
3452 3452
   }
3453 3453
   public function getUpdated() {
3454 3454
     return $this->updated;
3455 3455
   }
3456
-  public function setWebPropertyId( $webPropertyId) {
3456
+  public function setWebPropertyId($webPropertyId) {
3457 3457
     $this->webPropertyId = $webPropertyId;
3458 3458
   }
3459 3459
   public function getWebPropertyId() {
3460 3460
     return $this->webPropertyId;
3461 3461
   }
3462
-  public function setWebsiteUrl( $websiteUrl) {
3462
+  public function setWebsiteUrl($websiteUrl) {
3463 3463
     $this->websiteUrl = $websiteUrl;
3464 3464
   }
3465 3465
   public function getWebsiteUrl() {
@@ -3470,13 +3470,13 @@  discard block
 block discarded – undo
3470 3470
 class Google_ProfileChildLink extends Google_Model {
3471 3471
   public $href;
3472 3472
   public $type;
3473
-  public function setHref( $href) {
3473
+  public function setHref($href) {
3474 3474
     $this->href = $href;
3475 3475
   }
3476 3476
   public function getHref() {
3477 3477
     return $this->href;
3478 3478
   }
3479
-  public function setType( $type) {
3479
+  public function setType($type) {
3480 3480
     $this->type = $type;
3481 3481
   }
3482 3482
   public function getType() {
@@ -3487,13 +3487,13 @@  discard block
 block discarded – undo
3487 3487
 class Google_ProfileParentLink extends Google_Model {
3488 3488
   public $href;
3489 3489
   public $type;
3490
-  public function setHref( $href) {
3490
+  public function setHref($href) {
3491 3491
     $this->href = $href;
3492 3492
   }
3493 3493
   public function getHref() {
3494 3494
     return $this->href;
3495 3495
   }
3496
-  public function setType( $type) {
3496
+  public function setType($type) {
3497 3497
     $this->type = $type;
3498 3498
   }
3499 3499
   public function getType() {
@@ -3520,43 +3520,43 @@  discard block
 block discarded – undo
3520 3520
   public $kind;
3521 3521
   public $name;
3522 3522
   public $webPropertyId;
3523
-  public function setAccountId( $accountId) {
3523
+  public function setAccountId($accountId) {
3524 3524
     $this->accountId = $accountId;
3525 3525
   }
3526 3526
   public function getAccountId() {
3527 3527
     return $this->accountId;
3528 3528
   }
3529
-  public function setHref( $href) {
3529
+  public function setHref($href) {
3530 3530
     $this->href = $href;
3531 3531
   }
3532 3532
   public function getHref() {
3533 3533
     return $this->href;
3534 3534
   }
3535
-  public function setId( $id) {
3535
+  public function setId($id) {
3536 3536
     $this->id = $id;
3537 3537
   }
3538 3538
   public function getId() {
3539 3539
     return $this->id;
3540 3540
   }
3541
-  public function setInternalWebPropertyId( $internalWebPropertyId) {
3541
+  public function setInternalWebPropertyId($internalWebPropertyId) {
3542 3542
     $this->internalWebPropertyId = $internalWebPropertyId;
3543 3543
   }
3544 3544
   public function getInternalWebPropertyId() {
3545 3545
     return $this->internalWebPropertyId;
3546 3546
   }
3547
-  public function setKind( $kind) {
3547
+  public function setKind($kind) {
3548 3548
     $this->kind = $kind;
3549 3549
   }
3550 3550
   public function getKind() {
3551 3551
     return $this->kind;
3552 3552
   }
3553
-  public function setName( $name) {
3553
+  public function setName($name) {
3554 3554
     $this->name = $name;
3555 3555
   }
3556 3556
   public function getName() {
3557 3557
     return $this->name;
3558 3558
   }
3559
-  public function setWebPropertyId( $webPropertyId) {
3559
+  public function setWebPropertyId($webPropertyId) {
3560 3560
     $this->webPropertyId = $webPropertyId;
3561 3561
   }
3562 3562
   public function getWebPropertyId() {
@@ -3582,43 +3582,43 @@  discard block
 block discarded – undo
3582 3582
   public function getItems() {
3583 3583
     return $this->items;
3584 3584
   }
3585
-  public function setItemsPerPage( $itemsPerPage) {
3585
+  public function setItemsPerPage($itemsPerPage) {
3586 3586
     $this->itemsPerPage = $itemsPerPage;
3587 3587
   }
3588 3588
   public function getItemsPerPage() {
3589 3589
     return $this->itemsPerPage;
3590 3590
   }
3591
-  public function setKind( $kind) {
3591
+  public function setKind($kind) {
3592 3592
     $this->kind = $kind;
3593 3593
   }
3594 3594
   public function getKind() {
3595 3595
     return $this->kind;
3596 3596
   }
3597
-  public function setNextLink( $nextLink) {
3597
+  public function setNextLink($nextLink) {
3598 3598
     $this->nextLink = $nextLink;
3599 3599
   }
3600 3600
   public function getNextLink() {
3601 3601
     return $this->nextLink;
3602 3602
   }
3603
-  public function setPreviousLink( $previousLink) {
3603
+  public function setPreviousLink($previousLink) {
3604 3604
     $this->previousLink = $previousLink;
3605 3605
   }
3606 3606
   public function getPreviousLink() {
3607 3607
     return $this->previousLink;
3608 3608
   }
3609
-  public function setStartIndex( $startIndex) {
3609
+  public function setStartIndex($startIndex) {
3610 3610
     $this->startIndex = $startIndex;
3611 3611
   }
3612 3612
   public function getStartIndex() {
3613 3613
     return $this->startIndex;
3614 3614
   }
3615
-  public function setTotalResults( $totalResults) {
3615
+  public function setTotalResults($totalResults) {
3616 3616
     $this->totalResults = $totalResults;
3617 3617
   }
3618 3618
   public function getTotalResults() {
3619 3619
     return $this->totalResults;
3620 3620
   }
3621
-  public function setUsername( $username) {
3621
+  public function setUsername($username) {
3622 3622
     $this->username = $username;
3623 3623
   }
3624 3624
   public function getUsername() {
@@ -3649,13 +3649,13 @@  discard block
 block discarded – undo
3649 3649
   public function getColumnHeaders() {
3650 3650
     return $this->columnHeaders;
3651 3651
   }
3652
-  public function setId( $id) {
3652
+  public function setId($id) {
3653 3653
     $this->id = $id;
3654 3654
   }
3655 3655
   public function getId() {
3656 3656
     return $this->id;
3657 3657
   }
3658
-  public function setKind( $kind) {
3658
+  public function setKind($kind) {
3659 3659
     $this->kind = $kind;
3660 3660
   }
3661 3661
   public function getKind() {
@@ -3680,19 +3680,19 @@  discard block
 block discarded – undo
3680 3680
   public function getRows() {
3681 3681
     return $this->rows;
3682 3682
   }
3683
-  public function setSelfLink( $selfLink) {
3683
+  public function setSelfLink($selfLink) {
3684 3684
     $this->selfLink = $selfLink;
3685 3685
   }
3686 3686
   public function getSelfLink() {
3687 3687
     return $this->selfLink;
3688 3688
   }
3689
-  public function setTotalResults( $totalResults) {
3689
+  public function setTotalResults($totalResults) {
3690 3690
     $this->totalResults = $totalResults;
3691 3691
   }
3692 3692
   public function getTotalResults() {
3693 3693
     return $this->totalResults;
3694 3694
   }
3695
-  public function setTotalsForAllResults( $totalsForAllResults) {
3695
+  public function setTotalsForAllResults($totalsForAllResults) {
3696 3696
     $this->totalsForAllResults = $totalsForAllResults;
3697 3697
   }
3698 3698
   public function getTotalsForAllResults() {
@@ -3704,19 +3704,19 @@  discard block
 block discarded – undo
3704 3704
   public $columnType;
3705 3705
   public $dataType;
3706 3706
   public $name;
3707
-  public function setColumnType( $columnType) {
3707
+  public function setColumnType($columnType) {
3708 3708
     $this->columnType = $columnType;
3709 3709
   }
3710 3710
   public function getColumnType() {
3711 3711
     return $this->columnType;
3712 3712
   }
3713
-  public function setDataType( $dataType) {
3713
+  public function setDataType($dataType) {
3714 3714
     $this->dataType = $dataType;
3715 3715
   }
3716 3716
   public function getDataType() {
3717 3717
     return $this->dataType;
3718 3718
   }
3719
-  public function setName( $name) {
3719
+  public function setName($name) {
3720 3720
     $this->name = $name;
3721 3721
   }
3722 3722
   public function getName() {
@@ -3731,37 +3731,37 @@  discard block
 block discarded – undo
3731 3731
   public $profileName;
3732 3732
   public $tableId;
3733 3733
   public $webPropertyId;
3734
-  public function setAccountId( $accountId) {
3734
+  public function setAccountId($accountId) {
3735 3735
     $this->accountId = $accountId;
3736 3736
   }
3737 3737
   public function getAccountId() {
3738 3738
     return $this->accountId;
3739 3739
   }
3740
-  public function setInternalWebPropertyId( $internalWebPropertyId) {
3740
+  public function setInternalWebPropertyId($internalWebPropertyId) {
3741 3741
     $this->internalWebPropertyId = $internalWebPropertyId;
3742 3742
   }
3743 3743
   public function getInternalWebPropertyId() {
3744 3744
     return $this->internalWebPropertyId;
3745 3745
   }
3746
-  public function setProfileId( $profileId) {
3746
+  public function setProfileId($profileId) {
3747 3747
     $this->profileId = $profileId;
3748 3748
   }
3749 3749
   public function getProfileId() {
3750 3750
     return $this->profileId;
3751 3751
   }
3752
-  public function setProfileName( $profileName) {
3752
+  public function setProfileName($profileName) {
3753 3753
     $this->profileName = $profileName;
3754 3754
   }
3755 3755
   public function getProfileName() {
3756 3756
     return $this->profileName;
3757 3757
   }
3758
-  public function setTableId( $tableId) {
3758
+  public function setTableId($tableId) {
3759 3759
     $this->tableId = $tableId;
3760 3760
   }
3761 3761
   public function getTableId() {
3762 3762
     return $this->tableId;
3763 3763
   }
3764
-  public function setWebPropertyId( $webPropertyId) {
3764
+  public function setWebPropertyId($webPropertyId) {
3765 3765
     $this->webPropertyId = $webPropertyId;
3766 3766
   }
3767 3767
   public function getWebPropertyId() {
@@ -3776,25 +3776,25 @@  discard block
 block discarded – undo
3776 3776
   public $max_results;
3777 3777
   public $metrics;
3778 3778
   public $sort;
3779
-  public function setDimensions( $dimensions) {
3779
+  public function setDimensions($dimensions) {
3780 3780
     $this->dimensions = $dimensions;
3781 3781
   }
3782 3782
   public function getDimensions() {
3783 3783
     return $this->dimensions;
3784 3784
   }
3785
-  public function setFilters( $filters) {
3785
+  public function setFilters($filters) {
3786 3786
     $this->filters = $filters;
3787 3787
   }
3788 3788
   public function getFilters() {
3789 3789
     return $this->filters;
3790 3790
   }
3791
-  public function setIds( $ids) {
3791
+  public function setIds($ids) {
3792 3792
     $this->ids = $ids;
3793 3793
   }
3794 3794
   public function getIds() {
3795 3795
     return $this->ids;
3796 3796
   }
3797
-  public function setMax_results( $max_results) {
3797
+  public function setMax_results($max_results) {
3798 3798
     $this->max_results = $max_results;
3799 3799
   }
3800 3800
   public function getMax_results() {
@@ -3825,49 +3825,49 @@  discard block
 block discarded – undo
3825 3825
   public $segmentId;
3826 3826
   public $selfLink;
3827 3827
   public $updated;
3828
-  public function setCreated( $created) {
3828
+  public function setCreated($created) {
3829 3829
     $this->created = $created;
3830 3830
   }
3831 3831
   public function getCreated() {
3832 3832
     return $this->created;
3833 3833
   }
3834
-  public function setDefinition( $definition) {
3834
+  public function setDefinition($definition) {
3835 3835
     $this->definition = $definition;
3836 3836
   }
3837 3837
   public function getDefinition() {
3838 3838
     return $this->definition;
3839 3839
   }
3840
-  public function setId( $id) {
3840
+  public function setId($id) {
3841 3841
     $this->id = $id;
3842 3842
   }
3843 3843
   public function getId() {
3844 3844
     return $this->id;
3845 3845
   }
3846
-  public function setKind( $kind) {
3846
+  public function setKind($kind) {
3847 3847
     $this->kind = $kind;
3848 3848
   }
3849 3849
   public function getKind() {
3850 3850
     return $this->kind;
3851 3851
   }
3852
-  public function setName( $name) {
3852
+  public function setName($name) {
3853 3853
     $this->name = $name;
3854 3854
   }
3855 3855
   public function getName() {
3856 3856
     return $this->name;
3857 3857
   }
3858
-  public function setSegmentId( $segmentId) {
3858
+  public function setSegmentId($segmentId) {
3859 3859
     $this->segmentId = $segmentId;
3860 3860
   }
3861 3861
   public function getSegmentId() {
3862 3862
     return $this->segmentId;
3863 3863
   }
3864
-  public function setSelfLink( $selfLink) {
3864
+  public function setSelfLink($selfLink) {
3865 3865
     $this->selfLink = $selfLink;
3866 3866
   }
3867 3867
   public function getSelfLink() {
3868 3868
     return $this->selfLink;
3869 3869
   }
3870
-  public function setUpdated( $updated) {
3870
+  public function setUpdated($updated) {
3871 3871
     $this->updated = $updated;
3872 3872
   }
3873 3873
   public function getUpdated() {
@@ -3893,43 +3893,43 @@  discard block
 block discarded – undo
3893 3893
   public function getItems() {
3894 3894
     return $this->items;
3895 3895
   }
3896
-  public function setItemsPerPage( $itemsPerPage) {
3896
+  public function setItemsPerPage($itemsPerPage) {
3897 3897
     $this->itemsPerPage = $itemsPerPage;
3898 3898
   }
3899 3899
   public function getItemsPerPage() {
3900 3900
     return $this->itemsPerPage;
3901 3901
   }
3902
-  public function setKind( $kind) {
3902
+  public function setKind($kind) {
3903 3903
     $this->kind = $kind;
3904 3904
   }
3905 3905
   public function getKind() {
3906 3906
     return $this->kind;
3907 3907
   }
3908
-  public function setNextLink( $nextLink) {
3908
+  public function setNextLink($nextLink) {
3909 3909
     $this->nextLink = $nextLink;
3910 3910
   }
3911 3911
   public function getNextLink() {
3912 3912
     return $this->nextLink;
3913 3913
   }
3914
-  public function setPreviousLink( $previousLink) {
3914
+  public function setPreviousLink($previousLink) {
3915 3915
     $this->previousLink = $previousLink;
3916 3916
   }
3917 3917
   public function getPreviousLink() {
3918 3918
     return $this->previousLink;
3919 3919
   }
3920
-  public function setStartIndex( $startIndex) {
3920
+  public function setStartIndex($startIndex) {
3921 3921
     $this->startIndex = $startIndex;
3922 3922
   }
3923 3923
   public function getStartIndex() {
3924 3924
     return $this->startIndex;
3925 3925
   }
3926
-  public function setTotalResults( $totalResults) {
3926
+  public function setTotalResults($totalResults) {
3927 3927
     $this->totalResults = $totalResults;
3928 3928
   }
3929 3929
   public function getTotalResults() {
3930 3930
     return $this->totalResults;
3931 3931
   }
3932
-  public function setUsername( $username) {
3932
+  public function setUsername($username) {
3933 3933
     $this->username = $username;
3934 3934
   }
3935 3935
   public function getUsername() {
@@ -3944,13 +3944,13 @@  discard block
 block discarded – undo
3944 3944
   public $id;
3945 3945
   public $kind;
3946 3946
   public $status;
3947
-  public function setAccountId( $accountId) {
3947
+  public function setAccountId($accountId) {
3948 3948
     $this->accountId = $accountId;
3949 3949
   }
3950 3950
   public function getAccountId() {
3951 3951
     return $this->accountId;
3952 3952
   }
3953
-  public function setCustomDataSourceId( $customDataSourceId) {
3953
+  public function setCustomDataSourceId($customDataSourceId) {
3954 3954
     $this->customDataSourceId = $customDataSourceId;
3955 3955
   }
3956 3956
   public function getCustomDataSourceId() {
@@ -3963,19 +3963,19 @@  discard block
 block discarded – undo
3963 3963
   public function getErrors() {
3964 3964
     return $this->errors;
3965 3965
   }
3966
-  public function setId( $id) {
3966
+  public function setId($id) {
3967 3967
     $this->id = $id;
3968 3968
   }
3969 3969
   public function getId() {
3970 3970
     return $this->id;
3971 3971
   }
3972
-  public function setKind( $kind) {
3972
+  public function setKind($kind) {
3973 3973
     $this->kind = $kind;
3974 3974
   }
3975 3975
   public function getKind() {
3976 3976
     return $this->kind;
3977 3977
   }
3978
-  public function setStatus( $status) {
3978
+  public function setStatus($status) {
3979 3979
     $this->status = $status;
3980 3980
   }
3981 3981
   public function getStatus() {
@@ -4000,37 +4000,37 @@  discard block
 block discarded – undo
4000 4000
   public function getItems() {
4001 4001
     return $this->items;
4002 4002
   }
4003
-  public function setItemsPerPage( $itemsPerPage) {
4003
+  public function setItemsPerPage($itemsPerPage) {
4004 4004
     $this->itemsPerPage = $itemsPerPage;
4005 4005
   }
4006 4006
   public function getItemsPerPage() {
4007 4007
     return $this->itemsPerPage;
4008 4008
   }
4009
-  public function setKind( $kind) {
4009
+  public function setKind($kind) {
4010 4010
     $this->kind = $kind;
4011 4011
   }
4012 4012
   public function getKind() {
4013 4013
     return $this->kind;
4014 4014
   }
4015
-  public function setNextLink( $nextLink) {
4015
+  public function setNextLink($nextLink) {
4016 4016
     $this->nextLink = $nextLink;
4017 4017
   }
4018 4018
   public function getNextLink() {
4019 4019
     return $this->nextLink;
4020 4020
   }
4021
-  public function setPreviousLink( $previousLink) {
4021
+  public function setPreviousLink($previousLink) {
4022 4022
     $this->previousLink = $previousLink;
4023 4023
   }
4024 4024
   public function getPreviousLink() {
4025 4025
     return $this->previousLink;
4026 4026
   }
4027
-  public function setStartIndex( $startIndex) {
4027
+  public function setStartIndex($startIndex) {
4028 4028
     $this->startIndex = $startIndex;
4029 4029
   }
4030 4030
   public function getStartIndex() {
4031 4031
     return $this->startIndex;
4032 4032
   }
4033
-  public function setTotalResults( $totalResults) {
4033
+  public function setTotalResults($totalResults) {
4034 4034
     $this->totalResults = $totalResults;
4035 4035
   }
4036 4036
   public function getTotalResults() {
@@ -4042,19 +4042,19 @@  discard block
 block discarded – undo
4042 4042
   public $email;
4043 4043
   public $id;
4044 4044
   public $kind;
4045
-  public function setEmail( $email) {
4045
+  public function setEmail($email) {
4046 4046
     $this->email = $email;
4047 4047
   }
4048 4048
   public function getEmail() {
4049 4049
     return $this->email;
4050 4050
   }
4051
-  public function setId( $id) {
4051
+  public function setId($id) {
4052 4052
     $this->id = $id;
4053 4053
   }
4054 4054
   public function getId() {
4055 4055
     return $this->id;
4056 4056
   }
4057
-  public function setKind( $kind) {
4057
+  public function setKind($kind) {
4058 4058
     $this->kind = $kind;
4059 4059
   }
4060 4060
   public function getKind() {
@@ -4069,37 +4069,37 @@  discard block
 block discarded – undo
4069 4069
   public $internalWebPropertyId;
4070 4070
   public $kind;
4071 4071
   public $name;
4072
-  public function setAccountId( $accountId) {
4072
+  public function setAccountId($accountId) {
4073 4073
     $this->accountId = $accountId;
4074 4074
   }
4075 4075
   public function getAccountId() {
4076 4076
     return $this->accountId;
4077 4077
   }
4078
-  public function setHref( $href) {
4078
+  public function setHref($href) {
4079 4079
     $this->href = $href;
4080 4080
   }
4081 4081
   public function getHref() {
4082 4082
     return $this->href;
4083 4083
   }
4084
-  public function setId( $id) {
4084
+  public function setId($id) {
4085 4085
     $this->id = $id;
4086 4086
   }
4087 4087
   public function getId() {
4088 4088
     return $this->id;
4089 4089
   }
4090
-  public function setInternalWebPropertyId( $internalWebPropertyId) {
4090
+  public function setInternalWebPropertyId($internalWebPropertyId) {
4091 4091
     $this->internalWebPropertyId = $internalWebPropertyId;
4092 4092
   }
4093 4093
   public function getInternalWebPropertyId() {
4094 4094
     return $this->internalWebPropertyId;
4095 4095
   }
4096
-  public function setKind( $kind) {
4096
+  public function setKind($kind) {
4097 4097
     $this->kind = $kind;
4098 4098
   }
4099 4099
   public function getKind() {
4100 4100
     return $this->kind;
4101 4101
   }
4102
-  public function setName( $name) {
4102
+  public function setName($name) {
4103 4103
     $this->name = $name;
4104 4104
   }
4105 4105
   public function getName() {
@@ -4125,43 +4125,43 @@  discard block
 block discarded – undo
4125 4125
   public function getItems() {
4126 4126
     return $this->items;
4127 4127
   }
4128
-  public function setItemsPerPage( $itemsPerPage) {
4128
+  public function setItemsPerPage($itemsPerPage) {
4129 4129
     $this->itemsPerPage = $itemsPerPage;
4130 4130
   }
4131 4131
   public function getItemsPerPage() {
4132 4132
     return $this->itemsPerPage;
4133 4133
   }
4134
-  public function setKind( $kind) {
4134
+  public function setKind($kind) {
4135 4135
     $this->kind = $kind;
4136 4136
   }
4137 4137
   public function getKind() {
4138 4138
     return $this->kind;
4139 4139
   }
4140
-  public function setNextLink( $nextLink) {
4140
+  public function setNextLink($nextLink) {
4141 4141
     $this->nextLink = $nextLink;
4142 4142
   }
4143 4143
   public function getNextLink() {
4144 4144
     return $this->nextLink;
4145 4145
   }
4146
-  public function setPreviousLink( $previousLink) {
4146
+  public function setPreviousLink($previousLink) {
4147 4147
     $this->previousLink = $previousLink;
4148 4148
   }
4149 4149
   public function getPreviousLink() {
4150 4150
     return $this->previousLink;
4151 4151
   }
4152
-  public function setStartIndex( $startIndex) {
4152
+  public function setStartIndex($startIndex) {
4153 4153
     $this->startIndex = $startIndex;
4154 4154
   }
4155 4155
   public function getStartIndex() {
4156 4156
     return $this->startIndex;
4157 4157
   }
4158
-  public function setTotalResults( $totalResults) {
4158
+  public function setTotalResults($totalResults) {
4159 4159
     $this->totalResults = $totalResults;
4160 4160
   }
4161 4161
   public function getTotalResults() {
4162 4162
     return $this->totalResults;
4163 4163
   }
4164
-  public function setUsername( $username) {
4164
+  public function setUsername($username) {
4165 4165
     $this->username = $username;
4166 4166
   }
4167 4167
   public function getUsername() {
@@ -4192,7 +4192,7 @@  discard block
 block discarded – undo
4192 4192
   public $selfLink;
4193 4193
   public $updated;
4194 4194
   public $websiteUrl;
4195
-  public function setAccountId( $accountId) {
4195
+  public function setAccountId($accountId) {
4196 4196
     $this->accountId = $accountId;
4197 4197
   }
4198 4198
   public function getAccountId() {
@@ -4204,49 +4204,49 @@  discard block
 block discarded – undo
4204 4204
   public function getChildLink() {
4205 4205
     return $this->childLink;
4206 4206
   }
4207
-  public function setCreated( $created) {
4207
+  public function setCreated($created) {
4208 4208
     $this->created = $created;
4209 4209
   }
4210 4210
   public function getCreated() {
4211 4211
     return $this->created;
4212 4212
   }
4213
-  public function setDefaultProfileId( $defaultProfileId) {
4213
+  public function setDefaultProfileId($defaultProfileId) {
4214 4214
     $this->defaultProfileId = $defaultProfileId;
4215 4215
   }
4216 4216
   public function getDefaultProfileId() {
4217 4217
     return $this->defaultProfileId;
4218 4218
   }
4219
-  public function setId( $id) {
4219
+  public function setId($id) {
4220 4220
     $this->id = $id;
4221 4221
   }
4222 4222
   public function getId() {
4223 4223
     return $this->id;
4224 4224
   }
4225
-  public function setIndustryVertical( $industryVertical) {
4225
+  public function setIndustryVertical($industryVertical) {
4226 4226
     $this->industryVertical = $industryVertical;
4227 4227
   }
4228 4228
   public function getIndustryVertical() {
4229 4229
     return $this->industryVertical;
4230 4230
   }
4231
-  public function setInternalWebPropertyId( $internalWebPropertyId) {
4231
+  public function setInternalWebPropertyId($internalWebPropertyId) {
4232 4232
     $this->internalWebPropertyId = $internalWebPropertyId;
4233 4233
   }
4234 4234
   public function getInternalWebPropertyId() {
4235 4235
     return $this->internalWebPropertyId;
4236 4236
   }
4237
-  public function setKind( $kind) {
4237
+  public function setKind($kind) {
4238 4238
     $this->kind = $kind;
4239 4239
   }
4240 4240
   public function getKind() {
4241 4241
     return $this->kind;
4242 4242
   }
4243
-  public function setLevel( $level) {
4243
+  public function setLevel($level) {
4244 4244
     $this->level = $level;
4245 4245
   }
4246 4246
   public function getLevel() {
4247 4247
     return $this->level;
4248 4248
   }
4249
-  public function setName( $name) {
4249
+  public function setName($name) {
4250 4250
     $this->name = $name;
4251 4251
   }
4252 4252
   public function getName() {
@@ -4264,25 +4264,25 @@  discard block
 block discarded – undo
4264 4264
   public function getPermissions() {
4265 4265
     return $this->permissions;
4266 4266
   }
4267
-  public function setProfileCount( $profileCount) {
4267
+  public function setProfileCount($profileCount) {
4268 4268
     $this->profileCount = $profileCount;
4269 4269
   }
4270 4270
   public function getProfileCount() {
4271 4271
     return $this->profileCount;
4272 4272
   }
4273
-  public function setSelfLink( $selfLink) {
4273
+  public function setSelfLink($selfLink) {
4274 4274
     $this->selfLink = $selfLink;
4275 4275
   }
4276 4276
   public function getSelfLink() {
4277 4277
     return $this->selfLink;
4278 4278
   }
4279
-  public function setUpdated( $updated) {
4279
+  public function setUpdated($updated) {
4280 4280
     $this->updated = $updated;
4281 4281
   }
4282 4282
   public function getUpdated() {
4283 4283
     return $this->updated;
4284 4284
   }
4285
-  public function setWebsiteUrl( $websiteUrl) {
4285
+  public function setWebsiteUrl($websiteUrl) {
4286 4286
     $this->websiteUrl = $websiteUrl;
4287 4287
   }
4288 4288
   public function getWebsiteUrl() {
@@ -4293,13 +4293,13 @@  discard block
 block discarded – undo
4293 4293
 class Google_WebpropertyChildLink extends Google_Model {
4294 4294
   public $href;
4295 4295
   public $type;
4296
-  public function setHref( $href) {
4296
+  public function setHref($href) {
4297 4297
     $this->href = $href;
4298 4298
   }
4299 4299
   public function getHref() {
4300 4300
     return $this->href;
4301 4301
   }
4302
-  public function setType( $type) {
4302
+  public function setType($type) {
4303 4303
     $this->type = $type;
4304 4304
   }
4305 4305
   public function getType() {
@@ -4310,13 +4310,13 @@  discard block
 block discarded – undo
4310 4310
 class Google_WebpropertyParentLink extends Google_Model {
4311 4311
   public $href;
4312 4312
   public $type;
4313
-  public function setHref( $href) {
4313
+  public function setHref($href) {
4314 4314
     $this->href = $href;
4315 4315
   }
4316 4316
   public function getHref() {
4317 4317
     return $this->href;
4318 4318
   }
4319
-  public function setType( $type) {
4319
+  public function setType($type) {
4320 4320
     $this->type = $type;
4321 4321
   }
4322 4322
   public function getType() {
Please login to merge, or discard this patch.
geodirectory-admin/google-api-php-client/src/cache/Google_MemcacheCache.php 2 patches
Indentation   +57 added lines, -57 removed lines patch added patch discarded remove patch
@@ -27,81 +27,81 @@  discard block
 block discarded – undo
27 27
   private $connection = false;
28 28
 
29 29
   public function __construct() {
30
-    global $apiConfig;
31
-    if (! function_exists('memcache_connect')) {
32
-      throw new Google_CacheException("Memcache functions not available");
33
-    }
34
-    $this->host = $apiConfig['ioMemCacheCache_host'];
35
-    $this->port = $apiConfig['ioMemCacheCache_port'];
36
-    if (empty($this->host) || empty($this->port)) {
37
-      throw new Google_CacheException("You need to supply a valid memcache host and port");
38
-    }
30
+	global $apiConfig;
31
+	if (! function_exists('memcache_connect')) {
32
+	  throw new Google_CacheException("Memcache functions not available");
33
+	}
34
+	$this->host = $apiConfig['ioMemCacheCache_host'];
35
+	$this->port = $apiConfig['ioMemCacheCache_port'];
36
+	if (empty($this->host) || empty($this->port)) {
37
+	  throw new Google_CacheException("You need to supply a valid memcache host and port");
38
+	}
39 39
   }
40 40
 
41 41
   private function isLocked($key) {
42
-    $this->check();
43
-    if ((@memcache_get($this->connection, $key . '.lock')) === false) {
44
-      return false;
45
-    }
46
-    return true;
42
+	$this->check();
43
+	if ((@memcache_get($this->connection, $key . '.lock')) === false) {
44
+	  return false;
45
+	}
46
+	return true;
47 47
   }
48 48
 
49 49
   private function createLock($key) {
50
-    $this->check();
51
-    // the interesting thing is that this could fail if the lock was created in the meantime..
52
-    // but we'll ignore that out of convenience
53
-    @memcache_add($this->connection, $key . '.lock', '', 0, 5);
50
+	$this->check();
51
+	// the interesting thing is that this could fail if the lock was created in the meantime..
52
+	// but we'll ignore that out of convenience
53
+	@memcache_add($this->connection, $key . '.lock', '', 0, 5);
54 54
   }
55 55
 
56 56
   private function removeLock($key) {
57
-    $this->check();
58
-    // suppress all warnings, if some other process removed it that's ok too
59
-    @memcache_delete($this->connection, $key . '.lock');
57
+	$this->check();
58
+	// suppress all warnings, if some other process removed it that's ok too
59
+	@memcache_delete($this->connection, $key . '.lock');
60 60
   }
61 61
 
62 62
   private function waitForLock($key) {
63
-    $this->check();
64
-    // 20 x 250 = 5 seconds
65
-    $tries = 20;
66
-    $cnt = 0;
67
-    do {
68
-      // 250 ms is a long time to sleep, but it does stop the server from burning all resources on polling locks..
69
-      usleep(250);
70
-      $cnt ++;
71
-    } while ($cnt <= $tries && $this->isLocked($key));
72
-    if ($this->isLocked($key)) {
73
-      // 5 seconds passed, assume the owning process died off and remove it
74
-      $this->removeLock($key);
75
-    }
63
+	$this->check();
64
+	// 20 x 250 = 5 seconds
65
+	$tries = 20;
66
+	$cnt = 0;
67
+	do {
68
+	  // 250 ms is a long time to sleep, but it does stop the server from burning all resources on polling locks..
69
+	  usleep(250);
70
+	  $cnt ++;
71
+	} while ($cnt <= $tries && $this->isLocked($key));
72
+	if ($this->isLocked($key)) {
73
+	  // 5 seconds passed, assume the owning process died off and remove it
74
+	  $this->removeLock($key);
75
+	}
76 76
   }
77 77
 
78 78
   // I prefer lazy initialization since the cache isn't used every request
79 79
   // so this potentially saves a lot of overhead
80 80
   private function connect() {
81
-    if (! $this->connection = @memcache_pconnect($this->host, $this->port)) {
82
-      throw new Google_CacheException("Couldn't connect to memcache server");
83
-    }
81
+	if (! $this->connection = @memcache_pconnect($this->host, $this->port)) {
82
+	  throw new Google_CacheException("Couldn't connect to memcache server");
83
+	}
84 84
   }
85 85
 
86 86
   private function check() {
87
-    if (! $this->connection) {
88
-      $this->connect();
89
-    }
87
+	if (! $this->connection) {
88
+	  $this->connect();
89
+	}
90 90
   }
91 91
 
92 92
   /**
93 93
    * @inheritDoc
94 94
    */
95 95
   public function get($key, $expiration = false) {
96
-    $this->check();
97
-    if (($ret = @memcache_get($this->connection, $key)) === false) {
98
-      return false;
99
-    }
100
-    if (is_numeric($expiration) && (time() - $ret['time'] > $expiration)) {
101
-      $this->delete($key);
102
-      return false;
103
-    }
104
-    return $ret['data'];
96
+	$this->check();
97
+	if (($ret = @memcache_get($this->connection, $key)) === false) {
98
+	  return false;
99
+	}
100
+	if (is_numeric($expiration) && (time() - $ret['time'] > $expiration)) {
101
+	  $this->delete($key);
102
+	  return false;
103
+	}
104
+	return $ret['data'];
105 105
   }
106 106
 
107 107
   /**
@@ -111,12 +111,12 @@  discard block
 block discarded – undo
111 111
    * @throws Google_CacheException
112 112
    */
113 113
   public function set($key, $value) {
114
-    $this->check();
115
-    // we store it with the cache_time default expiration so objects will at least get cleaned eventually.
116
-    if (@memcache_set($this->connection, $key, array('time' => time(),
117
-        'data' => $value), false) == false) {
118
-      throw new Google_CacheException("Couldn't store data in cache");
119
-    }
114
+	$this->check();
115
+	// we store it with the cache_time default expiration so objects will at least get cleaned eventually.
116
+	if (@memcache_set($this->connection, $key, array('time' => time(),
117
+		'data' => $value), false) == false) {
118
+	  throw new Google_CacheException("Couldn't store data in cache");
119
+	}
120 120
   }
121 121
 
122 122
   /**
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
    * @param String $key
125 125
    */
126 126
   public function delete($key) {
127
-    $this->check();
128
-    @memcache_delete($this->connection, $key);
127
+	$this->check();
128
+	@memcache_delete($this->connection, $key);
129 129
   }
130 130
 }
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 
29 29
   public function __construct() {
30 30
     global $apiConfig;
31
-    if (! function_exists('memcache_connect')) {
31
+    if (!function_exists('memcache_connect')) {
32 32
       throw new Google_CacheException("Memcache functions not available");
33 33
     }
34 34
     $this->host = $apiConfig['ioMemCacheCache_host'];
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 
41 41
   private function isLocked($key) {
42 42
     $this->check();
43
-    if ((@memcache_get($this->connection, $key . '.lock')) === false) {
43
+    if ((@memcache_get($this->connection, $key.'.lock')) === false) {
44 44
       return false;
45 45
     }
46 46
     return true;
@@ -50,13 +50,13 @@  discard block
 block discarded – undo
50 50
     $this->check();
51 51
     // the interesting thing is that this could fail if the lock was created in the meantime..
52 52
     // but we'll ignore that out of convenience
53
-    @memcache_add($this->connection, $key . '.lock', '', 0, 5);
53
+    @memcache_add($this->connection, $key.'.lock', '', 0, 5);
54 54
   }
55 55
 
56 56
   private function removeLock($key) {
57 57
     $this->check();
58 58
     // suppress all warnings, if some other process removed it that's ok too
59
-    @memcache_delete($this->connection, $key . '.lock');
59
+    @memcache_delete($this->connection, $key.'.lock');
60 60
   }
61 61
 
62 62
   private function waitForLock($key) {
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     do {
68 68
       // 250 ms is a long time to sleep, but it does stop the server from burning all resources on polling locks..
69 69
       usleep(250);
70
-      $cnt ++;
70
+      $cnt++;
71 71
     } while ($cnt <= $tries && $this->isLocked($key));
72 72
     if ($this->isLocked($key)) {
73 73
       // 5 seconds passed, assume the owning process died off and remove it
@@ -78,13 +78,13 @@  discard block
 block discarded – undo
78 78
   // I prefer lazy initialization since the cache isn't used every request
79 79
   // so this potentially saves a lot of overhead
80 80
   private function connect() {
81
-    if (! $this->connection = @memcache_pconnect($this->host, $this->port)) {
81
+    if (!$this->connection = @memcache_pconnect($this->host, $this->port)) {
82 82
       throw new Google_CacheException("Couldn't connect to memcache server");
83 83
     }
84 84
   }
85 85
 
86 86
   private function check() {
87
-    if (! $this->connection) {
87
+    if (!$this->connection) {
88 88
       $this->connect();
89 89
     }
90 90
   }
Please login to merge, or discard this patch.
geodirectory-admin/google-api-php-client/src/cache/Google_ApcCache.php 2 patches
Indentation   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -26,66 +26,66 @@  discard block
 block discarded – undo
26 26
 class Google_APCCache extends Google_Cache {
27 27
 
28 28
   public function __construct() {
29
-    if (! function_exists('apc_add')) {
30
-      throw new Google_CacheException("Apc functions not available");
31
-    }
29
+	if (! function_exists('apc_add')) {
30
+	  throw new Google_CacheException("Apc functions not available");
31
+	}
32 32
   }
33 33
 
34 34
   private function isLocked($key) {
35
-    if ((@apc_fetch($key . '.lock')) === false) {
36
-      return false;
37
-    }
38
-    return true;
35
+	if ((@apc_fetch($key . '.lock')) === false) {
36
+	  return false;
37
+	}
38
+	return true;
39 39
   }
40 40
 
41 41
   private function createLock($key) {
42
-    // the interesting thing is that this could fail if the lock was created in the meantime..
43
-    // but we'll ignore that out of convenience
44
-    @apc_add($key . '.lock', '', 5);
42
+	// the interesting thing is that this could fail if the lock was created in the meantime..
43
+	// but we'll ignore that out of convenience
44
+	@apc_add($key . '.lock', '', 5);
45 45
   }
46 46
 
47 47
   private function removeLock($key) {
48
-    // suppress all warnings, if some other process removed it that's ok too
49
-    @apc_delete($key . '.lock');
48
+	// suppress all warnings, if some other process removed it that's ok too
49
+	@apc_delete($key . '.lock');
50 50
   }
51 51
 
52 52
   private function waitForLock($key) {
53
-    // 20 x 250 = 5 seconds
54
-    $tries = 20;
55
-    $cnt = 0;
56
-    do {
57
-      // 250 ms is a long time to sleep, but it does stop the server from burning all resources on polling locks..
58
-      usleep(250);
59
-      $cnt ++;
60
-    } while ($cnt <= $tries && $this->isLocked($key));
61
-    if ($this->isLocked($key)) {
62
-      // 5 seconds passed, assume the owning process died off and remove it
63
-      $this->removeLock($key);
64
-    }
53
+	// 20 x 250 = 5 seconds
54
+	$tries = 20;
55
+	$cnt = 0;
56
+	do {
57
+	  // 250 ms is a long time to sleep, but it does stop the server from burning all resources on polling locks..
58
+	  usleep(250);
59
+	  $cnt ++;
60
+	} while ($cnt <= $tries && $this->isLocked($key));
61
+	if ($this->isLocked($key)) {
62
+	  // 5 seconds passed, assume the owning process died off and remove it
63
+	  $this->removeLock($key);
64
+	}
65 65
   }
66 66
 
67 67
    /**
68
-   * @inheritDoc
69
-   */
68
+    * @inheritDoc
69
+    */
70 70
   public function get($key, $expiration = false) {
71 71
 
72
-    if (($ret = @apc_fetch($key)) === false) {
73
-      return false;
74
-    }
75
-    if (!$expiration || (time() - $ret['time'] > $expiration)) {
76
-      $this->delete($key);
77
-      return false;
78
-    }
79
-    return unserialize($ret['data']);
72
+	if (($ret = @apc_fetch($key)) === false) {
73
+	  return false;
74
+	}
75
+	if (!$expiration || (time() - $ret['time'] > $expiration)) {
76
+	  $this->delete($key);
77
+	  return false;
78
+	}
79
+	return unserialize($ret['data']);
80 80
   }
81 81
 
82 82
   /**
83 83
    * @inheritDoc
84 84
    */
85 85
   public function set($key, $value) {
86
-    if (@apc_store($key, array('time' => time(), 'data' => serialize($value))) == false) {
87
-      throw new Google_CacheException("Couldn't store data");
88
-    }
86
+	if (@apc_store($key, array('time' => time(), 'data' => serialize($value))) == false) {
87
+	  throw new Google_CacheException("Couldn't store data");
88
+	}
89 89
   }
90 90
 
91 91
   /**
@@ -93,6 +93,6 @@  discard block
 block discarded – undo
93 93
    * @param String $key
94 94
    */
95 95
   public function delete($key) {
96
-    @apc_delete($key);
96
+	@apc_delete($key);
97 97
   }
98 98
 }
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -26,13 +26,13 @@  discard block
 block discarded – undo
26 26
 class Google_APCCache extends Google_Cache {
27 27
 
28 28
   public function __construct() {
29
-    if (! function_exists('apc_add')) {
29
+    if (!function_exists('apc_add')) {
30 30
       throw new Google_CacheException("Apc functions not available");
31 31
     }
32 32
   }
33 33
 
34 34
   private function isLocked($key) {
35
-    if ((@apc_fetch($key . '.lock')) === false) {
35
+    if ((@apc_fetch($key.'.lock')) === false) {
36 36
       return false;
37 37
     }
38 38
     return true;
@@ -41,12 +41,12 @@  discard block
 block discarded – undo
41 41
   private function createLock($key) {
42 42
     // the interesting thing is that this could fail if the lock was created in the meantime..
43 43
     // but we'll ignore that out of convenience
44
-    @apc_add($key . '.lock', '', 5);
44
+    @apc_add($key.'.lock', '', 5);
45 45
   }
46 46
 
47 47
   private function removeLock($key) {
48 48
     // suppress all warnings, if some other process removed it that's ok too
49
-    @apc_delete($key . '.lock');
49
+    @apc_delete($key.'.lock');
50 50
   }
51 51
 
52 52
   private function waitForLock($key) {
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     do {
57 57
       // 250 ms is a long time to sleep, but it does stop the server from burning all resources on polling locks..
58 58
       usleep(250);
59
-      $cnt ++;
59
+      $cnt++;
60 60
     } while ($cnt <= $tries && $this->isLocked($key));
61 61
     if ($this->isLocked($key)) {
62 62
       // 5 seconds passed, assume the owning process died off and remove it
Please login to merge, or discard this patch.
geodirectory-admin/google-api-php-client/src/config.php 2 patches
Indentation   +53 added lines, -53 removed lines patch added patch discarded remove patch
@@ -17,65 +17,65 @@
 block discarded – undo
17 17
 
18 18
 global $apiConfig;
19 19
 $apiConfig = array(
20
-    // True if objects should be returned by the service classes.
21
-    // False if associative arrays should be returned (default behavior).
22
-    'use_objects' => false,
20
+	// True if objects should be returned by the service classes.
21
+	// False if associative arrays should be returned (default behavior).
22
+	'use_objects' => false,
23 23
   
24
-    // The application_name is included in the User-Agent HTTP header.
25
-    'application_name' => '',
24
+	// The application_name is included in the User-Agent HTTP header.
25
+	'application_name' => '',
26 26
 
27
-    // OAuth2 Settings, you can get these keys at https://code.google.com/apis/console
28
-    'oauth2_client_id' => '',
29
-    'oauth2_client_secret' => '',
30
-    'oauth2_redirect_uri' => '',
27
+	// OAuth2 Settings, you can get these keys at https://code.google.com/apis/console
28
+	'oauth2_client_id' => '',
29
+	'oauth2_client_secret' => '',
30
+	'oauth2_redirect_uri' => '',
31 31
 
32
-    // The developer key, you get this at https://code.google.com/apis/console
33
-    'developer_key' => '',
32
+	// The developer key, you get this at https://code.google.com/apis/console
33
+	'developer_key' => '',
34 34
   
35
-    // Site name to show in the Google's OAuth 1 authentication screen.
36
-    'site_name' => 'www.example.org',
35
+	// Site name to show in the Google's OAuth 1 authentication screen.
36
+	'site_name' => 'www.example.org',
37 37
 
38
-    // Which Authentication, Storage and HTTP IO classes to use.
39
-    'authClass'    => 'Google_OAuth2',
40
-    'ioClass'      => 'Google_CurlIO',
41
-    'cacheClass'   => 'Google_FileCache',
38
+	// Which Authentication, Storage and HTTP IO classes to use.
39
+	'authClass'    => 'Google_OAuth2',
40
+	'ioClass'      => 'Google_CurlIO',
41
+	'cacheClass'   => 'Google_FileCache',
42 42
 
43
-    // Don't change these unless you're working against a special development or testing environment.
44
-    'basePath' => 'https://www.googleapis.com',
43
+	// Don't change these unless you're working against a special development or testing environment.
44
+	'basePath' => 'https://www.googleapis.com',
45 45
 
46
-    // IO Class dependent configuration, you only have to configure the values
47
-    // for the class that was configured as the ioClass above
48
-    'ioFileCache_directory'  =>
49
-        (function_exists('sys_get_temp_dir') ?
50
-            sys_get_temp_dir() . '/Google_Client' :
51
-        '/tmp/Google_Client'),
46
+	// IO Class dependent configuration, you only have to configure the values
47
+	// for the class that was configured as the ioClass above
48
+	'ioFileCache_directory'  =>
49
+		(function_exists('sys_get_temp_dir') ?
50
+			sys_get_temp_dir() . '/Google_Client' :
51
+		'/tmp/Google_Client'),
52 52
 
53
-    // Definition of service specific values like scopes, oauth token URLs, etc
54
-    'services' => array(
55
-      'analytics' => array('scope' => 'https://www.googleapis.com/auth/analytics.readonly'),
56
-      'calendar' => array(
57
-          'scope' => array(
58
-              "https://www.googleapis.com/auth/calendar",
59
-              "https://www.googleapis.com/auth/calendar.readonly",
60
-          )
61
-      ),
62
-      'books' => array('scope' => 'https://www.googleapis.com/auth/books'),
63
-      'latitude' => array(
64
-          'scope' => array(
65
-              'https://www.googleapis.com/auth/latitude.all.best',
66
-              'https://www.googleapis.com/auth/latitude.all.city',
67
-          )
68
-      ),
69
-      'moderator' => array('scope' => 'https://www.googleapis.com/auth/moderator'),
70
-      'oauth2' => array(
71
-          'scope' => array(
72
-              'https://www.googleapis.com/auth/userinfo.profile',
73
-              'https://www.googleapis.com/auth/userinfo.email',
74
-          )
75
-      ),
76
-      'plus' => array('scope' => 'https://www.googleapis.com/auth/plus.login'),
77
-      'siteVerification' => array('scope' => 'https://www.googleapis.com/auth/siteverification'),
78
-      'tasks' => array('scope' => 'https://www.googleapis.com/auth/tasks'),
79
-      'urlshortener' => array('scope' => 'https://www.googleapis.com/auth/urlshortener')
80
-    )
53
+	// Definition of service specific values like scopes, oauth token URLs, etc
54
+	'services' => array(
55
+	  'analytics' => array('scope' => 'https://www.googleapis.com/auth/analytics.readonly'),
56
+	  'calendar' => array(
57
+		  'scope' => array(
58
+			  "https://www.googleapis.com/auth/calendar",
59
+			  "https://www.googleapis.com/auth/calendar.readonly",
60
+		  )
61
+	  ),
62
+	  'books' => array('scope' => 'https://www.googleapis.com/auth/books'),
63
+	  'latitude' => array(
64
+		  'scope' => array(
65
+			  'https://www.googleapis.com/auth/latitude.all.best',
66
+			  'https://www.googleapis.com/auth/latitude.all.city',
67
+		  )
68
+	  ),
69
+	  'moderator' => array('scope' => 'https://www.googleapis.com/auth/moderator'),
70
+	  'oauth2' => array(
71
+		  'scope' => array(
72
+			  'https://www.googleapis.com/auth/userinfo.profile',
73
+			  'https://www.googleapis.com/auth/userinfo.email',
74
+		  )
75
+	  ),
76
+	  'plus' => array('scope' => 'https://www.googleapis.com/auth/plus.login'),
77
+	  'siteVerification' => array('scope' => 'https://www.googleapis.com/auth/siteverification'),
78
+	  'tasks' => array('scope' => 'https://www.googleapis.com/auth/tasks'),
79
+	  'urlshortener' => array('scope' => 'https://www.googleapis.com/auth/urlshortener')
80
+	)
81 81
 );
Please login to merge, or discard this patch.
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,8 +47,7 @@
 block discarded – undo
47 47
     // for the class that was configured as the ioClass above
48 48
     'ioFileCache_directory'  =>
49 49
         (function_exists('sys_get_temp_dir') ?
50
-            sys_get_temp_dir() . '/Google_Client' :
51
-        '/tmp/Google_Client'),
50
+            sys_get_temp_dir().'/Google_Client' : '/tmp/Google_Client'),
52 51
 
53 52
     // Definition of service specific values like scopes, oauth token URLs, etc
54 53
     'services' => array(
Please login to merge, or discard this patch.
geodirectory-admin/google-api-php-client/src/local_config.php 2 patches
Indentation   +53 added lines, -53 removed lines patch added patch discarded remove patch
@@ -17,65 +17,65 @@
 block discarded – undo
17 17
 
18 18
 global $apiConfig;
19 19
 $apiConfig = array(
20
-    // True if objects should be returned by the service classes.
21
-    // False if associative arrays should be returned (default behavior).
22
-    'use_objects' => false,
20
+	// True if objects should be returned by the service classes.
21
+	// False if associative arrays should be returned (default behavior).
22
+	'use_objects' => false,
23 23
   
24
-    // The application_name is included in the User-Agent HTTP header.
25
-    'application_name' => '',
24
+	// The application_name is included in the User-Agent HTTP header.
25
+	'application_name' => '',
26 26
 
27
-    // OAuth2 Settings, you can get these keys at https://code.google.com/apis/console
28
-    //'oauth2_client_id' => '',
29
-    //'oauth2_client_secret' => '',
30
-    //'oauth2_redirect_uri' => '',
27
+	// OAuth2 Settings, you can get these keys at https://code.google.com/apis/console
28
+	//'oauth2_client_id' => '',
29
+	//'oauth2_client_secret' => '',
30
+	//'oauth2_redirect_uri' => '',
31 31
 
32
-    // The developer key, you get this at https://code.google.com/apis/console
33
-    'developer_key' => '',
32
+	// The developer key, you get this at https://code.google.com/apis/console
33
+	'developer_key' => '',
34 34
   
35
-    // Site name to show in the Google's OAuth 1 authentication screen.
36
-    'site_name' => 'www.example.org',
35
+	// Site name to show in the Google's OAuth 1 authentication screen.
36
+	'site_name' => 'www.example.org',
37 37
 
38
-    // Which Authentication, Storage and HTTP IO classes to use.
39
-    'authClass'    => 'Google_OAuth2',
40
-    'ioClass'      => 'Google_CurlIO',
41
-    'cacheClass'   => 'Google_FileCache',
38
+	// Which Authentication, Storage and HTTP IO classes to use.
39
+	'authClass'    => 'Google_OAuth2',
40
+	'ioClass'      => 'Google_CurlIO',
41
+	'cacheClass'   => 'Google_FileCache',
42 42
 
43
-    // Don't change these unless you're working against a special development or testing environment.
44
-    'basePath' => 'https://www.googleapis.com',
43
+	// Don't change these unless you're working against a special development or testing environment.
44
+	'basePath' => 'https://www.googleapis.com',
45 45
 
46
-    // IO Class dependent configuration, you only have to configure the values
47
-    // for the class that was configured as the ioClass above
48
-    'ioFileCache_directory'  =>
49
-        (function_exists('get_temp_dir') ?
50
-            get_temp_dir()  . '/Google_Client' :
51
-        '/tmp/Google_Client'),
46
+	// IO Class dependent configuration, you only have to configure the values
47
+	// for the class that was configured as the ioClass above
48
+	'ioFileCache_directory'  =>
49
+		(function_exists('get_temp_dir') ?
50
+			get_temp_dir()  . '/Google_Client' :
51
+		'/tmp/Google_Client'),
52 52
 
53
-    // Definition of service specific values like scopes, oauth token URLs, etc
54
-    'services' => array(
55
-      'analytics' => array('scope' => 'https://www.googleapis.com/auth/analytics.readonly'),
56
-      'calendar' => array(
57
-          'scope' => array(
58
-              "https://www.googleapis.com/auth/calendar",
59
-              "https://www.googleapis.com/auth/calendar.readonly",
60
-          )
61
-      ),
62
-      'books' => array('scope' => 'https://www.googleapis.com/auth/books'),
63
-      'latitude' => array(
64
-          'scope' => array(
65
-              'https://www.googleapis.com/auth/latitude.all.best',
66
-              'https://www.googleapis.com/auth/latitude.all.city',
67
-          )
68
-      ),
69
-      'moderator' => array('scope' => 'https://www.googleapis.com/auth/moderator'),
70
-      'oauth2' => array(
71
-          'scope' => array(
72
-              'https://www.googleapis.com/auth/userinfo.profile',
73
-              'https://www.googleapis.com/auth/userinfo.email',
74
-          )
75
-      ),
76
-      'plus' => array('scope' => 'https://www.googleapis.com/auth/plus.me'),
77
-      'siteVerification' => array('scope' => 'https://www.googleapis.com/auth/siteverification'),
78
-      'tasks' => array('scope' => 'https://www.googleapis.com/auth/tasks'),
79
-      'urlshortener' => array('scope' => 'https://www.googleapis.com/auth/urlshortener')
80
-    )
53
+	// Definition of service specific values like scopes, oauth token URLs, etc
54
+	'services' => array(
55
+	  'analytics' => array('scope' => 'https://www.googleapis.com/auth/analytics.readonly'),
56
+	  'calendar' => array(
57
+		  'scope' => array(
58
+			  "https://www.googleapis.com/auth/calendar",
59
+			  "https://www.googleapis.com/auth/calendar.readonly",
60
+		  )
61
+	  ),
62
+	  'books' => array('scope' => 'https://www.googleapis.com/auth/books'),
63
+	  'latitude' => array(
64
+		  'scope' => array(
65
+			  'https://www.googleapis.com/auth/latitude.all.best',
66
+			  'https://www.googleapis.com/auth/latitude.all.city',
67
+		  )
68
+	  ),
69
+	  'moderator' => array('scope' => 'https://www.googleapis.com/auth/moderator'),
70
+	  'oauth2' => array(
71
+		  'scope' => array(
72
+			  'https://www.googleapis.com/auth/userinfo.profile',
73
+			  'https://www.googleapis.com/auth/userinfo.email',
74
+		  )
75
+	  ),
76
+	  'plus' => array('scope' => 'https://www.googleapis.com/auth/plus.me'),
77
+	  'siteVerification' => array('scope' => 'https://www.googleapis.com/auth/siteverification'),
78
+	  'tasks' => array('scope' => 'https://www.googleapis.com/auth/tasks'),
79
+	  'urlshortener' => array('scope' => 'https://www.googleapis.com/auth/urlshortener')
80
+	)
81 81
 );
82 82
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,8 +47,7 @@
 block discarded – undo
47 47
     // for the class that was configured as the ioClass above
48 48
     'ioFileCache_directory'  =>
49 49
         (function_exists('get_temp_dir') ?
50
-            get_temp_dir()  . '/Google_Client' :
51
-        '/tmp/Google_Client'),
50
+            get_temp_dir().'/Google_Client' : '/tmp/Google_Client'),
52 51
 
53 52
     // Definition of service specific values like scopes, oauth token URLs, etc
54 53
     'services' => array(
Please login to merge, or discard this patch.
geodirectory-admin/google-api-php-client/src/auth/Google_OAuth2.php 2 patches
Indentation   +281 added lines, -281 removed lines patch added patch discarded remove patch
@@ -53,31 +53,31 @@  discard block
 block discarded – undo
53 53
    * to the discretion of the caller (which is done by calling authenticate()).
54 54
    */
55 55
   public function __construct() {
56
-    global $apiConfig;
56
+	global $apiConfig;
57 57
 
58
-    if (! empty($apiConfig['developer_key'])) {
59
-      $this->developerKey = $apiConfig['developer_key'];
60
-    }
58
+	if (! empty($apiConfig['developer_key'])) {
59
+	  $this->developerKey = $apiConfig['developer_key'];
60
+	}
61 61
 
62
-    if (! empty($apiConfig['oauth2_client_id'])) {
63
-      $this->clientId = $apiConfig['oauth2_client_id'];
64
-    }
62
+	if (! empty($apiConfig['oauth2_client_id'])) {
63
+	  $this->clientId = $apiConfig['oauth2_client_id'];
64
+	}
65 65
 
66
-    if (! empty($apiConfig['oauth2_client_secret'])) {
67
-      $this->clientSecret = $apiConfig['oauth2_client_secret'];
68
-    }
66
+	if (! empty($apiConfig['oauth2_client_secret'])) {
67
+	  $this->clientSecret = $apiConfig['oauth2_client_secret'];
68
+	}
69 69
 
70
-    if (! empty($apiConfig['oauth2_redirect_uri'])) {
71
-      $this->redirectUri = $apiConfig['oauth2_redirect_uri'];
72
-    }
70
+	if (! empty($apiConfig['oauth2_redirect_uri'])) {
71
+	  $this->redirectUri = $apiConfig['oauth2_redirect_uri'];
72
+	}
73 73
 
74
-    if (! empty($apiConfig['oauth2_access_type'])) {
75
-      $this->accessType = $apiConfig['oauth2_access_type'];
76
-    }
74
+	if (! empty($apiConfig['oauth2_access_type'])) {
75
+	  $this->accessType = $apiConfig['oauth2_access_type'];
76
+	}
77 77
 
78
-    if (! empty($apiConfig['oauth2_approval_prompt'])) {
79
-      $this->approvalPrompt = $apiConfig['oauth2_approval_prompt'];
80
-    }
78
+	if (! empty($apiConfig['oauth2_approval_prompt'])) {
79
+	  $this->approvalPrompt = $apiConfig['oauth2_approval_prompt'];
80
+	}
81 81
 
82 82
   }
83 83
 
@@ -88,37 +88,37 @@  discard block
 block discarded – undo
88 88
    * @return string
89 89
    */
90 90
   public function authenticate($service, $code = null) {
91
-    if (!$code && isset($_GET['code'])) {
92
-      $code = $_GET['code'];
93
-    }
94
-
95
-    if ($code) {
96
-      // We got here from the redirect from a successful authorization grant, fetch the access token
97
-      $request = Google_Client::$io->makeRequest(new Google_HttpRequest(self::OAUTH2_TOKEN_URI, 'POST', array(), array(
98
-          'code' => $code,
99
-          'grant_type' => 'authorization_code',
100
-          'redirect_uri' => $this->redirectUri,
101
-          'client_id' => $this->clientId,
102
-          'client_secret' => $this->clientSecret
103
-      )));
104
-
105
-      if ($request->getResponseHttpCode() == 200) {
106
-        $this->setAccessToken($request->getResponseBody());
107
-        $this->token['created'] = time();
108
-        return $this->getAccessToken();
109
-      } else {
110
-        $response = $request->getResponseBody();
111
-        $decodedResponse = json_decode($response, true);
112
-        if ($decodedResponse != null && $decodedResponse['error']) {
113
-          $response = $decodedResponse['error'];
114
-        }
115
-        throw new Google_AuthException("Error fetching OAuth2 access token, message: '$response'", $request->getResponseHttpCode());
116
-      }
117
-    }
118
-
119
-    $authUrl = $this->createAuthUrl($service['scope']);
120
-    header('Location: ' . $authUrl);
121
-    return true;
91
+	if (!$code && isset($_GET['code'])) {
92
+	  $code = $_GET['code'];
93
+	}
94
+
95
+	if ($code) {
96
+	  // We got here from the redirect from a successful authorization grant, fetch the access token
97
+	  $request = Google_Client::$io->makeRequest(new Google_HttpRequest(self::OAUTH2_TOKEN_URI, 'POST', array(), array(
98
+		  'code' => $code,
99
+		  'grant_type' => 'authorization_code',
100
+		  'redirect_uri' => $this->redirectUri,
101
+		  'client_id' => $this->clientId,
102
+		  'client_secret' => $this->clientSecret
103
+	  )));
104
+
105
+	  if ($request->getResponseHttpCode() == 200) {
106
+		$this->setAccessToken($request->getResponseBody());
107
+		$this->token['created'] = time();
108
+		return $this->getAccessToken();
109
+	  } else {
110
+		$response = $request->getResponseBody();
111
+		$decodedResponse = json_decode($response, true);
112
+		if ($decodedResponse != null && $decodedResponse['error']) {
113
+		  $response = $decodedResponse['error'];
114
+		}
115
+		throw new Google_AuthException("Error fetching OAuth2 access token, message: '$response'", $request->getResponseHttpCode());
116
+	  }
117
+	}
118
+
119
+	$authUrl = $this->createAuthUrl($service['scope']);
120
+	header('Location: ' . $authUrl);
121
+	return true;
122 122
   }
123 123
 
124 124
   /**
@@ -129,27 +129,27 @@  discard block
 block discarded – undo
129 129
    * @return string
130 130
    */
131 131
   public function createAuthUrl($scope) {
132
-    $params = array(
133
-        'response_type=code',
134
-        'redirect_uri=' . urlencode($this->redirectUri),
135
-        'client_id=' . urlencode($this->clientId),
136
-        'scope=' . urlencode($scope),
137
-        'access_type=' . urlencode($this->accessType),
138
-        'approval_prompt=' . urlencode($this->approvalPrompt),
139
-    );
140
-
141
-    // if the list of scopes contains plus.login, add request_visible_actions
142
-    // to auth URL
143
-    if(strpos($scope, 'plus.login') && count($this->requestVisibleActions) > 0) {
144
-        $params[] = 'request_visible_actions=' .
145
-            urlencode($this->requestVisibleActions);
146
-    }
147
-
148
-    if (isset($this->state)) {
149
-      $params[] = 'state=' . urlencode($this->state);
150
-    }
151
-    $params = implode('&', $params);
152
-    return self::OAUTH2_AUTH_URL . "?$params";
132
+	$params = array(
133
+		'response_type=code',
134
+		'redirect_uri=' . urlencode($this->redirectUri),
135
+		'client_id=' . urlencode($this->clientId),
136
+		'scope=' . urlencode($scope),
137
+		'access_type=' . urlencode($this->accessType),
138
+		'approval_prompt=' . urlencode($this->approvalPrompt),
139
+	);
140
+
141
+	// if the list of scopes contains plus.login, add request_visible_actions
142
+	// to auth URL
143
+	if(strpos($scope, 'plus.login') && count($this->requestVisibleActions) > 0) {
144
+		$params[] = 'request_visible_actions=' .
145
+			urlencode($this->requestVisibleActions);
146
+	}
147
+
148
+	if (isset($this->state)) {
149
+	  $params[] = 'state=' . urlencode($this->state);
150
+	}
151
+	$params = implode('&', $params);
152
+	return self::OAUTH2_AUTH_URL . "?$params";
153 153
   }
154 154
 
155 155
   /**
@@ -157,38 +157,38 @@  discard block
 block discarded – undo
157 157
    * @throws Google_AuthException
158 158
    */
159 159
   public function setAccessToken($token) {
160
-    $token = json_decode($token, true);
161
-    if ($token == null) {
162
-      throw new Google_AuthException('Could not json decode the token');
163
-    }
164
-    if (! isset($token['access_token'])) {
165
-      throw new Google_AuthException("Invalid token format");
166
-    }
167
-    $this->token = $token;
160
+	$token = json_decode($token, true);
161
+	if ($token == null) {
162
+	  throw new Google_AuthException('Could not json decode the token');
163
+	}
164
+	if (! isset($token['access_token'])) {
165
+	  throw new Google_AuthException("Invalid token format");
166
+	}
167
+	$this->token = $token;
168 168
   }
169 169
 
170 170
   public function getAccessToken() {
171
-    return json_encode($this->token);
171
+	return json_encode($this->token);
172 172
   }
173 173
 
174 174
   public function setDeveloperKey($developerKey) {
175
-    $this->developerKey = $developerKey;
175
+	$this->developerKey = $developerKey;
176 176
   }
177 177
 
178 178
   public function setState($state) {
179
-    $this->state = $state;
179
+	$this->state = $state;
180 180
   }
181 181
 
182 182
   public function setAccessType($accessType) {
183
-    $this->accessType = $accessType;
183
+	$this->accessType = $accessType;
184 184
   }
185 185
 
186 186
   public function setApprovalPrompt($approvalPrompt) {
187
-    $this->approvalPrompt = $approvalPrompt;
187
+	$this->approvalPrompt = $approvalPrompt;
188 188
   }
189 189
 
190 190
   public function setAssertionCredentials(Google_AssertionCredentials $creds) {
191
-    $this->assertionCredentials = $creds;
191
+	$this->assertionCredentials = $creds;
192 192
   }
193 193
 
194 194
   /**
@@ -198,40 +198,40 @@  discard block
 block discarded – undo
198 198
    * @throws Google_AuthException
199 199
    */
200 200
   public function sign(Google_HttpRequest $request) {
201
-    // add the developer key to the request before signing it
202
-    if ($this->developerKey) {
203
-      $requestUrl = $request->getUrl();
204
-      $requestUrl .= (strpos($request->getUrl(), '?') === false) ? '?' : '&';
205
-      $requestUrl .=  'key=' . urlencode($this->developerKey);
206
-      $request->setUrl($requestUrl);
207
-    }
208
-
209
-    // Cannot sign the request without an OAuth access token.
210
-    if (null == $this->token && null == $this->assertionCredentials) {
211
-      return $request;
212
-    }
213
-
214
-    // Check if the token is set to expire in the next 30 seconds
215
-    // (or has already expired).
216
-    if ($this->isAccessTokenExpired()) {
217
-      if ($this->assertionCredentials) {
218
-        $this->refreshTokenWithAssertion();
219
-      } else {
220
-        if (! array_key_exists('refresh_token', $this->token)) {
221
-            throw new Google_AuthException("The OAuth 2.0 access token has expired, "
222
-                . "and a refresh token is not available. Refresh tokens are not "
223
-                . "returned for responses that were auto-approved.");
224
-        }
225
-        $this->refreshToken($this->token['refresh_token']);
226
-      }
227
-    }
228
-
229
-    // Add the OAuth2 header to the request
230
-    $request->setRequestHeaders(
231
-        array('Authorization' => 'Bearer ' . $this->token['access_token'])
232
-    );
233
-
234
-    return $request;
201
+	// add the developer key to the request before signing it
202
+	if ($this->developerKey) {
203
+	  $requestUrl = $request->getUrl();
204
+	  $requestUrl .= (strpos($request->getUrl(), '?') === false) ? '?' : '&';
205
+	  $requestUrl .=  'key=' . urlencode($this->developerKey);
206
+	  $request->setUrl($requestUrl);
207
+	}
208
+
209
+	// Cannot sign the request without an OAuth access token.
210
+	if (null == $this->token && null == $this->assertionCredentials) {
211
+	  return $request;
212
+	}
213
+
214
+	// Check if the token is set to expire in the next 30 seconds
215
+	// (or has already expired).
216
+	if ($this->isAccessTokenExpired()) {
217
+	  if ($this->assertionCredentials) {
218
+		$this->refreshTokenWithAssertion();
219
+	  } else {
220
+		if (! array_key_exists('refresh_token', $this->token)) {
221
+			throw new Google_AuthException("The OAuth 2.0 access token has expired, "
222
+				. "and a refresh token is not available. Refresh tokens are not "
223
+				. "returned for responses that were auto-approved.");
224
+		}
225
+		$this->refreshToken($this->token['refresh_token']);
226
+	  }
227
+	}
228
+
229
+	// Add the OAuth2 header to the request
230
+	$request->setRequestHeaders(
231
+		array('Authorization' => 'Bearer ' . $this->token['access_token'])
232
+	);
233
+
234
+	return $request;
235 235
   }
236 236
 
237 237
   /**
@@ -240,12 +240,12 @@  discard block
 block discarded – undo
240 240
    * @return void
241 241
    */
242 242
   public function refreshToken($refreshToken) {
243
-    $this->refreshTokenRequest(array(
244
-        'client_id' => $this->clientId,
245
-        'client_secret' => $this->clientSecret,
246
-        'refresh_token' => $refreshToken,
247
-        'grant_type' => 'refresh_token'
248
-    ));
243
+	$this->refreshTokenRequest(array(
244
+		'client_id' => $this->clientId,
245
+		'client_secret' => $this->clientSecret,
246
+		'refresh_token' => $refreshToken,
247
+		'grant_type' => 'refresh_token'
248
+	));
249 249
   }
250 250
 
251 251
   /**
@@ -254,61 +254,61 @@  discard block
 block discarded – undo
254 254
    * @return void
255 255
    */
256 256
   public function refreshTokenWithAssertion($assertionCredentials = null) {
257
-    if (!$assertionCredentials) {
258
-      $assertionCredentials = $this->assertionCredentials;
259
-    }
260
-
261
-    $this->refreshTokenRequest(array(
262
-        'grant_type' => 'assertion',
263
-        'assertion_type' => $assertionCredentials->assertionType,
264
-        'assertion' => $assertionCredentials->generateAssertion(),
265
-    ));
257
+	if (!$assertionCredentials) {
258
+	  $assertionCredentials = $this->assertionCredentials;
259
+	}
260
+
261
+	$this->refreshTokenRequest(array(
262
+		'grant_type' => 'assertion',
263
+		'assertion_type' => $assertionCredentials->assertionType,
264
+		'assertion' => $assertionCredentials->generateAssertion(),
265
+	));
266 266
   }
267 267
 
268 268
   private function refreshTokenRequest($params) {
269
-    $http = new Google_HttpRequest(self::OAUTH2_TOKEN_URI, 'POST', array(), $params);
270
-    $request = Google_Client::$io->makeRequest($http);
271
-
272
-    $code = $request->getResponseHttpCode();
273
-    $body = $request->getResponseBody();
274
-    if (200 == $code) {
275
-      $token = json_decode($body, true);
276
-      if ($token == null) {
277
-        throw new Google_AuthException("Could not json decode the access token");
278
-      }
279
-
280
-      if (! isset($token['access_token']) || ! isset($token['expires_in'])) {
281
-        throw new Google_AuthException("Invalid token format");
282
-      }
283
-
284
-      $this->token['access_token'] = $token['access_token'];
285
-      $this->token['expires_in'] = $token['expires_in'];
286
-      $this->token['created'] = time();
287
-    } else {
288
-      throw new Google_AuthException("Error refreshing the OAuth2 token, message: '$body'", $code);
289
-    }
269
+	$http = new Google_HttpRequest(self::OAUTH2_TOKEN_URI, 'POST', array(), $params);
270
+	$request = Google_Client::$io->makeRequest($http);
271
+
272
+	$code = $request->getResponseHttpCode();
273
+	$body = $request->getResponseBody();
274
+	if (200 == $code) {
275
+	  $token = json_decode($body, true);
276
+	  if ($token == null) {
277
+		throw new Google_AuthException("Could not json decode the access token");
278
+	  }
279
+
280
+	  if (! isset($token['access_token']) || ! isset($token['expires_in'])) {
281
+		throw new Google_AuthException("Invalid token format");
282
+	  }
283
+
284
+	  $this->token['access_token'] = $token['access_token'];
285
+	  $this->token['expires_in'] = $token['expires_in'];
286
+	  $this->token['created'] = time();
287
+	} else {
288
+	  throw new Google_AuthException("Error refreshing the OAuth2 token, message: '$body'", $code);
289
+	}
290 290
   }
291 291
 
292
-    /**
293
-     * Revoke an OAuth2 access token or refresh token. This method will revoke the current access
294
-     * token, if a token isn't provided.
295
-     * @throws Google_AuthException
296
-     * @param string|null $token The token (access token or a refresh token) that should be revoked.
297
-     * @return boolean Returns True if the revocation was successful, otherwise False.
298
-     */
292
+	/**
293
+	 * Revoke an OAuth2 access token or refresh token. This method will revoke the current access
294
+	 * token, if a token isn't provided.
295
+	 * @throws Google_AuthException
296
+	 * @param string|null $token The token (access token or a refresh token) that should be revoked.
297
+	 * @return boolean Returns True if the revocation was successful, otherwise False.
298
+	 */
299 299
   public function revokeToken($token = null) {
300
-    if (!$token) {
301
-      $token = $this->token['access_token'];
302
-    }
303
-    $request = new Google_HttpRequest(self::OAUTH2_REVOKE_URI, 'POST', array(), "token=$token");
304
-    $response = Google_Client::$io->makeRequest($request);
305
-    $code = $response->getResponseHttpCode();
306
-    if ($code == 200) {
307
-      $this->token = null;
308
-      return true;
309
-    }
310
-
311
-    return false;
300
+	if (!$token) {
301
+	  $token = $this->token['access_token'];
302
+	}
303
+	$request = new Google_HttpRequest(self::OAUTH2_REVOKE_URI, 'POST', array(), "token=$token");
304
+	$response = Google_Client::$io->makeRequest($request);
305
+	$code = $response->getResponseHttpCode();
306
+	if ($code == 200) {
307
+	  $this->token = null;
308
+	  return true;
309
+	}
310
+
311
+	return false;
312 312
   }
313 313
 
314 314
   /**
@@ -316,34 +316,34 @@  discard block
 block discarded – undo
316 316
    * @return bool Returns True if the access_token is expired.
317 317
    */
318 318
   public function isAccessTokenExpired() {
319
-    if (null == $this->token) {
320
-      return true;
321
-    }
319
+	if (null == $this->token) {
320
+	  return true;
321
+	}
322 322
 
323
-    // If the token is set to expire in the next 30 seconds.
324
-    $expired = ($this->token['created']
325
-        + ($this->token['expires_in'] - 30)) < time();
323
+	// If the token is set to expire in the next 30 seconds.
324
+	$expired = ($this->token['created']
325
+		+ ($this->token['expires_in'] - 30)) < time();
326 326
 
327
-    return $expired;
327
+	return $expired;
328 328
   }
329 329
 
330 330
   // Gets federated sign-on certificates to use for verifying identity tokens.
331 331
   // Returns certs as array structure, where keys are key ids, and values
332 332
   // are PEM encoded certificates.
333 333
   private function getFederatedSignOnCerts() {
334
-    // This relies on makeRequest caching certificate responses.
335
-    $request = Google_Client::$io->makeRequest(new Google_HttpRequest(
336
-        self::OAUTH2_FEDERATED_SIGNON_CERTS_URL));
337
-    if ($request->getResponseHttpCode() == 200) {
338
-      $certs = json_decode($request->getResponseBody(), true);
339
-      if ($certs) {
340
-        return $certs;
341
-      }
342
-    }
343
-    throw new Google_AuthException(
344
-        "Failed to retrieve verification certificates: '" .
345
-            $request->getResponseBody() . "'.",
346
-        $request->getResponseHttpCode());
334
+	// This relies on makeRequest caching certificate responses.
335
+	$request = Google_Client::$io->makeRequest(new Google_HttpRequest(
336
+		self::OAUTH2_FEDERATED_SIGNON_CERTS_URL));
337
+	if ($request->getResponseHttpCode() == 200) {
338
+	  $certs = json_decode($request->getResponseBody(), true);
339
+	  if ($certs) {
340
+		return $certs;
341
+	  }
342
+	}
343
+	throw new Google_AuthException(
344
+		"Failed to retrieve verification certificates: '" .
345
+			$request->getResponseBody() . "'.",
346
+		$request->getResponseHttpCode());
347 347
   }
348 348
 
349 349
   /**
@@ -357,97 +357,97 @@  discard block
 block discarded – undo
357 357
    * @return Google_LoginTicket
358 358
    */
359 359
   public function verifyIdToken($id_token = null, $audience = null) {
360
-    if (!$id_token) {
361
-      $id_token = $this->token['id_token'];
362
-    }
363
-
364
-    $certs = $this->getFederatedSignonCerts();
365
-    if (!$audience) {
366
-      $audience = $this->clientId;
367
-    }
368
-    return $this->verifySignedJwtWithCerts($id_token, $certs, $audience);
360
+	if (!$id_token) {
361
+	  $id_token = $this->token['id_token'];
362
+	}
363
+
364
+	$certs = $this->getFederatedSignonCerts();
365
+	if (!$audience) {
366
+	  $audience = $this->clientId;
367
+	}
368
+	return $this->verifySignedJwtWithCerts($id_token, $certs, $audience);
369 369
   }
370 370
 
371 371
   // Verifies the id token, returns the verified token contents.
372 372
   // Visible for testing.
373 373
   function verifySignedJwtWithCerts($jwt, $certs, $required_audience) {
374
-    $segments = explode(".", $jwt);
375
-    if (count($segments) != 3) {
376
-      throw new Google_AuthException("Wrong number of segments in token: $jwt");
377
-    }
378
-    $signed = $segments[0] . "." . $segments[1];
379
-    $signature = Google_Utils::urlSafeB64Decode($segments[2]);
380
-
381
-    // Parse envelope.
382
-    $envelope = json_decode(Google_Utils::urlSafeB64Decode($segments[0]), true);
383
-    if (!$envelope) {
384
-      throw new Google_AuthException("Can't parse token envelope: " . $segments[0]);
385
-    }
386
-
387
-    // Parse token
388
-    $json_body = Google_Utils::urlSafeB64Decode($segments[1]);
389
-    $payload = json_decode($json_body, true);
390
-    if (!$payload) {
391
-      throw new Google_AuthException("Can't parse token payload: " . $segments[1]);
392
-    }
393
-
394
-    // Check signature
395
-    $verified = false;
396
-    foreach ($certs as $keyName => $pem) {
397
-      $public_key = new Google_PemVerifier($pem);
398
-      if ($public_key->verify($signed, $signature)) {
399
-        $verified = true;
400
-        break;
401
-      }
402
-    }
403
-
404
-    if (!$verified) {
405
-      throw new Google_AuthException("Invalid token signature: $jwt");
406
-    }
407
-
408
-    // Check issued-at timestamp
409
-    $iat = 0;
410
-    if (array_key_exists("iat", $payload)) {
411
-      $iat = $payload["iat"];
412
-    }
413
-    if (!$iat) {
414
-      throw new Google_AuthException("No issue time in token: $json_body");
415
-    }
416
-    $earliest = $iat - self::CLOCK_SKEW_SECS;
417
-
418
-    // Check expiration timestamp
419
-    $now = time();
420
-    $exp = 0;
421
-    if (array_key_exists("exp", $payload)) {
422
-      $exp = $payload["exp"];
423
-    }
424
-    if (!$exp) {
425
-      throw new Google_AuthException("No expiration time in token: $json_body");
426
-    }
427
-    if ($exp >= $now + self::MAX_TOKEN_LIFETIME_SECS) {
428
-      throw new Google_AuthException(
429
-          "Expiration time too far in future: $json_body");
430
-    }
431
-
432
-    $latest = $exp + self::CLOCK_SKEW_SECS;
433
-    if ($now < $earliest) {
434
-      throw new Google_AuthException(
435
-          "Token used too early, $now < $earliest: $json_body");
436
-    }
437
-    if ($now > $latest) {
438
-      throw new Google_AuthException(
439
-          "Token used too late, $now > $latest: $json_body");
440
-    }
441
-
442
-    // TODO(beaton): check issuer field?
443
-
444
-    // Check audience
445
-    $aud = $payload["aud"];
446
-    if ($aud != $required_audience) {
447
-      throw new Google_AuthException("Wrong recipient, $aud != $required_audience: $json_body");
448
-    }
449
-
450
-    // All good.
451
-    return new Google_LoginTicket($envelope, $payload);
374
+	$segments = explode(".", $jwt);
375
+	if (count($segments) != 3) {
376
+	  throw new Google_AuthException("Wrong number of segments in token: $jwt");
377
+	}
378
+	$signed = $segments[0] . "." . $segments[1];
379
+	$signature = Google_Utils::urlSafeB64Decode($segments[2]);
380
+
381
+	// Parse envelope.
382
+	$envelope = json_decode(Google_Utils::urlSafeB64Decode($segments[0]), true);
383
+	if (!$envelope) {
384
+	  throw new Google_AuthException("Can't parse token envelope: " . $segments[0]);
385
+	}
386
+
387
+	// Parse token
388
+	$json_body = Google_Utils::urlSafeB64Decode($segments[1]);
389
+	$payload = json_decode($json_body, true);
390
+	if (!$payload) {
391
+	  throw new Google_AuthException("Can't parse token payload: " . $segments[1]);
392
+	}
393
+
394
+	// Check signature
395
+	$verified = false;
396
+	foreach ($certs as $keyName => $pem) {
397
+	  $public_key = new Google_PemVerifier($pem);
398
+	  if ($public_key->verify($signed, $signature)) {
399
+		$verified = true;
400
+		break;
401
+	  }
402
+	}
403
+
404
+	if (!$verified) {
405
+	  throw new Google_AuthException("Invalid token signature: $jwt");
406
+	}
407
+
408
+	// Check issued-at timestamp
409
+	$iat = 0;
410
+	if (array_key_exists("iat", $payload)) {
411
+	  $iat = $payload["iat"];
412
+	}
413
+	if (!$iat) {
414
+	  throw new Google_AuthException("No issue time in token: $json_body");
415
+	}
416
+	$earliest = $iat - self::CLOCK_SKEW_SECS;
417
+
418
+	// Check expiration timestamp
419
+	$now = time();
420
+	$exp = 0;
421
+	if (array_key_exists("exp", $payload)) {
422
+	  $exp = $payload["exp"];
423
+	}
424
+	if (!$exp) {
425
+	  throw new Google_AuthException("No expiration time in token: $json_body");
426
+	}
427
+	if ($exp >= $now + self::MAX_TOKEN_LIFETIME_SECS) {
428
+	  throw new Google_AuthException(
429
+		  "Expiration time too far in future: $json_body");
430
+	}
431
+
432
+	$latest = $exp + self::CLOCK_SKEW_SECS;
433
+	if ($now < $earliest) {
434
+	  throw new Google_AuthException(
435
+		  "Token used too early, $now < $earliest: $json_body");
436
+	}
437
+	if ($now > $latest) {
438
+	  throw new Google_AuthException(
439
+		  "Token used too late, $now > $latest: $json_body");
440
+	}
441
+
442
+	// TODO(beaton): check issuer field?
443
+
444
+	// Check audience
445
+	$aud = $payload["aud"];
446
+	if ($aud != $required_audience) {
447
+	  throw new Google_AuthException("Wrong recipient, $aud != $required_audience: $json_body");
448
+	}
449
+
450
+	// All good.
451
+	return new Google_LoginTicket($envelope, $payload);
452 452
   }
453 453
 }
Please login to merge, or discard this patch.
Spacing   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 
18 18
 require_once "Google_Verifier.php";
19 19
 require_once "Google_LoginTicket.php";
20
-require_once GA_API_Path. "service/Google_Utils.php";
20
+require_once GA_API_Path."service/Google_Utils.php";
21 21
 
22 22
 /**
23 23
  * Authentication class that deals with the OAuth 2 web-server authentication flow
@@ -55,27 +55,27 @@  discard block
 block discarded – undo
55 55
   public function __construct() {
56 56
     global $apiConfig;
57 57
 
58
-    if (! empty($apiConfig['developer_key'])) {
58
+    if (!empty($apiConfig['developer_key'])) {
59 59
       $this->developerKey = $apiConfig['developer_key'];
60 60
     }
61 61
 
62
-    if (! empty($apiConfig['oauth2_client_id'])) {
62
+    if (!empty($apiConfig['oauth2_client_id'])) {
63 63
       $this->clientId = $apiConfig['oauth2_client_id'];
64 64
     }
65 65
 
66
-    if (! empty($apiConfig['oauth2_client_secret'])) {
66
+    if (!empty($apiConfig['oauth2_client_secret'])) {
67 67
       $this->clientSecret = $apiConfig['oauth2_client_secret'];
68 68
     }
69 69
 
70
-    if (! empty($apiConfig['oauth2_redirect_uri'])) {
70
+    if (!empty($apiConfig['oauth2_redirect_uri'])) {
71 71
       $this->redirectUri = $apiConfig['oauth2_redirect_uri'];
72 72
     }
73 73
 
74
-    if (! empty($apiConfig['oauth2_access_type'])) {
74
+    if (!empty($apiConfig['oauth2_access_type'])) {
75 75
       $this->accessType = $apiConfig['oauth2_access_type'];
76 76
     }
77 77
 
78
-    if (! empty($apiConfig['oauth2_approval_prompt'])) {
78
+    if (!empty($apiConfig['oauth2_approval_prompt'])) {
79 79
       $this->approvalPrompt = $apiConfig['oauth2_approval_prompt'];
80 80
     }
81 81
 
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
     }
118 118
 
119 119
     $authUrl = $this->createAuthUrl($service['scope']);
120
-    header('Location: ' . $authUrl);
120
+    header('Location: '.$authUrl);
121 121
     return true;
122 122
   }
123 123
 
@@ -131,25 +131,25 @@  discard block
 block discarded – undo
131 131
   public function createAuthUrl($scope) {
132 132
     $params = array(
133 133
         'response_type=code',
134
-        'redirect_uri=' . urlencode($this->redirectUri),
135
-        'client_id=' . urlencode($this->clientId),
136
-        'scope=' . urlencode($scope),
137
-        'access_type=' . urlencode($this->accessType),
138
-        'approval_prompt=' . urlencode($this->approvalPrompt),
134
+        'redirect_uri='.urlencode($this->redirectUri),
135
+        'client_id='.urlencode($this->clientId),
136
+        'scope='.urlencode($scope),
137
+        'access_type='.urlencode($this->accessType),
138
+        'approval_prompt='.urlencode($this->approvalPrompt),
139 139
     );
140 140
 
141 141
     // if the list of scopes contains plus.login, add request_visible_actions
142 142
     // to auth URL
143
-    if(strpos($scope, 'plus.login') && count($this->requestVisibleActions) > 0) {
144
-        $params[] = 'request_visible_actions=' .
143
+    if (strpos($scope, 'plus.login') && count($this->requestVisibleActions) > 0) {
144
+        $params[] = 'request_visible_actions='.
145 145
             urlencode($this->requestVisibleActions);
146 146
     }
147 147
 
148 148
     if (isset($this->state)) {
149
-      $params[] = 'state=' . urlencode($this->state);
149
+      $params[] = 'state='.urlencode($this->state);
150 150
     }
151 151
     $params = implode('&', $params);
152
-    return self::OAUTH2_AUTH_URL . "?$params";
152
+    return self::OAUTH2_AUTH_URL."?$params";
153 153
   }
154 154
 
155 155
   /**
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
     if ($token == null) {
162 162
       throw new Google_AuthException('Could not json decode the token');
163 163
     }
164
-    if (! isset($token['access_token'])) {
164
+    if (!isset($token['access_token'])) {
165 165
       throw new Google_AuthException("Invalid token format");
166 166
     }
167 167
     $this->token = $token;
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
     if ($this->developerKey) {
203 203
       $requestUrl = $request->getUrl();
204 204
       $requestUrl .= (strpos($request->getUrl(), '?') === false) ? '?' : '&';
205
-      $requestUrl .=  'key=' . urlencode($this->developerKey);
205
+      $requestUrl .= 'key='.urlencode($this->developerKey);
206 206
       $request->setUrl($requestUrl);
207 207
     }
208 208
 
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
       if ($this->assertionCredentials) {
218 218
         $this->refreshTokenWithAssertion();
219 219
       } else {
220
-        if (! array_key_exists('refresh_token', $this->token)) {
220
+        if (!array_key_exists('refresh_token', $this->token)) {
221 221
             throw new Google_AuthException("The OAuth 2.0 access token has expired, "
222 222
                 . "and a refresh token is not available. Refresh tokens are not "
223 223
                 . "returned for responses that were auto-approved.");
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
 
229 229
     // Add the OAuth2 header to the request
230 230
     $request->setRequestHeaders(
231
-        array('Authorization' => 'Bearer ' . $this->token['access_token'])
231
+        array('Authorization' => 'Bearer '.$this->token['access_token'])
232 232
     );
233 233
 
234 234
     return $request;
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
         throw new Google_AuthException("Could not json decode the access token");
278 278
       }
279 279
 
280
-      if (! isset($token['access_token']) || ! isset($token['expires_in'])) {
280
+      if (!isset($token['access_token']) || !isset($token['expires_in'])) {
281 281
         throw new Google_AuthException("Invalid token format");
282 282
       }
283 283
 
@@ -341,8 +341,8 @@  discard block
 block discarded – undo
341 341
       }
342 342
     }
343 343
     throw new Google_AuthException(
344
-        "Failed to retrieve verification certificates: '" .
345
-            $request->getResponseBody() . "'.",
344
+        "Failed to retrieve verification certificates: '".
345
+            $request->getResponseBody()."'.",
346 346
         $request->getResponseHttpCode());
347 347
   }
348 348
 
@@ -375,20 +375,20 @@  discard block
 block discarded – undo
375 375
     if (count($segments) != 3) {
376 376
       throw new Google_AuthException("Wrong number of segments in token: $jwt");
377 377
     }
378
-    $signed = $segments[0] . "." . $segments[1];
378
+    $signed = $segments[0].".".$segments[1];
379 379
     $signature = Google_Utils::urlSafeB64Decode($segments[2]);
380 380
 
381 381
     // Parse envelope.
382 382
     $envelope = json_decode(Google_Utils::urlSafeB64Decode($segments[0]), true);
383 383
     if (!$envelope) {
384
-      throw new Google_AuthException("Can't parse token envelope: " . $segments[0]);
384
+      throw new Google_AuthException("Can't parse token envelope: ".$segments[0]);
385 385
     }
386 386
 
387 387
     // Parse token
388 388
     $json_body = Google_Utils::urlSafeB64Decode($segments[1]);
389 389
     $payload = json_decode($json_body, true);
390 390
     if (!$payload) {
391
-      throw new Google_AuthException("Can't parse token payload: " . $segments[1]);
391
+      throw new Google_AuthException("Can't parse token payload: ".$segments[1]);
392 392
     }
393 393
 
394 394
     // Check signature
Please login to merge, or discard this patch.