Test Setup Failed
Push — master ( 2261e5...599f56 )
by Stiofan
02:03
created
google-api-php-client/src/Google/Service/CloudUserAccounts.php 2 patches
Indentation   +588 added lines, -588 removed lines patch added patch discarded remove patch
@@ -32,19 +32,19 @@  discard block
 block discarded – undo
32 32
 {
33 33
   /** View and manage your data across Google Cloud Platform services. */
34 34
   const CLOUD_PLATFORM =
35
-      "https://www.googleapis.com/auth/cloud-platform";
35
+	  "https://www.googleapis.com/auth/cloud-platform";
36 36
   /** Manage your Google Cloud User Accounts. */
37 37
   const CLOUD_USERACCOUNTS =
38
-      "https://www.googleapis.com/auth/cloud.useraccounts";
38
+	  "https://www.googleapis.com/auth/cloud.useraccounts";
39 39
   /** View your Google Cloud User Accounts. */
40 40
   const CLOUD_USERACCOUNTS_READONLY =
41
-      "https://www.googleapis.com/auth/cloud.useraccounts.readonly";
41
+	  "https://www.googleapis.com/auth/cloud.useraccounts.readonly";
42 42
   /** Manage your Google Compute Accounts. */
43 43
   const COMPUTEACCOUNTS =
44
-      "https://www.googleapis.com/auth/computeaccounts";
44
+	  "https://www.googleapis.com/auth/computeaccounts";
45 45
   /** View your Google Compute Accounts. */
46 46
   const COMPUTEACCOUNTS_READONLY =
47
-      "https://www.googleapis.com/auth/computeaccounts.readonly";
47
+	  "https://www.googleapis.com/auth/computeaccounts.readonly";
48 48
 
49 49
   public $globalAccountsOperations;
50 50
   public $groups;
@@ -59,370 +59,370 @@  discard block
 block discarded – undo
59 59
    */
60 60
   public function __construct(Google_Client $client)
61 61
   {
62
-    parent::__construct($client);
63
-    $this->rootUrl = 'https://www.googleapis.com/';
64
-    $this->servicePath = 'clouduseraccounts/vm_alpha/projects/';
65
-    $this->version = 'vm_alpha';
66
-    $this->serviceName = 'clouduseraccounts';
67
-
68
-    $this->globalAccountsOperations = new Google_Service_CloudUserAccounts_GlobalAccountsOperations_Resource(
69
-        $this,
70
-        $this->serviceName,
71
-        'globalAccountsOperations',
72
-        array(
73
-          'methods' => array(
74
-            'delete' => array(
75
-              'path' => '{project}/global/operations/{operation}',
76
-              'httpMethod' => 'DELETE',
77
-              'parameters' => array(
78
-                'project' => array(
79
-                  'location' => 'path',
80
-                  'type' => 'string',
81
-                  'required' => true,
82
-                ),
83
-                'operation' => array(
84
-                  'location' => 'path',
85
-                  'type' => 'string',
86
-                  'required' => true,
87
-                ),
88
-              ),
89
-            ),'get' => array(
90
-              'path' => '{project}/global/operations/{operation}',
91
-              'httpMethod' => 'GET',
92
-              'parameters' => array(
93
-                'project' => array(
94
-                  'location' => 'path',
95
-                  'type' => 'string',
96
-                  'required' => true,
97
-                ),
98
-                'operation' => array(
99
-                  'location' => 'path',
100
-                  'type' => 'string',
101
-                  'required' => true,
102
-                ),
103
-              ),
104
-            ),'list' => array(
105
-              'path' => '{project}/global/operations',
106
-              'httpMethod' => 'GET',
107
-              'parameters' => array(
108
-                'project' => array(
109
-                  'location' => 'path',
110
-                  'type' => 'string',
111
-                  'required' => true,
112
-                ),
113
-                'filter' => array(
114
-                  'location' => 'query',
115
-                  'type' => 'string',
116
-                ),
117
-                'orderBy' => array(
118
-                  'location' => 'query',
119
-                  'type' => 'string',
120
-                ),
121
-                'maxResults' => array(
122
-                  'location' => 'query',
123
-                  'type' => 'integer',
124
-                ),
125
-                'pageToken' => array(
126
-                  'location' => 'query',
127
-                  'type' => 'string',
128
-                ),
129
-              ),
130
-            ),
131
-          )
132
-        )
133
-    );
134
-    $this->groups = new Google_Service_CloudUserAccounts_Groups_Resource(
135
-        $this,
136
-        $this->serviceName,
137
-        'groups',
138
-        array(
139
-          'methods' => array(
140
-            'addMember' => array(
141
-              'path' => '{project}/global/groups/{groupName}/addMember',
142
-              'httpMethod' => 'POST',
143
-              'parameters' => array(
144
-                'project' => array(
145
-                  'location' => 'path',
146
-                  'type' => 'string',
147
-                  'required' => true,
148
-                ),
149
-                'groupName' => array(
150
-                  'location' => 'path',
151
-                  'type' => 'string',
152
-                  'required' => true,
153
-                ),
154
-              ),
155
-            ),'delete' => array(
156
-              'path' => '{project}/global/groups/{groupName}',
157
-              'httpMethod' => 'DELETE',
158
-              'parameters' => array(
159
-                'project' => array(
160
-                  'location' => 'path',
161
-                  'type' => 'string',
162
-                  'required' => true,
163
-                ),
164
-                'groupName' => array(
165
-                  'location' => 'path',
166
-                  'type' => 'string',
167
-                  'required' => true,
168
-                ),
169
-              ),
170
-            ),'get' => array(
171
-              'path' => '{project}/global/groups/{groupName}',
172
-              'httpMethod' => 'GET',
173
-              'parameters' => array(
174
-                'project' => array(
175
-                  'location' => 'path',
176
-                  'type' => 'string',
177
-                  'required' => true,
178
-                ),
179
-                'groupName' => array(
180
-                  'location' => 'path',
181
-                  'type' => 'string',
182
-                  'required' => true,
183
-                ),
184
-              ),
185
-            ),'insert' => array(
186
-              'path' => '{project}/global/groups',
187
-              'httpMethod' => 'POST',
188
-              'parameters' => array(
189
-                'project' => array(
190
-                  'location' => 'path',
191
-                  'type' => 'string',
192
-                  'required' => true,
193
-                ),
194
-              ),
195
-            ),'list' => array(
196
-              'path' => '{project}/global/groups',
197
-              'httpMethod' => 'GET',
198
-              'parameters' => array(
199
-                'project' => array(
200
-                  'location' => 'path',
201
-                  'type' => 'string',
202
-                  'required' => true,
203
-                ),
204
-                'filter' => array(
205
-                  'location' => 'query',
206
-                  'type' => 'string',
207
-                ),
208
-                'orderBy' => array(
209
-                  'location' => 'query',
210
-                  'type' => 'string',
211
-                ),
212
-                'maxResults' => array(
213
-                  'location' => 'query',
214
-                  'type' => 'integer',
215
-                ),
216
-                'pageToken' => array(
217
-                  'location' => 'query',
218
-                  'type' => 'string',
219
-                ),
220
-              ),
221
-            ),'removeMember' => array(
222
-              'path' => '{project}/global/groups/{groupName}/removeMember',
223
-              'httpMethod' => 'POST',
224
-              'parameters' => array(
225
-                'project' => array(
226
-                  'location' => 'path',
227
-                  'type' => 'string',
228
-                  'required' => true,
229
-                ),
230
-                'groupName' => array(
231
-                  'location' => 'path',
232
-                  'type' => 'string',
233
-                  'required' => true,
234
-                ),
235
-              ),
236
-            ),
237
-          )
238
-        )
239
-    );
240
-    $this->linux = new Google_Service_CloudUserAccounts_Linux_Resource(
241
-        $this,
242
-        $this->serviceName,
243
-        'linux',
244
-        array(
245
-          'methods' => array(
246
-            'getAuthorizedKeysView' => array(
247
-              'path' => '{project}/zones/{zone}/authorizedKeysView/{user}',
248
-              'httpMethod' => 'POST',
249
-              'parameters' => array(
250
-                'project' => array(
251
-                  'location' => 'path',
252
-                  'type' => 'string',
253
-                  'required' => true,
254
-                ),
255
-                'zone' => array(
256
-                  'location' => 'path',
257
-                  'type' => 'string',
258
-                  'required' => true,
259
-                ),
260
-                'user' => array(
261
-                  'location' => 'path',
262
-                  'type' => 'string',
263
-                  'required' => true,
264
-                ),
265
-                'instance' => array(
266
-                  'location' => 'query',
267
-                  'type' => 'string',
268
-                  'required' => true,
269
-                ),
270
-              ),
271
-            ),'getLinuxAccountViews' => array(
272
-              'path' => '{project}/zones/{zone}/linuxAccountViews',
273
-              'httpMethod' => 'POST',
274
-              'parameters' => array(
275
-                'project' => array(
276
-                  'location' => 'path',
277
-                  'type' => 'string',
278
-                  'required' => true,
279
-                ),
280
-                'zone' => array(
281
-                  'location' => 'path',
282
-                  'type' => 'string',
283
-                  'required' => true,
284
-                ),
285
-                'instance' => array(
286
-                  'location' => 'query',
287
-                  'type' => 'string',
288
-                  'required' => true,
289
-                ),
290
-                'orderBy' => array(
291
-                  'location' => 'query',
292
-                  'type' => 'string',
293
-                ),
294
-                'pageToken' => array(
295
-                  'location' => 'query',
296
-                  'type' => 'string',
297
-                ),
298
-                'maxResults' => array(
299
-                  'location' => 'query',
300
-                  'type' => 'integer',
301
-                ),
302
-                'filter' => array(
303
-                  'location' => 'query',
304
-                  'type' => 'string',
305
-                ),
306
-                'user' => array(
307
-                  'location' => 'query',
308
-                  'type' => 'string',
309
-                ),
310
-              ),
311
-            ),
312
-          )
313
-        )
314
-    );
315
-    $this->users = new Google_Service_CloudUserAccounts_Users_Resource(
316
-        $this,
317
-        $this->serviceName,
318
-        'users',
319
-        array(
320
-          'methods' => array(
321
-            'addPublicKey' => array(
322
-              'path' => '{project}/global/users/{user}/addPublicKey',
323
-              'httpMethod' => 'POST',
324
-              'parameters' => array(
325
-                'project' => array(
326
-                  'location' => 'path',
327
-                  'type' => 'string',
328
-                  'required' => true,
329
-                ),
330
-                'user' => array(
331
-                  'location' => 'path',
332
-                  'type' => 'string',
333
-                  'required' => true,
334
-                ),
335
-              ),
336
-            ),'delete' => array(
337
-              'path' => '{project}/global/users/{user}',
338
-              'httpMethod' => 'DELETE',
339
-              'parameters' => array(
340
-                'project' => array(
341
-                  'location' => 'path',
342
-                  'type' => 'string',
343
-                  'required' => true,
344
-                ),
345
-                'user' => array(
346
-                  'location' => 'path',
347
-                  'type' => 'string',
348
-                  'required' => true,
349
-                ),
350
-              ),
351
-            ),'get' => array(
352
-              'path' => '{project}/global/users/{user}',
353
-              'httpMethod' => 'GET',
354
-              'parameters' => array(
355
-                'project' => array(
356
-                  'location' => 'path',
357
-                  'type' => 'string',
358
-                  'required' => true,
359
-                ),
360
-                'user' => array(
361
-                  'location' => 'path',
362
-                  'type' => 'string',
363
-                  'required' => true,
364
-                ),
365
-              ),
366
-            ),'insert' => array(
367
-              'path' => '{project}/global/users',
368
-              'httpMethod' => 'POST',
369
-              'parameters' => array(
370
-                'project' => array(
371
-                  'location' => 'path',
372
-                  'type' => 'string',
373
-                  'required' => true,
374
-                ),
375
-              ),
376
-            ),'list' => array(
377
-              'path' => '{project}/global/users',
378
-              'httpMethod' => 'GET',
379
-              'parameters' => array(
380
-                'project' => array(
381
-                  'location' => 'path',
382
-                  'type' => 'string',
383
-                  'required' => true,
384
-                ),
385
-                'filter' => array(
386
-                  'location' => 'query',
387
-                  'type' => 'string',
388
-                ),
389
-                'orderBy' => array(
390
-                  'location' => 'query',
391
-                  'type' => 'string',
392
-                ),
393
-                'maxResults' => array(
394
-                  'location' => 'query',
395
-                  'type' => 'integer',
396
-                ),
397
-                'pageToken' => array(
398
-                  'location' => 'query',
399
-                  'type' => 'string',
400
-                ),
401
-              ),
402
-            ),'removePublicKey' => array(
403
-              'path' => '{project}/global/users/{user}/removePublicKey',
404
-              'httpMethod' => 'POST',
405
-              'parameters' => array(
406
-                'project' => array(
407
-                  'location' => 'path',
408
-                  'type' => 'string',
409
-                  'required' => true,
410
-                ),
411
-                'user' => array(
412
-                  'location' => 'path',
413
-                  'type' => 'string',
414
-                  'required' => true,
415
-                ),
416
-                'fingerprint' => array(
417
-                  'location' => 'query',
418
-                  'type' => 'string',
419
-                  'required' => true,
420
-                ),
421
-              ),
422
-            ),
423
-          )
424
-        )
425
-    );
62
+	parent::__construct($client);
63
+	$this->rootUrl = 'https://www.googleapis.com/';
64
+	$this->servicePath = 'clouduseraccounts/vm_alpha/projects/';
65
+	$this->version = 'vm_alpha';
66
+	$this->serviceName = 'clouduseraccounts';
67
+
68
+	$this->globalAccountsOperations = new Google_Service_CloudUserAccounts_GlobalAccountsOperations_Resource(
69
+		$this,
70
+		$this->serviceName,
71
+		'globalAccountsOperations',
72
+		array(
73
+		  'methods' => array(
74
+			'delete' => array(
75
+			  'path' => '{project}/global/operations/{operation}',
76
+			  'httpMethod' => 'DELETE',
77
+			  'parameters' => array(
78
+				'project' => array(
79
+				  'location' => 'path',
80
+				  'type' => 'string',
81
+				  'required' => true,
82
+				),
83
+				'operation' => array(
84
+				  'location' => 'path',
85
+				  'type' => 'string',
86
+				  'required' => true,
87
+				),
88
+			  ),
89
+			),'get' => array(
90
+			  'path' => '{project}/global/operations/{operation}',
91
+			  'httpMethod' => 'GET',
92
+			  'parameters' => array(
93
+				'project' => array(
94
+				  'location' => 'path',
95
+				  'type' => 'string',
96
+				  'required' => true,
97
+				),
98
+				'operation' => array(
99
+				  'location' => 'path',
100
+				  'type' => 'string',
101
+				  'required' => true,
102
+				),
103
+			  ),
104
+			),'list' => array(
105
+			  'path' => '{project}/global/operations',
106
+			  'httpMethod' => 'GET',
107
+			  'parameters' => array(
108
+				'project' => array(
109
+				  'location' => 'path',
110
+				  'type' => 'string',
111
+				  'required' => true,
112
+				),
113
+				'filter' => array(
114
+				  'location' => 'query',
115
+				  'type' => 'string',
116
+				),
117
+				'orderBy' => array(
118
+				  'location' => 'query',
119
+				  'type' => 'string',
120
+				),
121
+				'maxResults' => array(
122
+				  'location' => 'query',
123
+				  'type' => 'integer',
124
+				),
125
+				'pageToken' => array(
126
+				  'location' => 'query',
127
+				  'type' => 'string',
128
+				),
129
+			  ),
130
+			),
131
+		  )
132
+		)
133
+	);
134
+	$this->groups = new Google_Service_CloudUserAccounts_Groups_Resource(
135
+		$this,
136
+		$this->serviceName,
137
+		'groups',
138
+		array(
139
+		  'methods' => array(
140
+			'addMember' => array(
141
+			  'path' => '{project}/global/groups/{groupName}/addMember',
142
+			  'httpMethod' => 'POST',
143
+			  'parameters' => array(
144
+				'project' => array(
145
+				  'location' => 'path',
146
+				  'type' => 'string',
147
+				  'required' => true,
148
+				),
149
+				'groupName' => array(
150
+				  'location' => 'path',
151
+				  'type' => 'string',
152
+				  'required' => true,
153
+				),
154
+			  ),
155
+			),'delete' => array(
156
+			  'path' => '{project}/global/groups/{groupName}',
157
+			  'httpMethod' => 'DELETE',
158
+			  'parameters' => array(
159
+				'project' => array(
160
+				  'location' => 'path',
161
+				  'type' => 'string',
162
+				  'required' => true,
163
+				),
164
+				'groupName' => array(
165
+				  'location' => 'path',
166
+				  'type' => 'string',
167
+				  'required' => true,
168
+				),
169
+			  ),
170
+			),'get' => array(
171
+			  'path' => '{project}/global/groups/{groupName}',
172
+			  'httpMethod' => 'GET',
173
+			  'parameters' => array(
174
+				'project' => array(
175
+				  'location' => 'path',
176
+				  'type' => 'string',
177
+				  'required' => true,
178
+				),
179
+				'groupName' => array(
180
+				  'location' => 'path',
181
+				  'type' => 'string',
182
+				  'required' => true,
183
+				),
184
+			  ),
185
+			),'insert' => array(
186
+			  'path' => '{project}/global/groups',
187
+			  'httpMethod' => 'POST',
188
+			  'parameters' => array(
189
+				'project' => array(
190
+				  'location' => 'path',
191
+				  'type' => 'string',
192
+				  'required' => true,
193
+				),
194
+			  ),
195
+			),'list' => array(
196
+			  'path' => '{project}/global/groups',
197
+			  'httpMethod' => 'GET',
198
+			  'parameters' => array(
199
+				'project' => array(
200
+				  'location' => 'path',
201
+				  'type' => 'string',
202
+				  'required' => true,
203
+				),
204
+				'filter' => array(
205
+				  'location' => 'query',
206
+				  'type' => 'string',
207
+				),
208
+				'orderBy' => array(
209
+				  'location' => 'query',
210
+				  'type' => 'string',
211
+				),
212
+				'maxResults' => array(
213
+				  'location' => 'query',
214
+				  'type' => 'integer',
215
+				),
216
+				'pageToken' => array(
217
+				  'location' => 'query',
218
+				  'type' => 'string',
219
+				),
220
+			  ),
221
+			),'removeMember' => array(
222
+			  'path' => '{project}/global/groups/{groupName}/removeMember',
223
+			  'httpMethod' => 'POST',
224
+			  'parameters' => array(
225
+				'project' => array(
226
+				  'location' => 'path',
227
+				  'type' => 'string',
228
+				  'required' => true,
229
+				),
230
+				'groupName' => array(
231
+				  'location' => 'path',
232
+				  'type' => 'string',
233
+				  'required' => true,
234
+				),
235
+			  ),
236
+			),
237
+		  )
238
+		)
239
+	);
240
+	$this->linux = new Google_Service_CloudUserAccounts_Linux_Resource(
241
+		$this,
242
+		$this->serviceName,
243
+		'linux',
244
+		array(
245
+		  'methods' => array(
246
+			'getAuthorizedKeysView' => array(
247
+			  'path' => '{project}/zones/{zone}/authorizedKeysView/{user}',
248
+			  'httpMethod' => 'POST',
249
+			  'parameters' => array(
250
+				'project' => array(
251
+				  'location' => 'path',
252
+				  'type' => 'string',
253
+				  'required' => true,
254
+				),
255
+				'zone' => array(
256
+				  'location' => 'path',
257
+				  'type' => 'string',
258
+				  'required' => true,
259
+				),
260
+				'user' => array(
261
+				  'location' => 'path',
262
+				  'type' => 'string',
263
+				  'required' => true,
264
+				),
265
+				'instance' => array(
266
+				  'location' => 'query',
267
+				  'type' => 'string',
268
+				  'required' => true,
269
+				),
270
+			  ),
271
+			),'getLinuxAccountViews' => array(
272
+			  'path' => '{project}/zones/{zone}/linuxAccountViews',
273
+			  'httpMethod' => 'POST',
274
+			  'parameters' => array(
275
+				'project' => array(
276
+				  'location' => 'path',
277
+				  'type' => 'string',
278
+				  'required' => true,
279
+				),
280
+				'zone' => array(
281
+				  'location' => 'path',
282
+				  'type' => 'string',
283
+				  'required' => true,
284
+				),
285
+				'instance' => array(
286
+				  'location' => 'query',
287
+				  'type' => 'string',
288
+				  'required' => true,
289
+				),
290
+				'orderBy' => array(
291
+				  'location' => 'query',
292
+				  'type' => 'string',
293
+				),
294
+				'pageToken' => array(
295
+				  'location' => 'query',
296
+				  'type' => 'string',
297
+				),
298
+				'maxResults' => array(
299
+				  'location' => 'query',
300
+				  'type' => 'integer',
301
+				),
302
+				'filter' => array(
303
+				  'location' => 'query',
304
+				  'type' => 'string',
305
+				),
306
+				'user' => array(
307
+				  'location' => 'query',
308
+				  'type' => 'string',
309
+				),
310
+			  ),
311
+			),
312
+		  )
313
+		)
314
+	);
315
+	$this->users = new Google_Service_CloudUserAccounts_Users_Resource(
316
+		$this,
317
+		$this->serviceName,
318
+		'users',
319
+		array(
320
+		  'methods' => array(
321
+			'addPublicKey' => array(
322
+			  'path' => '{project}/global/users/{user}/addPublicKey',
323
+			  'httpMethod' => 'POST',
324
+			  'parameters' => array(
325
+				'project' => array(
326
+				  'location' => 'path',
327
+				  'type' => 'string',
328
+				  'required' => true,
329
+				),
330
+				'user' => array(
331
+				  'location' => 'path',
332
+				  'type' => 'string',
333
+				  'required' => true,
334
+				),
335
+			  ),
336
+			),'delete' => array(
337
+			  'path' => '{project}/global/users/{user}',
338
+			  'httpMethod' => 'DELETE',
339
+			  'parameters' => array(
340
+				'project' => array(
341
+				  'location' => 'path',
342
+				  'type' => 'string',
343
+				  'required' => true,
344
+				),
345
+				'user' => array(
346
+				  'location' => 'path',
347
+				  'type' => 'string',
348
+				  'required' => true,
349
+				),
350
+			  ),
351
+			),'get' => array(
352
+			  'path' => '{project}/global/users/{user}',
353
+			  'httpMethod' => 'GET',
354
+			  'parameters' => array(
355
+				'project' => array(
356
+				  'location' => 'path',
357
+				  'type' => 'string',
358
+				  'required' => true,
359
+				),
360
+				'user' => array(
361
+				  'location' => 'path',
362
+				  'type' => 'string',
363
+				  'required' => true,
364
+				),
365
+			  ),
366
+			),'insert' => array(
367
+			  'path' => '{project}/global/users',
368
+			  'httpMethod' => 'POST',
369
+			  'parameters' => array(
370
+				'project' => array(
371
+				  'location' => 'path',
372
+				  'type' => 'string',
373
+				  'required' => true,
374
+				),
375
+			  ),
376
+			),'list' => array(
377
+			  'path' => '{project}/global/users',
378
+			  'httpMethod' => 'GET',
379
+			  'parameters' => array(
380
+				'project' => array(
381
+				  'location' => 'path',
382
+				  'type' => 'string',
383
+				  'required' => true,
384
+				),
385
+				'filter' => array(
386
+				  'location' => 'query',
387
+				  'type' => 'string',
388
+				),
389
+				'orderBy' => array(
390
+				  'location' => 'query',
391
+				  'type' => 'string',
392
+				),
393
+				'maxResults' => array(
394
+				  'location' => 'query',
395
+				  'type' => 'integer',
396
+				),
397
+				'pageToken' => array(
398
+				  'location' => 'query',
399
+				  'type' => 'string',
400
+				),
401
+			  ),
402
+			),'removePublicKey' => array(
403
+			  'path' => '{project}/global/users/{user}/removePublicKey',
404
+			  'httpMethod' => 'POST',
405
+			  'parameters' => array(
406
+				'project' => array(
407
+				  'location' => 'path',
408
+				  'type' => 'string',
409
+				  'required' => true,
410
+				),
411
+				'user' => array(
412
+				  'location' => 'path',
413
+				  'type' => 'string',
414
+				  'required' => true,
415
+				),
416
+				'fingerprint' => array(
417
+				  'location' => 'query',
418
+				  'type' => 'string',
419
+				  'required' => true,
420
+				),
421
+			  ),
422
+			),
423
+		  )
424
+		)
425
+	);
426 426
   }
427 427
 }
428 428
 
@@ -447,9 +447,9 @@  discard block
 block discarded – undo
447 447
    */
448 448
   public function delete($project, $operation, $optParams = array())
449 449
   {
450
-    $params = array('project' => $project, 'operation' => $operation);
451
-    $params = array_merge($params, $optParams);
452
-    return $this->call('delete', array($params));
450
+	$params = array('project' => $project, 'operation' => $operation);
451
+	$params = array_merge($params, $optParams);
452
+	return $this->call('delete', array($params));
453 453
   }
454 454
 
455 455
   /**
@@ -462,9 +462,9 @@  discard block
 block discarded – undo
462 462
    */
463 463
   public function get($project, $operation, $optParams = array())
464 464
   {
465
-    $params = array('project' => $project, 'operation' => $operation);
466
-    $params = array_merge($params, $optParams);
467
-    return $this->call('get', array($params), "Google_Service_CloudUserAccounts_Operation");
465
+	$params = array('project' => $project, 'operation' => $operation);
466
+	$params = array_merge($params, $optParams);
467
+	return $this->call('get', array($params), "Google_Service_CloudUserAccounts_Operation");
468 468
   }
469 469
 
470 470
   /**
@@ -507,9 +507,9 @@  discard block
 block discarded – undo
507 507
    */
508 508
   public function listGlobalAccountsOperations($project, $optParams = array())
509 509
   {
510
-    $params = array('project' => $project);
511
-    $params = array_merge($params, $optParams);
512
-    return $this->call('list', array($params), "Google_Service_CloudUserAccounts_OperationList");
510
+	$params = array('project' => $project);
511
+	$params = array_merge($params, $optParams);
512
+	return $this->call('list', array($params), "Google_Service_CloudUserAccounts_OperationList");
513 513
   }
514 514
 }
515 515
 
@@ -535,9 +535,9 @@  discard block
 block discarded – undo
535 535
    */
536 536
   public function addMember($project, $groupName, Google_Service_CloudUserAccounts_GroupsAddMemberRequest $postBody, $optParams = array())
537 537
   {
538
-    $params = array('project' => $project, 'groupName' => $groupName, 'postBody' => $postBody);
539
-    $params = array_merge($params, $optParams);
540
-    return $this->call('addMember', array($params), "Google_Service_CloudUserAccounts_Operation");
538
+	$params = array('project' => $project, 'groupName' => $groupName, 'postBody' => $postBody);
539
+	$params = array_merge($params, $optParams);
540
+	return $this->call('addMember', array($params), "Google_Service_CloudUserAccounts_Operation");
541 541
   }
542 542
 
543 543
   /**
@@ -550,9 +550,9 @@  discard block
 block discarded – undo
550 550
    */
551 551
   public function delete($project, $groupName, $optParams = array())
552 552
   {
553
-    $params = array('project' => $project, 'groupName' => $groupName);
554
-    $params = array_merge($params, $optParams);
555
-    return $this->call('delete', array($params), "Google_Service_CloudUserAccounts_Operation");
553
+	$params = array('project' => $project, 'groupName' => $groupName);
554
+	$params = array_merge($params, $optParams);
555
+	return $this->call('delete', array($params), "Google_Service_CloudUserAccounts_Operation");
556 556
   }
557 557
 
558 558
   /**
@@ -565,9 +565,9 @@  discard block
 block discarded – undo
565 565
    */
566 566
   public function get($project, $groupName, $optParams = array())
567 567
   {
568
-    $params = array('project' => $project, 'groupName' => $groupName);
569
-    $params = array_merge($params, $optParams);
570
-    return $this->call('get', array($params), "Google_Service_CloudUserAccounts_Group");
568
+	$params = array('project' => $project, 'groupName' => $groupName);
569
+	$params = array_merge($params, $optParams);
570
+	return $this->call('get', array($params), "Google_Service_CloudUserAccounts_Group");
571 571
   }
572 572
 
573 573
   /**
@@ -581,9 +581,9 @@  discard block
 block discarded – undo
581 581
    */
582 582
   public function insert($project, Google_Service_CloudUserAccounts_Group $postBody, $optParams = array())
583 583
   {
584
-    $params = array('project' => $project, 'postBody' => $postBody);
585
-    $params = array_merge($params, $optParams);
586
-    return $this->call('insert', array($params), "Google_Service_CloudUserAccounts_Operation");
584
+	$params = array('project' => $project, 'postBody' => $postBody);
585
+	$params = array_merge($params, $optParams);
586
+	return $this->call('insert', array($params), "Google_Service_CloudUserAccounts_Operation");
587 587
   }
588 588
 
589 589
   /**
@@ -626,9 +626,9 @@  discard block
 block discarded – undo
626 626
    */
627 627
   public function listGroups($project, $optParams = array())
628 628
   {
629
-    $params = array('project' => $project);
630
-    $params = array_merge($params, $optParams);
631
-    return $this->call('list', array($params), "Google_Service_CloudUserAccounts_GroupList");
629
+	$params = array('project' => $project);
630
+	$params = array_merge($params, $optParams);
631
+	return $this->call('list', array($params), "Google_Service_CloudUserAccounts_GroupList");
632 632
   }
633 633
 
634 634
   /**
@@ -642,9 +642,9 @@  discard block
 block discarded – undo
642 642
    */
643 643
   public function removeMember($project, $groupName, Google_Service_CloudUserAccounts_GroupsRemoveMemberRequest $postBody, $optParams = array())
644 644
   {
645
-    $params = array('project' => $project, 'groupName' => $groupName, 'postBody' => $postBody);
646
-    $params = array_merge($params, $optParams);
647
-    return $this->call('removeMember', array($params), "Google_Service_CloudUserAccounts_Operation");
645
+	$params = array('project' => $project, 'groupName' => $groupName, 'postBody' => $postBody);
646
+	$params = array_merge($params, $optParams);
647
+	return $this->call('removeMember', array($params), "Google_Service_CloudUserAccounts_Operation");
648 648
   }
649 649
 }
650 650
 
@@ -674,9 +674,9 @@  discard block
 block discarded – undo
674 674
    */
675 675
   public function getAuthorizedKeysView($project, $zone, $user, $instance, $optParams = array())
676 676
   {
677
-    $params = array('project' => $project, 'zone' => $zone, 'user' => $user, 'instance' => $instance);
678
-    $params = array_merge($params, $optParams);
679
-    return $this->call('getAuthorizedKeysView', array($params), "Google_Service_CloudUserAccounts_LinuxGetAuthorizedKeysViewResponse");
677
+	$params = array('project' => $project, 'zone' => $zone, 'user' => $user, 'instance' => $instance);
678
+	$params = array_merge($params, $optParams);
679
+	return $this->call('getAuthorizedKeysView', array($params), "Google_Service_CloudUserAccounts_LinuxGetAuthorizedKeysViewResponse");
680 680
   }
681 681
 
682 682
   /**
@@ -724,9 +724,9 @@  discard block
 block discarded – undo
724 724
    */
725 725
   public function getLinuxAccountViews($project, $zone, $instance, $optParams = array())
726 726
   {
727
-    $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance);
728
-    $params = array_merge($params, $optParams);
729
-    return $this->call('getLinuxAccountViews', array($params), "Google_Service_CloudUserAccounts_LinuxGetLinuxAccountViewsResponse");
727
+	$params = array('project' => $project, 'zone' => $zone, 'instance' => $instance);
728
+	$params = array_merge($params, $optParams);
729
+	return $this->call('getLinuxAccountViews', array($params), "Google_Service_CloudUserAccounts_LinuxGetLinuxAccountViewsResponse");
730 730
   }
731 731
 }
732 732
 
@@ -753,9 +753,9 @@  discard block
 block discarded – undo
753 753
    */
754 754
   public function addPublicKey($project, $user, Google_Service_CloudUserAccounts_PublicKey $postBody, $optParams = array())
755 755
   {
756
-    $params = array('project' => $project, 'user' => $user, 'postBody' => $postBody);
757
-    $params = array_merge($params, $optParams);
758
-    return $this->call('addPublicKey', array($params), "Google_Service_CloudUserAccounts_Operation");
756
+	$params = array('project' => $project, 'user' => $user, 'postBody' => $postBody);
757
+	$params = array_merge($params, $optParams);
758
+	return $this->call('addPublicKey', array($params), "Google_Service_CloudUserAccounts_Operation");
759 759
   }
760 760
 
761 761
   /**
@@ -768,9 +768,9 @@  discard block
 block discarded – undo
768 768
    */
769 769
   public function delete($project, $user, $optParams = array())
770 770
   {
771
-    $params = array('project' => $project, 'user' => $user);
772
-    $params = array_merge($params, $optParams);
773
-    return $this->call('delete', array($params), "Google_Service_CloudUserAccounts_Operation");
771
+	$params = array('project' => $project, 'user' => $user);
772
+	$params = array_merge($params, $optParams);
773
+	return $this->call('delete', array($params), "Google_Service_CloudUserAccounts_Operation");
774 774
   }
775 775
 
776 776
   /**
@@ -783,9 +783,9 @@  discard block
 block discarded – undo
783 783
    */
784 784
   public function get($project, $user, $optParams = array())
785 785
   {
786
-    $params = array('project' => $project, 'user' => $user);
787
-    $params = array_merge($params, $optParams);
788
-    return $this->call('get', array($params), "Google_Service_CloudUserAccounts_User");
786
+	$params = array('project' => $project, 'user' => $user);
787
+	$params = array_merge($params, $optParams);
788
+	return $this->call('get', array($params), "Google_Service_CloudUserAccounts_User");
789 789
   }
790 790
 
791 791
   /**
@@ -799,9 +799,9 @@  discard block
 block discarded – undo
799 799
    */
800 800
   public function insert($project, Google_Service_CloudUserAccounts_User $postBody, $optParams = array())
801 801
   {
802
-    $params = array('project' => $project, 'postBody' => $postBody);
803
-    $params = array_merge($params, $optParams);
804
-    return $this->call('insert', array($params), "Google_Service_CloudUserAccounts_Operation");
802
+	$params = array('project' => $project, 'postBody' => $postBody);
803
+	$params = array_merge($params, $optParams);
804
+	return $this->call('insert', array($params), "Google_Service_CloudUserAccounts_Operation");
805 805
   }
806 806
 
807 807
   /**
@@ -844,9 +844,9 @@  discard block
 block discarded – undo
844 844
    */
845 845
   public function listUsers($project, $optParams = array())
846 846
   {
847
-    $params = array('project' => $project);
848
-    $params = array_merge($params, $optParams);
849
-    return $this->call('list', array($params), "Google_Service_CloudUserAccounts_UserList");
847
+	$params = array('project' => $project);
848
+	$params = array_merge($params, $optParams);
849
+	return $this->call('list', array($params), "Google_Service_CloudUserAccounts_UserList");
850 850
   }
851 851
 
852 852
   /**
@@ -862,9 +862,9 @@  discard block
 block discarded – undo
862 862
    */
863 863
   public function removePublicKey($project, $user, $fingerprint, $optParams = array())
864 864
   {
865
-    $params = array('project' => $project, 'user' => $user, 'fingerprint' => $fingerprint);
866
-    $params = array_merge($params, $optParams);
867
-    return $this->call('removePublicKey', array($params), "Google_Service_CloudUserAccounts_Operation");
865
+	$params = array('project' => $project, 'user' => $user, 'fingerprint' => $fingerprint);
866
+	$params = array_merge($params, $optParams);
867
+	return $this->call('removePublicKey', array($params), "Google_Service_CloudUserAccounts_Operation");
868 868
   }
869 869
 }
870 870
 
@@ -881,11 +881,11 @@  discard block
 block discarded – undo
881 881
 
882 882
   public function setKeys($keys)
883 883
   {
884
-    $this->keys = $keys;
884
+	$this->keys = $keys;
885 885
   }
886 886
   public function getKeys()
887 887
   {
888
-    return $this->keys;
888
+	return $this->keys;
889 889
   }
890 890
 }
891 891
 
@@ -905,59 +905,59 @@  discard block
 block discarded – undo
905 905
 
906 906
   public function setCreationTimestamp($creationTimestamp)
907 907
   {
908
-    $this->creationTimestamp = $creationTimestamp;
908
+	$this->creationTimestamp = $creationTimestamp;
909 909
   }
910 910
   public function getCreationTimestamp()
911 911
   {
912
-    return $this->creationTimestamp;
912
+	return $this->creationTimestamp;
913 913
   }
914 914
   public function setDescription($description)
915 915
   {
916
-    $this->description = $description;
916
+	$this->description = $description;
917 917
   }
918 918
   public function getDescription()
919 919
   {
920
-    return $this->description;
920
+	return $this->description;
921 921
   }
922 922
   public function setId($id)
923 923
   {
924
-    $this->id = $id;
924
+	$this->id = $id;
925 925
   }
926 926
   public function getId()
927 927
   {
928
-    return $this->id;
928
+	return $this->id;
929 929
   }
930 930
   public function setKind($kind)
931 931
   {
932
-    $this->kind = $kind;
932
+	$this->kind = $kind;
933 933
   }
934 934
   public function getKind()
935 935
   {
936
-    return $this->kind;
936
+	return $this->kind;
937 937
   }
938 938
   public function setMembers($members)
939 939
   {
940
-    $this->members = $members;
940
+	$this->members = $members;
941 941
   }
942 942
   public function getMembers()
943 943
   {
944
-    return $this->members;
944
+	return $this->members;
945 945
   }
946 946
   public function setName($name)
947 947
   {
948
-    $this->name = $name;
948
+	$this->name = $name;
949 949
   }
950 950
   public function getName()
951 951
   {
952
-    return $this->name;
952
+	return $this->name;
953 953
   }
954 954
   public function setSelfLink($selfLink)
955 955
   {
956
-    $this->selfLink = $selfLink;
956
+	$this->selfLink = $selfLink;
957 957
   }
958 958
   public function getSelfLink()
959 959
   {
960
-    return $this->selfLink;
960
+	return $this->selfLink;
961 961
   }
962 962
 }
963 963
 
@@ -976,43 +976,43 @@  discard block
 block discarded – undo
976 976
 
977 977
   public function setId($id)
978 978
   {
979
-    $this->id = $id;
979
+	$this->id = $id;
980 980
   }
981 981
   public function getId()
982 982
   {
983
-    return $this->id;
983
+	return $this->id;
984 984
   }
985 985
   public function setItems($items)
986 986
   {
987
-    $this->items = $items;
987
+	$this->items = $items;
988 988
   }
989 989
   public function getItems()
990 990
   {
991
-    return $this->items;
991
+	return $this->items;
992 992
   }
993 993
   public function setKind($kind)
994 994
   {
995
-    $this->kind = $kind;
995
+	$this->kind = $kind;
996 996
   }
997 997
   public function getKind()
998 998
   {
999
-    return $this->kind;
999
+	return $this->kind;
1000 1000
   }
1001 1001
   public function setNextPageToken($nextPageToken)
1002 1002
   {
1003
-    $this->nextPageToken = $nextPageToken;
1003
+	$this->nextPageToken = $nextPageToken;
1004 1004
   }
1005 1005
   public function getNextPageToken()
1006 1006
   {
1007
-    return $this->nextPageToken;
1007
+	return $this->nextPageToken;
1008 1008
   }
1009 1009
   public function setSelfLink($selfLink)
1010 1010
   {
1011
-    $this->selfLink = $selfLink;
1011
+	$this->selfLink = $selfLink;
1012 1012
   }
1013 1013
   public function getSelfLink()
1014 1014
   {
1015
-    return $this->selfLink;
1015
+	return $this->selfLink;
1016 1016
   }
1017 1017
 }
1018 1018
 
@@ -1026,11 +1026,11 @@  discard block
 block discarded – undo
1026 1026
 
1027 1027
   public function setUsers($users)
1028 1028
   {
1029
-    $this->users = $users;
1029
+	$this->users = $users;
1030 1030
   }
1031 1031
   public function getUsers()
1032 1032
   {
1033
-    return $this->users;
1033
+	return $this->users;
1034 1034
   }
1035 1035
 }
1036 1036
 
@@ -1044,11 +1044,11 @@  discard block
 block discarded – undo
1044 1044
 
1045 1045
   public function setUsers($users)
1046 1046
   {
1047
-    $this->users = $users;
1047
+	$this->users = $users;
1048 1048
   }
1049 1049
   public function getUsers()
1050 1050
   {
1051
-    return $this->users;
1051
+	return $this->users;
1052 1052
   }
1053 1053
 }
1054 1054
 
@@ -1066,27 +1066,27 @@  discard block
 block discarded – undo
1066 1066
 
1067 1067
   public function setGroupViews($groupViews)
1068 1068
   {
1069
-    $this->groupViews = $groupViews;
1069
+	$this->groupViews = $groupViews;
1070 1070
   }
1071 1071
   public function getGroupViews()
1072 1072
   {
1073
-    return $this->groupViews;
1073
+	return $this->groupViews;
1074 1074
   }
1075 1075
   public function setKind($kind)
1076 1076
   {
1077
-    $this->kind = $kind;
1077
+	$this->kind = $kind;
1078 1078
   }
1079 1079
   public function getKind()
1080 1080
   {
1081
-    return $this->kind;
1081
+	return $this->kind;
1082 1082
   }
1083 1083
   public function setUserViews($userViews)
1084 1084
   {
1085
-    $this->userViews = $userViews;
1085
+	$this->userViews = $userViews;
1086 1086
   }
1087 1087
   public function getUserViews()
1088 1088
   {
1089
-    return $this->userViews;
1089
+	return $this->userViews;
1090 1090
   }
1091 1091
 }
1092 1092
 
@@ -1100,11 +1100,11 @@  discard block
 block discarded – undo
1100 1100
 
1101 1101
   public function setResource(Google_Service_CloudUserAccounts_AuthorizedKeysView $resource)
1102 1102
   {
1103
-    $this->resource = $resource;
1103
+	$this->resource = $resource;
1104 1104
   }
1105 1105
   public function getResource()
1106 1106
   {
1107
-    return $this->resource;
1107
+	return $this->resource;
1108 1108
   }
1109 1109
 }
1110 1110
 
@@ -1118,11 +1118,11 @@  discard block
 block discarded – undo
1118 1118
 
1119 1119
   public function setResource(Google_Service_CloudUserAccounts_LinuxAccountViews $resource)
1120 1120
   {
1121
-    $this->resource = $resource;
1121
+	$this->resource = $resource;
1122 1122
   }
1123 1123
   public function getResource()
1124 1124
   {
1125
-    return $this->resource;
1125
+	return $this->resource;
1126 1126
   }
1127 1127
 }
1128 1128
 
@@ -1138,27 +1138,27 @@  discard block
 block discarded – undo
1138 1138
 
1139 1139
   public function setGid($gid)
1140 1140
   {
1141
-    $this->gid = $gid;
1141
+	$this->gid = $gid;
1142 1142
   }
1143 1143
   public function getGid()
1144 1144
   {
1145
-    return $this->gid;
1145
+	return $this->gid;
1146 1146
   }
1147 1147
   public function setGroupName($groupName)
1148 1148
   {
1149
-    $this->groupName = $groupName;
1149
+	$this->groupName = $groupName;
1150 1150
   }
1151 1151
   public function getGroupName()
1152 1152
   {
1153
-    return $this->groupName;
1153
+	return $this->groupName;
1154 1154
   }
1155 1155
   public function setMembers($members)
1156 1156
   {
1157
-    $this->members = $members;
1157
+	$this->members = $members;
1158 1158
   }
1159 1159
   public function getMembers()
1160 1160
   {
1161
-    return $this->members;
1161
+	return $this->members;
1162 1162
   }
1163 1163
 }
1164 1164
 
@@ -1176,51 +1176,51 @@  discard block
 block discarded – undo
1176 1176
 
1177 1177
   public function setGecos($gecos)
1178 1178
   {
1179
-    $this->gecos = $gecos;
1179
+	$this->gecos = $gecos;
1180 1180
   }
1181 1181
   public function getGecos()
1182 1182
   {
1183
-    return $this->gecos;
1183
+	return $this->gecos;
1184 1184
   }
1185 1185
   public function setGid($gid)
1186 1186
   {
1187
-    $this->gid = $gid;
1187
+	$this->gid = $gid;
1188 1188
   }
1189 1189
   public function getGid()
1190 1190
   {
1191
-    return $this->gid;
1191
+	return $this->gid;
1192 1192
   }
1193 1193
   public function setHomeDirectory($homeDirectory)
1194 1194
   {
1195
-    $this->homeDirectory = $homeDirectory;
1195
+	$this->homeDirectory = $homeDirectory;
1196 1196
   }
1197 1197
   public function getHomeDirectory()
1198 1198
   {
1199
-    return $this->homeDirectory;
1199
+	return $this->homeDirectory;
1200 1200
   }
1201 1201
   public function setShell($shell)
1202 1202
   {
1203
-    $this->shell = $shell;
1203
+	$this->shell = $shell;
1204 1204
   }
1205 1205
   public function getShell()
1206 1206
   {
1207
-    return $this->shell;
1207
+	return $this->shell;
1208 1208
   }
1209 1209
   public function setUid($uid)
1210 1210
   {
1211
-    $this->uid = $uid;
1211
+	$this->uid = $uid;
1212 1212
   }
1213 1213
   public function getUid()
1214 1214
   {
1215
-    return $this->uid;
1215
+	return $this->uid;
1216 1216
   }
1217 1217
   public function setUsername($username)
1218 1218
   {
1219
-    $this->username = $username;
1219
+	$this->username = $username;
1220 1220
   }
1221 1221
   public function getUsername()
1222 1222
   {
1223
-    return $this->username;
1223
+	return $this->username;
1224 1224
   }
1225 1225
 }
1226 1226
 
@@ -1257,179 +1257,179 @@  discard block
 block discarded – undo
1257 1257
 
1258 1258
   public function setClientOperationId($clientOperationId)
1259 1259
   {
1260
-    $this->clientOperationId = $clientOperationId;
1260
+	$this->clientOperationId = $clientOperationId;
1261 1261
   }
1262 1262
   public function getClientOperationId()
1263 1263
   {
1264
-    return $this->clientOperationId;
1264
+	return $this->clientOperationId;
1265 1265
   }
1266 1266
   public function setCreationTimestamp($creationTimestamp)
1267 1267
   {
1268
-    $this->creationTimestamp = $creationTimestamp;
1268
+	$this->creationTimestamp = $creationTimestamp;
1269 1269
   }
1270 1270
   public function getCreationTimestamp()
1271 1271
   {
1272
-    return $this->creationTimestamp;
1272
+	return $this->creationTimestamp;
1273 1273
   }
1274 1274
   public function setEndTime($endTime)
1275 1275
   {
1276
-    $this->endTime = $endTime;
1276
+	$this->endTime = $endTime;
1277 1277
   }
1278 1278
   public function getEndTime()
1279 1279
   {
1280
-    return $this->endTime;
1280
+	return $this->endTime;
1281 1281
   }
1282 1282
   public function setError(Google_Service_CloudUserAccounts_OperationError $error)
1283 1283
   {
1284
-    $this->error = $error;
1284
+	$this->error = $error;
1285 1285
   }
1286 1286
   public function getError()
1287 1287
   {
1288
-    return $this->error;
1288
+	return $this->error;
1289 1289
   }
1290 1290
   public function setHttpErrorMessage($httpErrorMessage)
1291 1291
   {
1292
-    $this->httpErrorMessage = $httpErrorMessage;
1292
+	$this->httpErrorMessage = $httpErrorMessage;
1293 1293
   }
1294 1294
   public function getHttpErrorMessage()
1295 1295
   {
1296
-    return $this->httpErrorMessage;
1296
+	return $this->httpErrorMessage;
1297 1297
   }
1298 1298
   public function setHttpErrorStatusCode($httpErrorStatusCode)
1299 1299
   {
1300
-    $this->httpErrorStatusCode = $httpErrorStatusCode;
1300
+	$this->httpErrorStatusCode = $httpErrorStatusCode;
1301 1301
   }
1302 1302
   public function getHttpErrorStatusCode()
1303 1303
   {
1304
-    return $this->httpErrorStatusCode;
1304
+	return $this->httpErrorStatusCode;
1305 1305
   }
1306 1306
   public function setId($id)
1307 1307
   {
1308
-    $this->id = $id;
1308
+	$this->id = $id;
1309 1309
   }
1310 1310
   public function getId()
1311 1311
   {
1312
-    return $this->id;
1312
+	return $this->id;
1313 1313
   }
1314 1314
   public function setInsertTime($insertTime)
1315 1315
   {
1316
-    $this->insertTime = $insertTime;
1316
+	$this->insertTime = $insertTime;
1317 1317
   }
1318 1318
   public function getInsertTime()
1319 1319
   {
1320
-    return $this->insertTime;
1320
+	return $this->insertTime;
1321 1321
   }
1322 1322
   public function setKind($kind)
1323 1323
   {
1324
-    $this->kind = $kind;
1324
+	$this->kind = $kind;
1325 1325
   }
1326 1326
   public function getKind()
1327 1327
   {
1328
-    return $this->kind;
1328
+	return $this->kind;
1329 1329
   }
1330 1330
   public function setName($name)
1331 1331
   {
1332
-    $this->name = $name;
1332
+	$this->name = $name;
1333 1333
   }
1334 1334
   public function getName()
1335 1335
   {
1336
-    return $this->name;
1336
+	return $this->name;
1337 1337
   }
1338 1338
   public function setOperationType($operationType)
1339 1339
   {
1340
-    $this->operationType = $operationType;
1340
+	$this->operationType = $operationType;
1341 1341
   }
1342 1342
   public function getOperationType()
1343 1343
   {
1344
-    return $this->operationType;
1344
+	return $this->operationType;
1345 1345
   }
1346 1346
   public function setProgress($progress)
1347 1347
   {
1348
-    $this->progress = $progress;
1348
+	$this->progress = $progress;
1349 1349
   }
1350 1350
   public function getProgress()
1351 1351
   {
1352
-    return $this->progress;
1352
+	return $this->progress;
1353 1353
   }
1354 1354
   public function setRegion($region)
1355 1355
   {
1356
-    $this->region = $region;
1356
+	$this->region = $region;
1357 1357
   }
1358 1358
   public function getRegion()
1359 1359
   {
1360
-    return $this->region;
1360
+	return $this->region;
1361 1361
   }
1362 1362
   public function setSelfLink($selfLink)
1363 1363
   {
1364
-    $this->selfLink = $selfLink;
1364
+	$this->selfLink = $selfLink;
1365 1365
   }
1366 1366
   public function getSelfLink()
1367 1367
   {
1368
-    return $this->selfLink;
1368
+	return $this->selfLink;
1369 1369
   }
1370 1370
   public function setStartTime($startTime)
1371 1371
   {
1372
-    $this->startTime = $startTime;
1372
+	$this->startTime = $startTime;
1373 1373
   }
1374 1374
   public function getStartTime()
1375 1375
   {
1376
-    return $this->startTime;
1376
+	return $this->startTime;
1377 1377
   }
1378 1378
   public function setStatus($status)
1379 1379
   {
1380
-    $this->status = $status;
1380
+	$this->status = $status;
1381 1381
   }
1382 1382
   public function getStatus()
1383 1383
   {
1384
-    return $this->status;
1384
+	return $this->status;
1385 1385
   }
1386 1386
   public function setStatusMessage($statusMessage)
1387 1387
   {
1388
-    $this->statusMessage = $statusMessage;
1388
+	$this->statusMessage = $statusMessage;
1389 1389
   }
1390 1390
   public function getStatusMessage()
1391 1391
   {
1392
-    return $this->statusMessage;
1392
+	return $this->statusMessage;
1393 1393
   }
1394 1394
   public function setTargetId($targetId)
1395 1395
   {
1396
-    $this->targetId = $targetId;
1396
+	$this->targetId = $targetId;
1397 1397
   }
1398 1398
   public function getTargetId()
1399 1399
   {
1400
-    return $this->targetId;
1400
+	return $this->targetId;
1401 1401
   }
1402 1402
   public function setTargetLink($targetLink)
1403 1403
   {
1404
-    $this->targetLink = $targetLink;
1404
+	$this->targetLink = $targetLink;
1405 1405
   }
1406 1406
   public function getTargetLink()
1407 1407
   {
1408
-    return $this->targetLink;
1408
+	return $this->targetLink;
1409 1409
   }
1410 1410
   public function setUser($user)
1411 1411
   {
1412
-    $this->user = $user;
1412
+	$this->user = $user;
1413 1413
   }
1414 1414
   public function getUser()
1415 1415
   {
1416
-    return $this->user;
1416
+	return $this->user;
1417 1417
   }
1418 1418
   public function setWarnings($warnings)
1419 1419
   {
1420
-    $this->warnings = $warnings;
1420
+	$this->warnings = $warnings;
1421 1421
   }
1422 1422
   public function getWarnings()
1423 1423
   {
1424
-    return $this->warnings;
1424
+	return $this->warnings;
1425 1425
   }
1426 1426
   public function setZone($zone)
1427 1427
   {
1428
-    $this->zone = $zone;
1428
+	$this->zone = $zone;
1429 1429
   }
1430 1430
   public function getZone()
1431 1431
   {
1432
-    return $this->zone;
1432
+	return $this->zone;
1433 1433
   }
1434 1434
 }
1435 1435
 
@@ -1444,11 +1444,11 @@  discard block
 block discarded – undo
1444 1444
 
1445 1445
   public function setErrors($errors)
1446 1446
   {
1447
-    $this->errors = $errors;
1447
+	$this->errors = $errors;
1448 1448
   }
1449 1449
   public function getErrors()
1450 1450
   {
1451
-    return $this->errors;
1451
+	return $this->errors;
1452 1452
   }
1453 1453
 }
1454 1454
 
@@ -1463,27 +1463,27 @@  discard block
 block discarded – undo
1463 1463
 
1464 1464
   public function setCode($code)
1465 1465
   {
1466
-    $this->code = $code;
1466
+	$this->code = $code;
1467 1467
   }
1468 1468
   public function getCode()
1469 1469
   {
1470
-    return $this->code;
1470
+	return $this->code;
1471 1471
   }
1472 1472
   public function setLocation($location)
1473 1473
   {
1474
-    $this->location = $location;
1474
+	$this->location = $location;
1475 1475
   }
1476 1476
   public function getLocation()
1477 1477
   {
1478
-    return $this->location;
1478
+	return $this->location;
1479 1479
   }
1480 1480
   public function setMessage($message)
1481 1481
   {
1482
-    $this->message = $message;
1482
+	$this->message = $message;
1483 1483
   }
1484 1484
   public function getMessage()
1485 1485
   {
1486
-    return $this->message;
1486
+	return $this->message;
1487 1487
   }
1488 1488
 }
1489 1489
 
@@ -1502,43 +1502,43 @@  discard block
 block discarded – undo
1502 1502
 
1503 1503
   public function setId($id)
1504 1504
   {
1505
-    $this->id = $id;
1505
+	$this->id = $id;
1506 1506
   }
1507 1507
   public function getId()
1508 1508
   {
1509
-    return $this->id;
1509
+	return $this->id;
1510 1510
   }
1511 1511
   public function setItems($items)
1512 1512
   {
1513
-    $this->items = $items;
1513
+	$this->items = $items;
1514 1514
   }
1515 1515
   public function getItems()
1516 1516
   {
1517
-    return $this->items;
1517
+	return $this->items;
1518 1518
   }
1519 1519
   public function setKind($kind)
1520 1520
   {
1521
-    $this->kind = $kind;
1521
+	$this->kind = $kind;
1522 1522
   }
1523 1523
   public function getKind()
1524 1524
   {
1525
-    return $this->kind;
1525
+	return $this->kind;
1526 1526
   }
1527 1527
   public function setNextPageToken($nextPageToken)
1528 1528
   {
1529
-    $this->nextPageToken = $nextPageToken;
1529
+	$this->nextPageToken = $nextPageToken;
1530 1530
   }
1531 1531
   public function getNextPageToken()
1532 1532
   {
1533
-    return $this->nextPageToken;
1533
+	return $this->nextPageToken;
1534 1534
   }
1535 1535
   public function setSelfLink($selfLink)
1536 1536
   {
1537
-    $this->selfLink = $selfLink;
1537
+	$this->selfLink = $selfLink;
1538 1538
   }
1539 1539
   public function getSelfLink()
1540 1540
   {
1541
-    return $this->selfLink;
1541
+	return $this->selfLink;
1542 1542
   }
1543 1543
 }
1544 1544
 
@@ -1555,27 +1555,27 @@  discard block
 block discarded – undo
1555 1555
 
1556 1556
   public function setCode($code)
1557 1557
   {
1558
-    $this->code = $code;
1558
+	$this->code = $code;
1559 1559
   }
1560 1560
   public function getCode()
1561 1561
   {
1562
-    return $this->code;
1562
+	return $this->code;
1563 1563
   }
1564 1564
   public function setData($data)
1565 1565
   {
1566
-    $this->data = $data;
1566
+	$this->data = $data;
1567 1567
   }
1568 1568
   public function getData()
1569 1569
   {
1570
-    return $this->data;
1570
+	return $this->data;
1571 1571
   }
1572 1572
   public function setMessage($message)
1573 1573
   {
1574
-    $this->message = $message;
1574
+	$this->message = $message;
1575 1575
   }
1576 1576
   public function getMessage()
1577 1577
   {
1578
-    return $this->message;
1578
+	return $this->message;
1579 1579
   }
1580 1580
 }
1581 1581
 
@@ -1589,19 +1589,19 @@  discard block
 block discarded – undo
1589 1589
 
1590 1590
   public function setKey($key)
1591 1591
   {
1592
-    $this->key = $key;
1592
+	$this->key = $key;
1593 1593
   }
1594 1594
   public function getKey()
1595 1595
   {
1596
-    return $this->key;
1596
+	return $this->key;
1597 1597
   }
1598 1598
   public function setValue($value)
1599 1599
   {
1600
-    $this->value = $value;
1600
+	$this->value = $value;
1601 1601
   }
1602 1602
   public function getValue()
1603 1603
   {
1604
-    return $this->value;
1604
+	return $this->value;
1605 1605
   }
1606 1606
 }
1607 1607
 
@@ -1618,43 +1618,43 @@  discard block
 block discarded – undo
1618 1618
 
1619 1619
   public function setCreationTimestamp($creationTimestamp)
1620 1620
   {
1621
-    $this->creationTimestamp = $creationTimestamp;
1621
+	$this->creationTimestamp = $creationTimestamp;
1622 1622
   }
1623 1623
   public function getCreationTimestamp()
1624 1624
   {
1625
-    return $this->creationTimestamp;
1625
+	return $this->creationTimestamp;
1626 1626
   }
1627 1627
   public function setDescription($description)
1628 1628
   {
1629
-    $this->description = $description;
1629
+	$this->description = $description;
1630 1630
   }
1631 1631
   public function getDescription()
1632 1632
   {
1633
-    return $this->description;
1633
+	return $this->description;
1634 1634
   }
1635 1635
   public function setExpirationTimestamp($expirationTimestamp)
1636 1636
   {
1637
-    $this->expirationTimestamp = $expirationTimestamp;
1637
+	$this->expirationTimestamp = $expirationTimestamp;
1638 1638
   }
1639 1639
   public function getExpirationTimestamp()
1640 1640
   {
1641
-    return $this->expirationTimestamp;
1641
+	return $this->expirationTimestamp;
1642 1642
   }
1643 1643
   public function setFingerprint($fingerprint)
1644 1644
   {
1645
-    $this->fingerprint = $fingerprint;
1645
+	$this->fingerprint = $fingerprint;
1646 1646
   }
1647 1647
   public function getFingerprint()
1648 1648
   {
1649
-    return $this->fingerprint;
1649
+	return $this->fingerprint;
1650 1650
   }
1651 1651
   public function setKey($key)
1652 1652
   {
1653
-    $this->key = $key;
1653
+	$this->key = $key;
1654 1654
   }
1655 1655
   public function getKey()
1656 1656
   {
1657
-    return $this->key;
1657
+	return $this->key;
1658 1658
   }
1659 1659
 }
1660 1660
 
@@ -1677,75 +1677,75 @@  discard block
 block discarded – undo
1677 1677
 
1678 1678
   public function setCreationTimestamp($creationTimestamp)
1679 1679
   {
1680
-    $this->creationTimestamp = $creationTimestamp;
1680
+	$this->creationTimestamp = $creationTimestamp;
1681 1681
   }
1682 1682
   public function getCreationTimestamp()
1683 1683
   {
1684
-    return $this->creationTimestamp;
1684
+	return $this->creationTimestamp;
1685 1685
   }
1686 1686
   public function setDescription($description)
1687 1687
   {
1688
-    $this->description = $description;
1688
+	$this->description = $description;
1689 1689
   }
1690 1690
   public function getDescription()
1691 1691
   {
1692
-    return $this->description;
1692
+	return $this->description;
1693 1693
   }
1694 1694
   public function setGroups($groups)
1695 1695
   {
1696
-    $this->groups = $groups;
1696
+	$this->groups = $groups;
1697 1697
   }
1698 1698
   public function getGroups()
1699 1699
   {
1700
-    return $this->groups;
1700
+	return $this->groups;
1701 1701
   }
1702 1702
   public function setId($id)
1703 1703
   {
1704
-    $this->id = $id;
1704
+	$this->id = $id;
1705 1705
   }
1706 1706
   public function getId()
1707 1707
   {
1708
-    return $this->id;
1708
+	return $this->id;
1709 1709
   }
1710 1710
   public function setKind($kind)
1711 1711
   {
1712
-    $this->kind = $kind;
1712
+	$this->kind = $kind;
1713 1713
   }
1714 1714
   public function getKind()
1715 1715
   {
1716
-    return $this->kind;
1716
+	return $this->kind;
1717 1717
   }
1718 1718
   public function setName($name)
1719 1719
   {
1720
-    $this->name = $name;
1720
+	$this->name = $name;
1721 1721
   }
1722 1722
   public function getName()
1723 1723
   {
1724
-    return $this->name;
1724
+	return $this->name;
1725 1725
   }
1726 1726
   public function setOwner($owner)
1727 1727
   {
1728
-    $this->owner = $owner;
1728
+	$this->owner = $owner;
1729 1729
   }
1730 1730
   public function getOwner()
1731 1731
   {
1732
-    return $this->owner;
1732
+	return $this->owner;
1733 1733
   }
1734 1734
   public function setPublicKeys($publicKeys)
1735 1735
   {
1736
-    $this->publicKeys = $publicKeys;
1736
+	$this->publicKeys = $publicKeys;
1737 1737
   }
1738 1738
   public function getPublicKeys()
1739 1739
   {
1740
-    return $this->publicKeys;
1740
+	return $this->publicKeys;
1741 1741
   }
1742 1742
   public function setSelfLink($selfLink)
1743 1743
   {
1744
-    $this->selfLink = $selfLink;
1744
+	$this->selfLink = $selfLink;
1745 1745
   }
1746 1746
   public function getSelfLink()
1747 1747
   {
1748
-    return $this->selfLink;
1748
+	return $this->selfLink;
1749 1749
   }
1750 1750
 }
1751 1751
 
@@ -1764,42 +1764,42 @@  discard block
 block discarded – undo
1764 1764
 
1765 1765
   public function setId($id)
1766 1766
   {
1767
-    $this->id = $id;
1767
+	$this->id = $id;
1768 1768
   }
1769 1769
   public function getId()
1770 1770
   {
1771
-    return $this->id;
1771
+	return $this->id;
1772 1772
   }
1773 1773
   public function setItems($items)
1774 1774
   {
1775
-    $this->items = $items;
1775
+	$this->items = $items;
1776 1776
   }
1777 1777
   public function getItems()
1778 1778
   {
1779
-    return $this->items;
1779
+	return $this->items;
1780 1780
   }
1781 1781
   public function setKind($kind)
1782 1782
   {
1783
-    $this->kind = $kind;
1783
+	$this->kind = $kind;
1784 1784
   }
1785 1785
   public function getKind()
1786 1786
   {
1787
-    return $this->kind;
1787
+	return $this->kind;
1788 1788
   }
1789 1789
   public function setNextPageToken($nextPageToken)
1790 1790
   {
1791
-    $this->nextPageToken = $nextPageToken;
1791
+	$this->nextPageToken = $nextPageToken;
1792 1792
   }
1793 1793
   public function getNextPageToken()
1794 1794
   {
1795
-    return $this->nextPageToken;
1795
+	return $this->nextPageToken;
1796 1796
   }
1797 1797
   public function setSelfLink($selfLink)
1798 1798
   {
1799
-    $this->selfLink = $selfLink;
1799
+	$this->selfLink = $selfLink;
1800 1800
   }
1801 1801
   public function getSelfLink()
1802 1802
   {
1803
-    return $this->selfLink;
1803
+	return $this->selfLink;
1804 1804
   }
1805 1805
 }
Please login to merge, or discard this patch.
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
                   'required' => true,
87 87
                 ),
88 88
               ),
89
-            ),'get' => array(
89
+            ), 'get' => array(
90 90
               'path' => '{project}/global/operations/{operation}',
91 91
               'httpMethod' => 'GET',
92 92
               'parameters' => array(
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
                   'required' => true,
102 102
                 ),
103 103
               ),
104
-            ),'list' => array(
104
+            ), 'list' => array(
105 105
               'path' => '{project}/global/operations',
106 106
               'httpMethod' => 'GET',
107 107
               'parameters' => array(
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
                   'required' => true,
153 153
                 ),
154 154
               ),
155
-            ),'delete' => array(
155
+            ), 'delete' => array(
156 156
               'path' => '{project}/global/groups/{groupName}',
157 157
               'httpMethod' => 'DELETE',
158 158
               'parameters' => array(
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
                   'required' => true,
168 168
                 ),
169 169
               ),
170
-            ),'get' => array(
170
+            ), 'get' => array(
171 171
               'path' => '{project}/global/groups/{groupName}',
172 172
               'httpMethod' => 'GET',
173 173
               'parameters' => array(
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
                   'required' => true,
183 183
                 ),
184 184
               ),
185
-            ),'insert' => array(
185
+            ), 'insert' => array(
186 186
               'path' => '{project}/global/groups',
187 187
               'httpMethod' => 'POST',
188 188
               'parameters' => array(
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
                   'required' => true,
193 193
                 ),
194 194
               ),
195
-            ),'list' => array(
195
+            ), 'list' => array(
196 196
               'path' => '{project}/global/groups',
197 197
               'httpMethod' => 'GET',
198 198
               'parameters' => array(
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
                   'type' => 'string',
219 219
                 ),
220 220
               ),
221
-            ),'removeMember' => array(
221
+            ), 'removeMember' => array(
222 222
               'path' => '{project}/global/groups/{groupName}/removeMember',
223 223
               'httpMethod' => 'POST',
224 224
               'parameters' => array(
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
                   'required' => true,
269 269
                 ),
270 270
               ),
271
-            ),'getLinuxAccountViews' => array(
271
+            ), 'getLinuxAccountViews' => array(
272 272
               'path' => '{project}/zones/{zone}/linuxAccountViews',
273 273
               'httpMethod' => 'POST',
274 274
               'parameters' => array(
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
                   'required' => true,
334 334
                 ),
335 335
               ),
336
-            ),'delete' => array(
336
+            ), 'delete' => array(
337 337
               'path' => '{project}/global/users/{user}',
338 338
               'httpMethod' => 'DELETE',
339 339
               'parameters' => array(
@@ -348,7 +348,7 @@  discard block
 block discarded – undo
348 348
                   'required' => true,
349 349
                 ),
350 350
               ),
351
-            ),'get' => array(
351
+            ), 'get' => array(
352 352
               'path' => '{project}/global/users/{user}',
353 353
               'httpMethod' => 'GET',
354 354
               'parameters' => array(
@@ -363,7 +363,7 @@  discard block
 block discarded – undo
363 363
                   'required' => true,
364 364
                 ),
365 365
               ),
366
-            ),'insert' => array(
366
+            ), 'insert' => array(
367 367
               'path' => '{project}/global/users',
368 368
               'httpMethod' => 'POST',
369 369
               'parameters' => array(
@@ -373,7 +373,7 @@  discard block
 block discarded – undo
373 373
                   'required' => true,
374 374
                 ),
375 375
               ),
376
-            ),'list' => array(
376
+            ), 'list' => array(
377 377
               'path' => '{project}/global/users',
378 378
               'httpMethod' => 'GET',
379 379
               'parameters' => array(
@@ -399,7 +399,7 @@  discard block
 block discarded – undo
399 399
                   'type' => 'string',
400 400
                 ),
401 401
               ),
402
-            ),'removePublicKey' => array(
402
+            ), 'removePublicKey' => array(
403 403
               'path' => '{project}/global/users/{user}/removePublicKey',
404 404
               'httpMethod' => 'POST',
405 405
               'parameters' => array(
Please login to merge, or discard this patch.
google-api-php-client/src/Google/Service/DoubleClickBidManager.php 2 patches
Indentation   +252 added lines, -252 removed lines patch added patch discarded remove patch
@@ -45,98 +45,98 @@  discard block
 block discarded – undo
45 45
    */
46 46
   public function __construct(Google_Client $client)
47 47
   {
48
-    parent::__construct($client);
49
-    $this->rootUrl = 'https://www.googleapis.com/';
50
-    $this->servicePath = 'doubleclickbidmanager/v1/';
51
-    $this->version = 'v1';
52
-    $this->serviceName = 'doubleclickbidmanager';
53
-
54
-    $this->lineitems = new Google_Service_DoubleClickBidManager_Lineitems_Resource(
55
-        $this,
56
-        $this->serviceName,
57
-        'lineitems',
58
-        array(
59
-          'methods' => array(
60
-            'downloadlineitems' => array(
61
-              'path' => 'lineitems/downloadlineitems',
62
-              'httpMethod' => 'POST',
63
-              'parameters' => array(),
64
-            ),'uploadlineitems' => array(
65
-              'path' => 'lineitems/uploadlineitems',
66
-              'httpMethod' => 'POST',
67
-              'parameters' => array(),
68
-            ),
69
-          )
70
-        )
71
-    );
72
-    $this->queries = new Google_Service_DoubleClickBidManager_Queries_Resource(
73
-        $this,
74
-        $this->serviceName,
75
-        'queries',
76
-        array(
77
-          'methods' => array(
78
-            'createquery' => array(
79
-              'path' => 'query',
80
-              'httpMethod' => 'POST',
81
-              'parameters' => array(),
82
-            ),'deletequery' => array(
83
-              'path' => 'query/{queryId}',
84
-              'httpMethod' => 'DELETE',
85
-              'parameters' => array(
86
-                'queryId' => array(
87
-                  'location' => 'path',
88
-                  'type' => 'string',
89
-                  'required' => true,
90
-                ),
91
-              ),
92
-            ),'getquery' => array(
93
-              'path' => 'query/{queryId}',
94
-              'httpMethod' => 'GET',
95
-              'parameters' => array(
96
-                'queryId' => array(
97
-                  'location' => 'path',
98
-                  'type' => 'string',
99
-                  'required' => true,
100
-                ),
101
-              ),
102
-            ),'listqueries' => array(
103
-              'path' => 'queries',
104
-              'httpMethod' => 'GET',
105
-              'parameters' => array(),
106
-            ),'runquery' => array(
107
-              'path' => 'query/{queryId}',
108
-              'httpMethod' => 'POST',
109
-              'parameters' => array(
110
-                'queryId' => array(
111
-                  'location' => 'path',
112
-                  'type' => 'string',
113
-                  'required' => true,
114
-                ),
115
-              ),
116
-            ),
117
-          )
118
-        )
119
-    );
120
-    $this->reports = new Google_Service_DoubleClickBidManager_Reports_Resource(
121
-        $this,
122
-        $this->serviceName,
123
-        'reports',
124
-        array(
125
-          'methods' => array(
126
-            'listreports' => array(
127
-              'path' => 'queries/{queryId}/reports',
128
-              'httpMethod' => 'GET',
129
-              'parameters' => array(
130
-                'queryId' => array(
131
-                  'location' => 'path',
132
-                  'type' => 'string',
133
-                  'required' => true,
134
-                ),
135
-              ),
136
-            ),
137
-          )
138
-        )
139
-    );
48
+	parent::__construct($client);
49
+	$this->rootUrl = 'https://www.googleapis.com/';
50
+	$this->servicePath = 'doubleclickbidmanager/v1/';
51
+	$this->version = 'v1';
52
+	$this->serviceName = 'doubleclickbidmanager';
53
+
54
+	$this->lineitems = new Google_Service_DoubleClickBidManager_Lineitems_Resource(
55
+		$this,
56
+		$this->serviceName,
57
+		'lineitems',
58
+		array(
59
+		  'methods' => array(
60
+			'downloadlineitems' => array(
61
+			  'path' => 'lineitems/downloadlineitems',
62
+			  'httpMethod' => 'POST',
63
+			  'parameters' => array(),
64
+			),'uploadlineitems' => array(
65
+			  'path' => 'lineitems/uploadlineitems',
66
+			  'httpMethod' => 'POST',
67
+			  'parameters' => array(),
68
+			),
69
+		  )
70
+		)
71
+	);
72
+	$this->queries = new Google_Service_DoubleClickBidManager_Queries_Resource(
73
+		$this,
74
+		$this->serviceName,
75
+		'queries',
76
+		array(
77
+		  'methods' => array(
78
+			'createquery' => array(
79
+			  'path' => 'query',
80
+			  'httpMethod' => 'POST',
81
+			  'parameters' => array(),
82
+			),'deletequery' => array(
83
+			  'path' => 'query/{queryId}',
84
+			  'httpMethod' => 'DELETE',
85
+			  'parameters' => array(
86
+				'queryId' => array(
87
+				  'location' => 'path',
88
+				  'type' => 'string',
89
+				  'required' => true,
90
+				),
91
+			  ),
92
+			),'getquery' => array(
93
+			  'path' => 'query/{queryId}',
94
+			  'httpMethod' => 'GET',
95
+			  'parameters' => array(
96
+				'queryId' => array(
97
+				  'location' => 'path',
98
+				  'type' => 'string',
99
+				  'required' => true,
100
+				),
101
+			  ),
102
+			),'listqueries' => array(
103
+			  'path' => 'queries',
104
+			  'httpMethod' => 'GET',
105
+			  'parameters' => array(),
106
+			),'runquery' => array(
107
+			  'path' => 'query/{queryId}',
108
+			  'httpMethod' => 'POST',
109
+			  'parameters' => array(
110
+				'queryId' => array(
111
+				  'location' => 'path',
112
+				  'type' => 'string',
113
+				  'required' => true,
114
+				),
115
+			  ),
116
+			),
117
+		  )
118
+		)
119
+	);
120
+	$this->reports = new Google_Service_DoubleClickBidManager_Reports_Resource(
121
+		$this,
122
+		$this->serviceName,
123
+		'reports',
124
+		array(
125
+		  'methods' => array(
126
+			'listreports' => array(
127
+			  'path' => 'queries/{queryId}/reports',
128
+			  'httpMethod' => 'GET',
129
+			  'parameters' => array(
130
+				'queryId' => array(
131
+				  'location' => 'path',
132
+				  'type' => 'string',
133
+				  'required' => true,
134
+				),
135
+			  ),
136
+			),
137
+		  )
138
+		)
139
+	);
140 140
   }
141 141
 }
142 142
 
@@ -161,9 +161,9 @@  discard block
 block discarded – undo
161 161
    */
162 162
   public function downloadlineitems(Google_Service_DoubleClickBidManager_DownloadLineItemsRequest $postBody, $optParams = array())
163 163
   {
164
-    $params = array('postBody' => $postBody);
165
-    $params = array_merge($params, $optParams);
166
-    return $this->call('downloadlineitems', array($params), "Google_Service_DoubleClickBidManager_DownloadLineItemsResponse");
164
+	$params = array('postBody' => $postBody);
165
+	$params = array_merge($params, $optParams);
166
+	return $this->call('downloadlineitems', array($params), "Google_Service_DoubleClickBidManager_DownloadLineItemsResponse");
167 167
   }
168 168
 
169 169
   /**
@@ -175,9 +175,9 @@  discard block
 block discarded – undo
175 175
    */
176 176
   public function uploadlineitems(Google_Service_DoubleClickBidManager_UploadLineItemsRequest $postBody, $optParams = array())
177 177
   {
178
-    $params = array('postBody' => $postBody);
179
-    $params = array_merge($params, $optParams);
180
-    return $this->call('uploadlineitems', array($params), "Google_Service_DoubleClickBidManager_UploadLineItemsResponse");
178
+	$params = array('postBody' => $postBody);
179
+	$params = array_merge($params, $optParams);
180
+	return $this->call('uploadlineitems', array($params), "Google_Service_DoubleClickBidManager_UploadLineItemsResponse");
181 181
   }
182 182
 }
183 183
 
@@ -201,9 +201,9 @@  discard block
 block discarded – undo
201 201
    */
202 202
   public function createquery(Google_Service_DoubleClickBidManager_Query $postBody, $optParams = array())
203 203
   {
204
-    $params = array('postBody' => $postBody);
205
-    $params = array_merge($params, $optParams);
206
-    return $this->call('createquery', array($params), "Google_Service_DoubleClickBidManager_Query");
204
+	$params = array('postBody' => $postBody);
205
+	$params = array_merge($params, $optParams);
206
+	return $this->call('createquery', array($params), "Google_Service_DoubleClickBidManager_Query");
207 207
   }
208 208
 
209 209
   /**
@@ -215,9 +215,9 @@  discard block
 block discarded – undo
215 215
    */
216 216
   public function deletequery($queryId, $optParams = array())
217 217
   {
218
-    $params = array('queryId' => $queryId);
219
-    $params = array_merge($params, $optParams);
220
-    return $this->call('deletequery', array($params));
218
+	$params = array('queryId' => $queryId);
219
+	$params = array_merge($params, $optParams);
220
+	return $this->call('deletequery', array($params));
221 221
   }
222 222
 
223 223
   /**
@@ -229,9 +229,9 @@  discard block
 block discarded – undo
229 229
    */
230 230
   public function getquery($queryId, $optParams = array())
231 231
   {
232
-    $params = array('queryId' => $queryId);
233
-    $params = array_merge($params, $optParams);
234
-    return $this->call('getquery', array($params), "Google_Service_DoubleClickBidManager_Query");
232
+	$params = array('queryId' => $queryId);
233
+	$params = array_merge($params, $optParams);
234
+	return $this->call('getquery', array($params), "Google_Service_DoubleClickBidManager_Query");
235 235
   }
236 236
 
237 237
   /**
@@ -242,9 +242,9 @@  discard block
 block discarded – undo
242 242
    */
243 243
   public function listqueries($optParams = array())
244 244
   {
245
-    $params = array();
246
-    $params = array_merge($params, $optParams);
247
-    return $this->call('listqueries', array($params), "Google_Service_DoubleClickBidManager_ListQueriesResponse");
245
+	$params = array();
246
+	$params = array_merge($params, $optParams);
247
+	return $this->call('listqueries', array($params), "Google_Service_DoubleClickBidManager_ListQueriesResponse");
248 248
   }
249 249
 
250 250
   /**
@@ -256,9 +256,9 @@  discard block
 block discarded – undo
256 256
    */
257 257
   public function runquery($queryId, Google_Service_DoubleClickBidManager_RunQueryRequest $postBody, $optParams = array())
258 258
   {
259
-    $params = array('queryId' => $queryId, 'postBody' => $postBody);
260
-    $params = array_merge($params, $optParams);
261
-    return $this->call('runquery', array($params));
259
+	$params = array('queryId' => $queryId, 'postBody' => $postBody);
260
+	$params = array_merge($params, $optParams);
261
+	return $this->call('runquery', array($params));
262 262
   }
263 263
 }
264 264
 
@@ -282,9 +282,9 @@  discard block
 block discarded – undo
282 282
    */
283 283
   public function listreports($queryId, $optParams = array())
284 284
   {
285
-    $params = array('queryId' => $queryId);
286
-    $params = array_merge($params, $optParams);
287
-    return $this->call('listreports', array($params), "Google_Service_DoubleClickBidManager_ListReportsResponse");
285
+	$params = array('queryId' => $queryId);
286
+	$params = array_merge($params, $optParams);
287
+	return $this->call('listreports', array($params), "Google_Service_DoubleClickBidManager_ListReportsResponse");
288 288
   }
289 289
 }
290 290
 
@@ -303,27 +303,27 @@  discard block
 block discarded – undo
303 303
 
304 304
   public function setFilterIds($filterIds)
305 305
   {
306
-    $this->filterIds = $filterIds;
306
+	$this->filterIds = $filterIds;
307 307
   }
308 308
   public function getFilterIds()
309 309
   {
310
-    return $this->filterIds;
310
+	return $this->filterIds;
311 311
   }
312 312
   public function setFilterType($filterType)
313 313
   {
314
-    $this->filterType = $filterType;
314
+	$this->filterType = $filterType;
315 315
   }
316 316
   public function getFilterType()
317 317
   {
318
-    return $this->filterType;
318
+	return $this->filterType;
319 319
   }
320 320
   public function setFormat($format)
321 321
   {
322
-    $this->format = $format;
322
+	$this->format = $format;
323 323
   }
324 324
   public function getFormat()
325 325
   {
326
-    return $this->format;
326
+	return $this->format;
327 327
   }
328 328
 }
329 329
 
@@ -336,11 +336,11 @@  discard block
 block discarded – undo
336 336
 
337 337
   public function setLineItems($lineItems)
338 338
   {
339
-    $this->lineItems = $lineItems;
339
+	$this->lineItems = $lineItems;
340 340
   }
341 341
   public function getLineItems()
342 342
   {
343
-    return $this->lineItems;
343
+	return $this->lineItems;
344 344
   }
345 345
 }
346 346
 
@@ -354,19 +354,19 @@  discard block
 block discarded – undo
354 354
 
355 355
   public function setType($type)
356 356
   {
357
-    $this->type = $type;
357
+	$this->type = $type;
358 358
   }
359 359
   public function getType()
360 360
   {
361
-    return $this->type;
361
+	return $this->type;
362 362
   }
363 363
   public function setValue($value)
364 364
   {
365
-    $this->value = $value;
365
+	$this->value = $value;
366 366
   }
367 367
   public function getValue()
368 368
   {
369
-    return $this->value;
369
+	return $this->value;
370 370
   }
371 371
 }
372 372
 
@@ -382,19 +382,19 @@  discard block
 block discarded – undo
382 382
 
383 383
   public function setKind($kind)
384 384
   {
385
-    $this->kind = $kind;
385
+	$this->kind = $kind;
386 386
   }
387 387
   public function getKind()
388 388
   {
389
-    return $this->kind;
389
+	return $this->kind;
390 390
   }
391 391
   public function setQueries($queries)
392 392
   {
393
-    $this->queries = $queries;
393
+	$this->queries = $queries;
394 394
   }
395 395
   public function getQueries()
396 396
   {
397
-    return $this->queries;
397
+	return $this->queries;
398 398
   }
399 399
 }
400 400
 
@@ -410,19 +410,19 @@  discard block
 block discarded – undo
410 410
 
411 411
   public function setKind($kind)
412 412
   {
413
-    $this->kind = $kind;
413
+	$this->kind = $kind;
414 414
   }
415 415
   public function getKind()
416 416
   {
417
-    return $this->kind;
417
+	return $this->kind;
418 418
   }
419 419
   public function setReports($reports)
420 420
   {
421
-    $this->reports = $reports;
421
+	$this->reports = $reports;
422 422
   }
423 423
   public function getReports()
424 424
   {
425
-    return $this->reports;
425
+	return $this->reports;
426 426
   }
427 427
 }
428 428
 
@@ -441,43 +441,43 @@  discard block
 block discarded – undo
441 441
 
442 442
   public function setFilters($filters)
443 443
   {
444
-    $this->filters = $filters;
444
+	$this->filters = $filters;
445 445
   }
446 446
   public function getFilters()
447 447
   {
448
-    return $this->filters;
448
+	return $this->filters;
449 449
   }
450 450
   public function setGroupBys($groupBys)
451 451
   {
452
-    $this->groupBys = $groupBys;
452
+	$this->groupBys = $groupBys;
453 453
   }
454 454
   public function getGroupBys()
455 455
   {
456
-    return $this->groupBys;
456
+	return $this->groupBys;
457 457
   }
458 458
   public function setIncludeInviteData($includeInviteData)
459 459
   {
460
-    $this->includeInviteData = $includeInviteData;
460
+	$this->includeInviteData = $includeInviteData;
461 461
   }
462 462
   public function getIncludeInviteData()
463 463
   {
464
-    return $this->includeInviteData;
464
+	return $this->includeInviteData;
465 465
   }
466 466
   public function setMetrics($metrics)
467 467
   {
468
-    $this->metrics = $metrics;
468
+	$this->metrics = $metrics;
469 469
   }
470 470
   public function getMetrics()
471 471
   {
472
-    return $this->metrics;
472
+	return $this->metrics;
473 473
   }
474 474
   public function setType($type)
475 475
   {
476
-    $this->type = $type;
476
+	$this->type = $type;
477 477
   }
478 478
   public function getType()
479 479
   {
480
-    return $this->type;
480
+	return $this->type;
481 481
   }
482 482
 }
483 483
 
@@ -500,67 +500,67 @@  discard block
 block discarded – undo
500 500
 
501 501
   public function setKind($kind)
502 502
   {
503
-    $this->kind = $kind;
503
+	$this->kind = $kind;
504 504
   }
505 505
   public function getKind()
506 506
   {
507
-    return $this->kind;
507
+	return $this->kind;
508 508
   }
509 509
   public function setMetadata(Google_Service_DoubleClickBidManager_QueryMetadata $metadata)
510 510
   {
511
-    $this->metadata = $metadata;
511
+	$this->metadata = $metadata;
512 512
   }
513 513
   public function getMetadata()
514 514
   {
515
-    return $this->metadata;
515
+	return $this->metadata;
516 516
   }
517 517
   public function setParams(Google_Service_DoubleClickBidManager_Parameters $params)
518 518
   {
519
-    $this->params = $params;
519
+	$this->params = $params;
520 520
   }
521 521
   public function getParams()
522 522
   {
523
-    return $this->params;
523
+	return $this->params;
524 524
   }
525 525
   public function setQueryId($queryId)
526 526
   {
527
-    $this->queryId = $queryId;
527
+	$this->queryId = $queryId;
528 528
   }
529 529
   public function getQueryId()
530 530
   {
531
-    return $this->queryId;
531
+	return $this->queryId;
532 532
   }
533 533
   public function setReportDataEndTimeMs($reportDataEndTimeMs)
534 534
   {
535
-    $this->reportDataEndTimeMs = $reportDataEndTimeMs;
535
+	$this->reportDataEndTimeMs = $reportDataEndTimeMs;
536 536
   }
537 537
   public function getReportDataEndTimeMs()
538 538
   {
539
-    return $this->reportDataEndTimeMs;
539
+	return $this->reportDataEndTimeMs;
540 540
   }
541 541
   public function setReportDataStartTimeMs($reportDataStartTimeMs)
542 542
   {
543
-    $this->reportDataStartTimeMs = $reportDataStartTimeMs;
543
+	$this->reportDataStartTimeMs = $reportDataStartTimeMs;
544 544
   }
545 545
   public function getReportDataStartTimeMs()
546 546
   {
547
-    return $this->reportDataStartTimeMs;
547
+	return $this->reportDataStartTimeMs;
548 548
   }
549 549
   public function setSchedule(Google_Service_DoubleClickBidManager_QuerySchedule $schedule)
550 550
   {
551
-    $this->schedule = $schedule;
551
+	$this->schedule = $schedule;
552 552
   }
553 553
   public function getSchedule()
554 554
   {
555
-    return $this->schedule;
555
+	return $this->schedule;
556 556
   }
557 557
   public function setTimezoneCode($timezoneCode)
558 558
   {
559
-    $this->timezoneCode = $timezoneCode;
559
+	$this->timezoneCode = $timezoneCode;
560 560
   }
561 561
   public function getTimezoneCode()
562 562
   {
563
-    return $this->timezoneCode;
563
+	return $this->timezoneCode;
564 564
   }
565 565
 }
566 566
 
@@ -584,91 +584,91 @@  discard block
 block discarded – undo
584 584
 
585 585
   public function setDataRange($dataRange)
586 586
   {
587
-    $this->dataRange = $dataRange;
587
+	$this->dataRange = $dataRange;
588 588
   }
589 589
   public function getDataRange()
590 590
   {
591
-    return $this->dataRange;
591
+	return $this->dataRange;
592 592
   }
593 593
   public function setFormat($format)
594 594
   {
595
-    $this->format = $format;
595
+	$this->format = $format;
596 596
   }
597 597
   public function getFormat()
598 598
   {
599
-    return $this->format;
599
+	return $this->format;
600 600
   }
601 601
   public function setGoogleCloudStoragePathForLatestReport($googleCloudStoragePathForLatestReport)
602 602
   {
603
-    $this->googleCloudStoragePathForLatestReport = $googleCloudStoragePathForLatestReport;
603
+	$this->googleCloudStoragePathForLatestReport = $googleCloudStoragePathForLatestReport;
604 604
   }
605 605
   public function getGoogleCloudStoragePathForLatestReport()
606 606
   {
607
-    return $this->googleCloudStoragePathForLatestReport;
607
+	return $this->googleCloudStoragePathForLatestReport;
608 608
   }
609 609
   public function setGoogleDrivePathForLatestReport($googleDrivePathForLatestReport)
610 610
   {
611
-    $this->googleDrivePathForLatestReport = $googleDrivePathForLatestReport;
611
+	$this->googleDrivePathForLatestReport = $googleDrivePathForLatestReport;
612 612
   }
613 613
   public function getGoogleDrivePathForLatestReport()
614 614
   {
615
-    return $this->googleDrivePathForLatestReport;
615
+	return $this->googleDrivePathForLatestReport;
616 616
   }
617 617
   public function setLatestReportRunTimeMs($latestReportRunTimeMs)
618 618
   {
619
-    $this->latestReportRunTimeMs = $latestReportRunTimeMs;
619
+	$this->latestReportRunTimeMs = $latestReportRunTimeMs;
620 620
   }
621 621
   public function getLatestReportRunTimeMs()
622 622
   {
623
-    return $this->latestReportRunTimeMs;
623
+	return $this->latestReportRunTimeMs;
624 624
   }
625 625
   public function setLocale($locale)
626 626
   {
627
-    $this->locale = $locale;
627
+	$this->locale = $locale;
628 628
   }
629 629
   public function getLocale()
630 630
   {
631
-    return $this->locale;
631
+	return $this->locale;
632 632
   }
633 633
   public function setReportCount($reportCount)
634 634
   {
635
-    $this->reportCount = $reportCount;
635
+	$this->reportCount = $reportCount;
636 636
   }
637 637
   public function getReportCount()
638 638
   {
639
-    return $this->reportCount;
639
+	return $this->reportCount;
640 640
   }
641 641
   public function setRunning($running)
642 642
   {
643
-    $this->running = $running;
643
+	$this->running = $running;
644 644
   }
645 645
   public function getRunning()
646 646
   {
647
-    return $this->running;
647
+	return $this->running;
648 648
   }
649 649
   public function setSendNotification($sendNotification)
650 650
   {
651
-    $this->sendNotification = $sendNotification;
651
+	$this->sendNotification = $sendNotification;
652 652
   }
653 653
   public function getSendNotification()
654 654
   {
655
-    return $this->sendNotification;
655
+	return $this->sendNotification;
656 656
   }
657 657
   public function setShareEmailAddress($shareEmailAddress)
658 658
   {
659
-    $this->shareEmailAddress = $shareEmailAddress;
659
+	$this->shareEmailAddress = $shareEmailAddress;
660 660
   }
661 661
   public function getShareEmailAddress()
662 662
   {
663
-    return $this->shareEmailAddress;
663
+	return $this->shareEmailAddress;
664 664
   }
665 665
   public function setTitle($title)
666 666
   {
667
-    $this->title = $title;
667
+	$this->title = $title;
668 668
   }
669 669
   public function getTitle()
670 670
   {
671
-    return $this->title;
671
+	return $this->title;
672 672
   }
673 673
 }
674 674
 
@@ -684,35 +684,35 @@  discard block
 block discarded – undo
684 684
 
685 685
   public function setEndTimeMs($endTimeMs)
686 686
   {
687
-    $this->endTimeMs = $endTimeMs;
687
+	$this->endTimeMs = $endTimeMs;
688 688
   }
689 689
   public function getEndTimeMs()
690 690
   {
691
-    return $this->endTimeMs;
691
+	return $this->endTimeMs;
692 692
   }
693 693
   public function setFrequency($frequency)
694 694
   {
695
-    $this->frequency = $frequency;
695
+	$this->frequency = $frequency;
696 696
   }
697 697
   public function getFrequency()
698 698
   {
699
-    return $this->frequency;
699
+	return $this->frequency;
700 700
   }
701 701
   public function setNextRunMinuteOfDay($nextRunMinuteOfDay)
702 702
   {
703
-    $this->nextRunMinuteOfDay = $nextRunMinuteOfDay;
703
+	$this->nextRunMinuteOfDay = $nextRunMinuteOfDay;
704 704
   }
705 705
   public function getNextRunMinuteOfDay()
706 706
   {
707
-    return $this->nextRunMinuteOfDay;
707
+	return $this->nextRunMinuteOfDay;
708 708
   }
709 709
   public function setNextRunTimezoneCode($nextRunTimezoneCode)
710 710
   {
711
-    $this->nextRunTimezoneCode = $nextRunTimezoneCode;
711
+	$this->nextRunTimezoneCode = $nextRunTimezoneCode;
712 712
   }
713 713
   public function getNextRunTimezoneCode()
714 714
   {
715
-    return $this->nextRunTimezoneCode;
715
+	return $this->nextRunTimezoneCode;
716 716
   }
717 717
 }
718 718
 
@@ -730,27 +730,27 @@  discard block
 block discarded – undo
730 730
 
731 731
   public function setKey(Google_Service_DoubleClickBidManager_ReportKey $key)
732 732
   {
733
-    $this->key = $key;
733
+	$this->key = $key;
734 734
   }
735 735
   public function getKey()
736 736
   {
737
-    return $this->key;
737
+	return $this->key;
738 738
   }
739 739
   public function setMetadata(Google_Service_DoubleClickBidManager_ReportMetadata $metadata)
740 740
   {
741
-    $this->metadata = $metadata;
741
+	$this->metadata = $metadata;
742 742
   }
743 743
   public function getMetadata()
744 744
   {
745
-    return $this->metadata;
745
+	return $this->metadata;
746 746
   }
747 747
   public function setParams(Google_Service_DoubleClickBidManager_Parameters $params)
748 748
   {
749
-    $this->params = $params;
749
+	$this->params = $params;
750 750
   }
751 751
   public function getParams()
752 752
   {
753
-    return $this->params;
753
+	return $this->params;
754 754
   }
755 755
 }
756 756
 
@@ -763,11 +763,11 @@  discard block
 block discarded – undo
763 763
 
764 764
   public function setErrorCode($errorCode)
765 765
   {
766
-    $this->errorCode = $errorCode;
766
+	$this->errorCode = $errorCode;
767 767
   }
768 768
   public function getErrorCode()
769 769
   {
770
-    return $this->errorCode;
770
+	return $this->errorCode;
771 771
   }
772 772
 }
773 773
 
@@ -781,19 +781,19 @@  discard block
 block discarded – undo
781 781
 
782 782
   public function setQueryId($queryId)
783 783
   {
784
-    $this->queryId = $queryId;
784
+	$this->queryId = $queryId;
785 785
   }
786 786
   public function getQueryId()
787 787
   {
788
-    return $this->queryId;
788
+	return $this->queryId;
789 789
   }
790 790
   public function setReportId($reportId)
791 791
   {
792
-    $this->reportId = $reportId;
792
+	$this->reportId = $reportId;
793 793
   }
794 794
   public function getReportId()
795 795
   {
796
-    return $this->reportId;
796
+	return $this->reportId;
797 797
   }
798 798
 }
799 799
 
@@ -810,35 +810,35 @@  discard block
 block discarded – undo
810 810
 
811 811
   public function setGoogleCloudStoragePath($googleCloudStoragePath)
812 812
   {
813
-    $this->googleCloudStoragePath = $googleCloudStoragePath;
813
+	$this->googleCloudStoragePath = $googleCloudStoragePath;
814 814
   }
815 815
   public function getGoogleCloudStoragePath()
816 816
   {
817
-    return $this->googleCloudStoragePath;
817
+	return $this->googleCloudStoragePath;
818 818
   }
819 819
   public function setReportDataEndTimeMs($reportDataEndTimeMs)
820 820
   {
821
-    $this->reportDataEndTimeMs = $reportDataEndTimeMs;
821
+	$this->reportDataEndTimeMs = $reportDataEndTimeMs;
822 822
   }
823 823
   public function getReportDataEndTimeMs()
824 824
   {
825
-    return $this->reportDataEndTimeMs;
825
+	return $this->reportDataEndTimeMs;
826 826
   }
827 827
   public function setReportDataStartTimeMs($reportDataStartTimeMs)
828 828
   {
829
-    $this->reportDataStartTimeMs = $reportDataStartTimeMs;
829
+	$this->reportDataStartTimeMs = $reportDataStartTimeMs;
830 830
   }
831 831
   public function getReportDataStartTimeMs()
832 832
   {
833
-    return $this->reportDataStartTimeMs;
833
+	return $this->reportDataStartTimeMs;
834 834
   }
835 835
   public function setStatus(Google_Service_DoubleClickBidManager_ReportStatus $status)
836 836
   {
837
-    $this->status = $status;
837
+	$this->status = $status;
838 838
   }
839 839
   public function getStatus()
840 840
   {
841
-    return $this->status;
841
+	return $this->status;
842 842
   }
843 843
 }
844 844
 
@@ -855,35 +855,35 @@  discard block
 block discarded – undo
855 855
 
856 856
   public function setFailure(Google_Service_DoubleClickBidManager_ReportFailure $failure)
857 857
   {
858
-    $this->failure = $failure;
858
+	$this->failure = $failure;
859 859
   }
860 860
   public function getFailure()
861 861
   {
862
-    return $this->failure;
862
+	return $this->failure;
863 863
   }
864 864
   public function setFinishTimeMs($finishTimeMs)
865 865
   {
866
-    $this->finishTimeMs = $finishTimeMs;
866
+	$this->finishTimeMs = $finishTimeMs;
867 867
   }
868 868
   public function getFinishTimeMs()
869 869
   {
870
-    return $this->finishTimeMs;
870
+	return $this->finishTimeMs;
871 871
   }
872 872
   public function setFormat($format)
873 873
   {
874
-    $this->format = $format;
874
+	$this->format = $format;
875 875
   }
876 876
   public function getFormat()
877 877
   {
878
-    return $this->format;
878
+	return $this->format;
879 879
   }
880 880
   public function setState($state)
881 881
   {
882
-    $this->state = $state;
882
+	$this->state = $state;
883 883
   }
884 884
   public function getState()
885 885
   {
886
-    return $this->state;
886
+	return $this->state;
887 887
   }
888 888
 }
889 889
 
@@ -902,51 +902,51 @@  discard block
 block discarded – undo
902 902
 
903 903
   public function setChanged($changed)
904 904
   {
905
-    $this->changed = $changed;
905
+	$this->changed = $changed;
906 906
   }
907 907
   public function getChanged()
908 908
   {
909
-    return $this->changed;
909
+	return $this->changed;
910 910
   }
911 911
   public function setEntityId($entityId)
912 912
   {
913
-    $this->entityId = $entityId;
913
+	$this->entityId = $entityId;
914 914
   }
915 915
   public function getEntityId()
916 916
   {
917
-    return $this->entityId;
917
+	return $this->entityId;
918 918
   }
919 919
   public function setEntityName($entityName)
920 920
   {
921
-    $this->entityName = $entityName;
921
+	$this->entityName = $entityName;
922 922
   }
923 923
   public function getEntityName()
924 924
   {
925
-    return $this->entityName;
925
+	return $this->entityName;
926 926
   }
927 927
   public function setErrors($errors)
928 928
   {
929
-    $this->errors = $errors;
929
+	$this->errors = $errors;
930 930
   }
931 931
   public function getErrors()
932 932
   {
933
-    return $this->errors;
933
+	return $this->errors;
934 934
   }
935 935
   public function setPersisted($persisted)
936 936
   {
937
-    $this->persisted = $persisted;
937
+	$this->persisted = $persisted;
938 938
   }
939 939
   public function getPersisted()
940 940
   {
941
-    return $this->persisted;
941
+	return $this->persisted;
942 942
   }
943 943
   public function setRowNumber($rowNumber)
944 944
   {
945
-    $this->rowNumber = $rowNumber;
945
+	$this->rowNumber = $rowNumber;
946 946
   }
947 947
   public function getRowNumber()
948 948
   {
949
-    return $this->rowNumber;
949
+	return $this->rowNumber;
950 950
   }
951 951
 }
952 952
 
@@ -962,35 +962,35 @@  discard block
 block discarded – undo
962 962
 
963 963
   public function setDataRange($dataRange)
964 964
   {
965
-    $this->dataRange = $dataRange;
965
+	$this->dataRange = $dataRange;
966 966
   }
967 967
   public function getDataRange()
968 968
   {
969
-    return $this->dataRange;
969
+	return $this->dataRange;
970 970
   }
971 971
   public function setReportDataEndTimeMs($reportDataEndTimeMs)
972 972
   {
973
-    $this->reportDataEndTimeMs = $reportDataEndTimeMs;
973
+	$this->reportDataEndTimeMs = $reportDataEndTimeMs;
974 974
   }
975 975
   public function getReportDataEndTimeMs()
976 976
   {
977
-    return $this->reportDataEndTimeMs;
977
+	return $this->reportDataEndTimeMs;
978 978
   }
979 979
   public function setReportDataStartTimeMs($reportDataStartTimeMs)
980 980
   {
981
-    $this->reportDataStartTimeMs = $reportDataStartTimeMs;
981
+	$this->reportDataStartTimeMs = $reportDataStartTimeMs;
982 982
   }
983 983
   public function getReportDataStartTimeMs()
984 984
   {
985
-    return $this->reportDataStartTimeMs;
985
+	return $this->reportDataStartTimeMs;
986 986
   }
987 987
   public function setTimezoneCode($timezoneCode)
988 988
   {
989
-    $this->timezoneCode = $timezoneCode;
989
+	$this->timezoneCode = $timezoneCode;
990 990
   }
991 991
   public function getTimezoneCode()
992 992
   {
993
-    return $this->timezoneCode;
993
+	return $this->timezoneCode;
994 994
   }
995 995
 }
996 996
 
@@ -1005,27 +1005,27 @@  discard block
 block discarded – undo
1005 1005
 
1006 1006
   public function setDryRun($dryRun)
1007 1007
   {
1008
-    $this->dryRun = $dryRun;
1008
+	$this->dryRun = $dryRun;
1009 1009
   }
1010 1010
   public function getDryRun()
1011 1011
   {
1012
-    return $this->dryRun;
1012
+	return $this->dryRun;
1013 1013
   }
1014 1014
   public function setFormat($format)
1015 1015
   {
1016
-    $this->format = $format;
1016
+	$this->format = $format;
1017 1017
   }
1018 1018
   public function getFormat()
1019 1019
   {
1020
-    return $this->format;
1020
+	return $this->format;
1021 1021
   }
1022 1022
   public function setLineItems($lineItems)
1023 1023
   {
1024
-    $this->lineItems = $lineItems;
1024
+	$this->lineItems = $lineItems;
1025 1025
   }
1026 1026
   public function getLineItems()
1027 1027
   {
1028
-    return $this->lineItems;
1028
+	return $this->lineItems;
1029 1029
   }
1030 1030
 }
1031 1031
 
@@ -1039,11 +1039,11 @@  discard block
 block discarded – undo
1039 1039
 
1040 1040
   public function setUploadStatus(Google_Service_DoubleClickBidManager_UploadStatus $uploadStatus)
1041 1041
   {
1042
-    $this->uploadStatus = $uploadStatus;
1042
+	$this->uploadStatus = $uploadStatus;
1043 1043
   }
1044 1044
   public function getUploadStatus()
1045 1045
   {
1046
-    return $this->uploadStatus;
1046
+	return $this->uploadStatus;
1047 1047
   }
1048 1048
 }
1049 1049
 
@@ -1059,18 +1059,18 @@  discard block
 block discarded – undo
1059 1059
 
1060 1060
   public function setErrors($errors)
1061 1061
   {
1062
-    $this->errors = $errors;
1062
+	$this->errors = $errors;
1063 1063
   }
1064 1064
   public function getErrors()
1065 1065
   {
1066
-    return $this->errors;
1066
+	return $this->errors;
1067 1067
   }
1068 1068
   public function setRowStatus($rowStatus)
1069 1069
   {
1070
-    $this->rowStatus = $rowStatus;
1070
+	$this->rowStatus = $rowStatus;
1071 1071
   }
1072 1072
   public function getRowStatus()
1073 1073
   {
1074
-    return $this->rowStatus;
1074
+	return $this->rowStatus;
1075 1075
   }
1076 1076
 }
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
               'path' => 'lineitems/downloadlineitems',
62 62
               'httpMethod' => 'POST',
63 63
               'parameters' => array(),
64
-            ),'uploadlineitems' => array(
64
+            ), 'uploadlineitems' => array(
65 65
               'path' => 'lineitems/uploadlineitems',
66 66
               'httpMethod' => 'POST',
67 67
               'parameters' => array(),
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
               'path' => 'query',
80 80
               'httpMethod' => 'POST',
81 81
               'parameters' => array(),
82
-            ),'deletequery' => array(
82
+            ), 'deletequery' => array(
83 83
               'path' => 'query/{queryId}',
84 84
               'httpMethod' => 'DELETE',
85 85
               'parameters' => array(
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
                   'required' => true,
90 90
                 ),
91 91
               ),
92
-            ),'getquery' => array(
92
+            ), 'getquery' => array(
93 93
               'path' => 'query/{queryId}',
94 94
               'httpMethod' => 'GET',
95 95
               'parameters' => array(
@@ -99,11 +99,11 @@  discard block
 block discarded – undo
99 99
                   'required' => true,
100 100
                 ),
101 101
               ),
102
-            ),'listqueries' => array(
102
+            ), 'listqueries' => array(
103 103
               'path' => 'queries',
104 104
               'httpMethod' => 'GET',
105 105
               'parameters' => array(),
106
-            ),'runquery' => array(
106
+            ), 'runquery' => array(
107 107
               'path' => 'query/{queryId}',
108 108
               'httpMethod' => 'POST',
109 109
               'parameters' => array(
Please login to merge, or discard this patch.
geodirectory-admin/google-api-php-client/src/Google/Signer/P12.php 2 patches
Indentation   +46 added lines, -46 removed lines patch added patch discarded remove patch
@@ -34,61 +34,61 @@
 block discarded – undo
34 34
   // Creates a new signer from a .p12 file.
35 35
   public function __construct($p12, $password)
36 36
   {
37
-    if (!function_exists('openssl_x509_read')) {
38
-      throw new Google_Exception(
39
-          'The Google PHP API library needs the openssl PHP extension'
40
-      );
41
-    }
37
+	if (!function_exists('openssl_x509_read')) {
38
+	  throw new Google_Exception(
39
+		  'The Google PHP API library needs the openssl PHP extension'
40
+	  );
41
+	}
42 42
 
43
-    // If the private key is provided directly, then this isn't in the p12
44
-    // format. Different versions of openssl support different p12 formats
45
-    // and the key from google wasn't being accepted by the version available
46
-    // at the time.
47
-    if (!$password && strpos($p12, "-----BEGIN RSA PRIVATE KEY-----") !== false) {
48
-      $this->privateKey = openssl_pkey_get_private($p12);
49
-    } elseif ($password === 'notasecret' && strpos($p12, "-----BEGIN PRIVATE KEY-----") !== false) {
50
-      $this->privateKey = openssl_pkey_get_private($p12);
51
-    } else {
52
-      // This throws on error
53
-      $certs = array();
54
-      if (!openssl_pkcs12_read($p12, $certs, $password)) {
55
-        throw new Google_Auth_Exception(
56
-            "Unable to parse the p12 file.  " .
57
-            "Is this a .p12 file?  Is the password correct?  OpenSSL error: " .
58
-            openssl_error_string()
59
-        );
60
-      }
61
-      // TODO(beaton): is this part of the contract for the openssl_pkcs12_read
62
-      // method?  What happens if there are multiple private keys?  Do we care?
63
-      if (!array_key_exists("pkey", $certs) || !$certs["pkey"]) {
64
-        throw new Google_Auth_Exception("No private key found in p12 file.");
65
-      }
66
-      $this->privateKey = openssl_pkey_get_private($certs['pkey']);
67
-    }
43
+	// If the private key is provided directly, then this isn't in the p12
44
+	// format. Different versions of openssl support different p12 formats
45
+	// and the key from google wasn't being accepted by the version available
46
+	// at the time.
47
+	if (!$password && strpos($p12, "-----BEGIN RSA PRIVATE KEY-----") !== false) {
48
+	  $this->privateKey = openssl_pkey_get_private($p12);
49
+	} elseif ($password === 'notasecret' && strpos($p12, "-----BEGIN PRIVATE KEY-----") !== false) {
50
+	  $this->privateKey = openssl_pkey_get_private($p12);
51
+	} else {
52
+	  // This throws on error
53
+	  $certs = array();
54
+	  if (!openssl_pkcs12_read($p12, $certs, $password)) {
55
+		throw new Google_Auth_Exception(
56
+			"Unable to parse the p12 file.  " .
57
+			"Is this a .p12 file?  Is the password correct?  OpenSSL error: " .
58
+			openssl_error_string()
59
+		);
60
+	  }
61
+	  // TODO(beaton): is this part of the contract for the openssl_pkcs12_read
62
+	  // method?  What happens if there are multiple private keys?  Do we care?
63
+	  if (!array_key_exists("pkey", $certs) || !$certs["pkey"]) {
64
+		throw new Google_Auth_Exception("No private key found in p12 file.");
65
+	  }
66
+	  $this->privateKey = openssl_pkey_get_private($certs['pkey']);
67
+	}
68 68
 
69
-    if (!$this->privateKey) {
70
-      throw new Google_Auth_Exception("Unable to load private key");
71
-    }
69
+	if (!$this->privateKey) {
70
+	  throw new Google_Auth_Exception("Unable to load private key");
71
+	}
72 72
   }
73 73
 
74 74
   public function __destruct()
75 75
   {
76
-    if ($this->privateKey) {
77
-      openssl_pkey_free($this->privateKey);
78
-    }
76
+	if ($this->privateKey) {
77
+	  openssl_pkey_free($this->privateKey);
78
+	}
79 79
   }
80 80
 
81 81
   public function sign($data)
82 82
   {
83
-    if (version_compare(PHP_VERSION, '5.3.0') < 0) {
84
-      throw new Google_Auth_Exception(
85
-          "PHP 5.3.0 or higher is required to use service accounts."
86
-      );
87
-    }
88
-    $hash = defined("OPENSSL_ALGO_SHA256") ? OPENSSL_ALGO_SHA256 : "sha256";
89
-    if (!openssl_sign($data, $signature, $this->privateKey, $hash)) {
90
-      throw new Google_Auth_Exception("Unable to sign data");
91
-    }
92
-    return $signature;
83
+	if (version_compare(PHP_VERSION, '5.3.0') < 0) {
84
+	  throw new Google_Auth_Exception(
85
+		  "PHP 5.3.0 or higher is required to use service accounts."
86
+	  );
87
+	}
88
+	$hash = defined("OPENSSL_ALGO_SHA256") ? OPENSSL_ALGO_SHA256 : "sha256";
89
+	if (!openssl_sign($data, $signature, $this->privateKey, $hash)) {
90
+	  throw new Google_Auth_Exception("Unable to sign data");
91
+	}
92
+	return $signature;
93 93
   }
94 94
 }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
  */
17 17
 
18 18
 if (!class_exists('Google_Client')) {
19
-  require_once dirname(__FILE__) . '/../autoload.php';
19
+  require_once dirname(__FILE__).'/../autoload.php';
20 20
 }
21 21
 
22 22
 /**
@@ -53,8 +53,8 @@  discard block
 block discarded – undo
53 53
       $certs = array();
54 54
       if (!openssl_pkcs12_read($p12, $certs, $password)) {
55 55
         throw new Google_Auth_Exception(
56
-            "Unable to parse the p12 file.  " .
57
-            "Is this a .p12 file?  Is the password correct?  OpenSSL error: " .
56
+            "Unable to parse the p12 file.  ".
57
+            "Is this a .p12 file?  Is the password correct?  OpenSSL error: ".
58 58
             openssl_error_string()
59 59
         );
60 60
       }
Please login to merge, or discard this patch.
geodirectory-admin/google-api-php-client/src/Google/Utils/URITemplate.php 2 patches
Indentation   +229 added lines, -229 removed lines patch added patch discarded remove patch
@@ -32,13 +32,13 @@  discard block
 block discarded – undo
32 32
    * processed.
33 33
    */
34 34
   private $operators = array(
35
-      "+" => "reserved",
36
-      "/" => "segments",
37
-      "." => "dotprefix",
38
-      "#" => "fragment",
39
-      ";" => "semicolon",
40
-      "?" => "form",
41
-      "&" => "continuation"
35
+	  "+" => "reserved",
36
+	  "/" => "segments",
37
+	  "." => "dotprefix",
38
+	  "#" => "fragment",
39
+	  ";" => "semicolon",
40
+	  "?" => "form",
41
+	  "&" => "continuation"
42 42
   );
43 43
 
44 44
   /**
@@ -47,18 +47,18 @@  discard block
 block discarded – undo
47 47
    * strings.
48 48
    */
49 49
   private $reserved = array(
50
-      "=", ",", "!", "@", "|", ":", "/", "?", "#",
51
-      "[", "]",'$', "&", "'", "(", ")", "*", "+", ";"
50
+	  "=", ",", "!", "@", "|", ":", "/", "?", "#",
51
+	  "[", "]",'$', "&", "'", "(", ")", "*", "+", ";"
52 52
   );
53 53
   private $reservedEncoded = array(
54
-    "%3D", "%2C", "%21", "%40", "%7C", "%3A", "%2F", "%3F",
55
-    "%23", "%5B", "%5D", "%24", "%26", "%27", "%28", "%29",
56
-    "%2A", "%2B", "%3B"
54
+	"%3D", "%2C", "%21", "%40", "%7C", "%3A", "%2F", "%3F",
55
+	"%23", "%5B", "%5D", "%24", "%26", "%27", "%28", "%29",
56
+	"%2A", "%2B", "%3B"
57 57
   );
58 58
 
59 59
   public function parse($string, array $parameters)
60 60
   {
61
-    return $this->resolveNextSection($string, $parameters);
61
+	return $this->resolveNextSection($string, $parameters);
62 62
   }
63 63
 
64 64
   /**
@@ -68,208 +68,208 @@  discard block
 block discarded – undo
68 68
    */
69 69
   private function resolveNextSection($string, $parameters)
70 70
   {
71
-    $start = strpos($string, "{");
72
-    if ($start === false) {
73
-      return $string;
74
-    }
75
-    $end = strpos($string, "}");
76
-    if ($end === false) {
77
-      return $string;
78
-    }
79
-    $string = $this->replace($string, $start, $end, $parameters);
80
-    return $this->resolveNextSection($string, $parameters);
71
+	$start = strpos($string, "{");
72
+	if ($start === false) {
73
+	  return $string;
74
+	}
75
+	$end = strpos($string, "}");
76
+	if ($end === false) {
77
+	  return $string;
78
+	}
79
+	$string = $this->replace($string, $start, $end, $parameters);
80
+	return $this->resolveNextSection($string, $parameters);
81 81
   }
82 82
 
83 83
   private function replace($string, $start, $end, $parameters)
84 84
   {
85
-    // We know a data block will have {} round it, so we can strip that.
86
-    $data = substr($string, $start + 1, $end - $start - 1);
85
+	// We know a data block will have {} round it, so we can strip that.
86
+	$data = substr($string, $start + 1, $end - $start - 1);
87 87
 
88
-    // If the first character is one of the reserved operators, it effects
89
-    // the processing of the stream.
90
-    if (isset($this->operators[$data[0]])) {
91
-      $op = $this->operators[$data[0]];
92
-      $data = substr($data, 1);
93
-      $prefix = "";
94
-      $prefix_on_missing = false;
88
+	// If the first character is one of the reserved operators, it effects
89
+	// the processing of the stream.
90
+	if (isset($this->operators[$data[0]])) {
91
+	  $op = $this->operators[$data[0]];
92
+	  $data = substr($data, 1);
93
+	  $prefix = "";
94
+	  $prefix_on_missing = false;
95 95
 
96
-      switch ($op) {
97
-        case "reserved":
98
-          // Reserved means certain characters should not be URL encoded
99
-          $data = $this->replaceVars($data, $parameters, ",", null, true);
100
-          break;
101
-        case "fragment":
102
-          // Comma separated with fragment prefix. Bare values only.
103
-          $prefix = "#";
104
-          $prefix_on_missing = true;
105
-          $data = $this->replaceVars($data, $parameters, ",", null, true);
106
-          break;
107
-        case "segments":
108
-          // Slash separated data. Bare values only.
109
-          $prefix = "/";
110
-          $data =$this->replaceVars($data, $parameters, "/");
111
-          break;
112
-        case "dotprefix":
113
-          // Dot separated data. Bare values only.
114
-          $prefix = ".";
115
-          $prefix_on_missing = true;
116
-          $data = $this->replaceVars($data, $parameters, ".");
117
-          break;
118
-        case "semicolon":
119
-          // Semicolon prefixed and separated. Uses the key name
120
-          $prefix = ";";
121
-          $data = $this->replaceVars($data, $parameters, ";", "=", false, true, false);
122
-          break;
123
-        case "form":
124
-          // Standard URL format. Uses the key name
125
-          $prefix = "?";
126
-          $data = $this->replaceVars($data, $parameters, "&", "=");
127
-          break;
128
-        case "continuation":
129
-          // Standard URL, but with leading ampersand. Uses key name.
130
-          $prefix = "&";
131
-          $data = $this->replaceVars($data, $parameters, "&", "=");
132
-          break;
133
-      }
96
+	  switch ($op) {
97
+		case "reserved":
98
+		  // Reserved means certain characters should not be URL encoded
99
+		  $data = $this->replaceVars($data, $parameters, ",", null, true);
100
+		  break;
101
+		case "fragment":
102
+		  // Comma separated with fragment prefix. Bare values only.
103
+		  $prefix = "#";
104
+		  $prefix_on_missing = true;
105
+		  $data = $this->replaceVars($data, $parameters, ",", null, true);
106
+		  break;
107
+		case "segments":
108
+		  // Slash separated data. Bare values only.
109
+		  $prefix = "/";
110
+		  $data =$this->replaceVars($data, $parameters, "/");
111
+		  break;
112
+		case "dotprefix":
113
+		  // Dot separated data. Bare values only.
114
+		  $prefix = ".";
115
+		  $prefix_on_missing = true;
116
+		  $data = $this->replaceVars($data, $parameters, ".");
117
+		  break;
118
+		case "semicolon":
119
+		  // Semicolon prefixed and separated. Uses the key name
120
+		  $prefix = ";";
121
+		  $data = $this->replaceVars($data, $parameters, ";", "=", false, true, false);
122
+		  break;
123
+		case "form":
124
+		  // Standard URL format. Uses the key name
125
+		  $prefix = "?";
126
+		  $data = $this->replaceVars($data, $parameters, "&", "=");
127
+		  break;
128
+		case "continuation":
129
+		  // Standard URL, but with leading ampersand. Uses key name.
130
+		  $prefix = "&";
131
+		  $data = $this->replaceVars($data, $parameters, "&", "=");
132
+		  break;
133
+	  }
134 134
 
135
-      // Add the initial prefix character if data is valid.
136
-      if ($data || ($data !== false && $prefix_on_missing)) {
137
-        $data = $prefix . $data;
138
-      }
135
+	  // Add the initial prefix character if data is valid.
136
+	  if ($data || ($data !== false && $prefix_on_missing)) {
137
+		$data = $prefix . $data;
138
+	  }
139 139
 
140
-    } else {
141
-      // If no operator we replace with the defaults.
142
-      $data = $this->replaceVars($data, $parameters);
143
-    }
144
-    // This is chops out the {...} and replaces with the new section.
145
-    return substr($string, 0, $start) . $data . substr($string, $end + 1);
140
+	} else {
141
+	  // If no operator we replace with the defaults.
142
+	  $data = $this->replaceVars($data, $parameters);
143
+	}
144
+	// This is chops out the {...} and replaces with the new section.
145
+	return substr($string, 0, $start) . $data . substr($string, $end + 1);
146 146
   }
147 147
 
148 148
   private function replaceVars(
149
-      $section,
150
-      $parameters,
151
-      $sep = ",",
152
-      $combine = null,
153
-      $reserved = false,
154
-      $tag_empty = false,
155
-      $combine_on_empty = true
149
+	  $section,
150
+	  $parameters,
151
+	  $sep = ",",
152
+	  $combine = null,
153
+	  $reserved = false,
154
+	  $tag_empty = false,
155
+	  $combine_on_empty = true
156 156
   ) {
157
-    if (strpos($section, ",") === false) {
158
-      // If we only have a single value, we can immediately process.
159
-      return $this->combine(
160
-          $section,
161
-          $parameters,
162
-          $sep,
163
-          $combine,
164
-          $reserved,
165
-          $tag_empty,
166
-          $combine_on_empty
167
-      );
168
-    } else {
169
-      // If we have multiple values, we need to split and loop over them.
170
-      // Each is treated individually, then glued together with the
171
-      // separator character.
172
-      $vars = explode(",", $section);
173
-      return $this->combineList(
174
-          $vars,
175
-          $sep,
176
-          $parameters,
177
-          $combine,
178
-          $reserved,
179
-          false, // Never emit empty strings in multi-param replacements
180
-          $combine_on_empty
181
-      );
182
-    }
157
+	if (strpos($section, ",") === false) {
158
+	  // If we only have a single value, we can immediately process.
159
+	  return $this->combine(
160
+		  $section,
161
+		  $parameters,
162
+		  $sep,
163
+		  $combine,
164
+		  $reserved,
165
+		  $tag_empty,
166
+		  $combine_on_empty
167
+	  );
168
+	} else {
169
+	  // If we have multiple values, we need to split and loop over them.
170
+	  // Each is treated individually, then glued together with the
171
+	  // separator character.
172
+	  $vars = explode(",", $section);
173
+	  return $this->combineList(
174
+		  $vars,
175
+		  $sep,
176
+		  $parameters,
177
+		  $combine,
178
+		  $reserved,
179
+		  false, // Never emit empty strings in multi-param replacements
180
+		  $combine_on_empty
181
+	  );
182
+	}
183 183
   }
184 184
  
185 185
   public function combine(
186
-      $key,
187
-      $parameters,
188
-      $sep,
189
-      $combine,
190
-      $reserved,
191
-      $tag_empty,
192
-      $combine_on_empty
186
+	  $key,
187
+	  $parameters,
188
+	  $sep,
189
+	  $combine,
190
+	  $reserved,
191
+	  $tag_empty,
192
+	  $combine_on_empty
193 193
   ) {
194
-    $length = false;
195
-    $explode = false;
196
-    $skip_final_combine = false;
197
-    $value = false;
194
+	$length = false;
195
+	$explode = false;
196
+	$skip_final_combine = false;
197
+	$value = false;
198 198
 
199
-    // Check for length restriction.
200
-    if (strpos($key, ":") !== false) {
201
-      list($key, $length) = explode(":", $key);
202
-    }
199
+	// Check for length restriction.
200
+	if (strpos($key, ":") !== false) {
201
+	  list($key, $length) = explode(":", $key);
202
+	}
203 203
     
204
-    // Check for explode parameter.
205
-    if ($key[strlen($key) - 1] == "*") {
206
-      $explode = true;
207
-      $key = substr($key, 0, -1);
208
-      $skip_final_combine = true;
209
-    }
204
+	// Check for explode parameter.
205
+	if ($key[strlen($key) - 1] == "*") {
206
+	  $explode = true;
207
+	  $key = substr($key, 0, -1);
208
+	  $skip_final_combine = true;
209
+	}
210 210
     
211
-    // Define the list separator.
212
-    $list_sep = $explode ? $sep : ",";
211
+	// Define the list separator.
212
+	$list_sep = $explode ? $sep : ",";
213 213
     
214
-    if (isset($parameters[$key])) {
215
-      $data_type = $this->getDataType($parameters[$key]);
216
-      switch ($data_type) {
217
-        case self::TYPE_SCALAR:
218
-          $value = $this->getValue($parameters[$key], $length);
219
-          break;
220
-        case self::TYPE_LIST:
221
-          $values = array();
222
-          foreach ($parameters[$key] as $pkey => $pvalue) {
223
-            $pvalue = $this->getValue($pvalue, $length);
224
-            if ($combine && $explode) {
225
-              $values[$pkey] = $key . $combine . $pvalue;
226
-            } else {
227
-              $values[$pkey] = $pvalue;
228
-            }
229
-          }
230
-          $value = implode($list_sep, $values);
231
-          if ($value == '') {
232
-            return '';
233
-          }
234
-          break;
235
-        case self::TYPE_MAP:
236
-          $values = array();
237
-          foreach ($parameters[$key] as $pkey => $pvalue) {
238
-            $pvalue = $this->getValue($pvalue, $length);
239
-            if ($explode) {
240
-              $pkey = $this->getValue($pkey, $length);
241
-              $values[] = $pkey . "=" . $pvalue; // Explode triggers = combine.
242
-            } else {
243
-              $values[] = $pkey;
244
-              $values[] = $pvalue;
245
-            }
246
-          }
247
-          $value = implode($list_sep, $values);
248
-          if ($value == '') {
249
-            return false;
250
-          }
251
-          break;
252
-      }
253
-    } else if ($tag_empty) {
254
-      // If we are just indicating empty values with their key name, return that.
255
-      return $key;
256
-    } else {
257
-      // Otherwise we can skip this variable due to not being defined.
258
-      return false;
259
-    }
214
+	if (isset($parameters[$key])) {
215
+	  $data_type = $this->getDataType($parameters[$key]);
216
+	  switch ($data_type) {
217
+		case self::TYPE_SCALAR:
218
+		  $value = $this->getValue($parameters[$key], $length);
219
+		  break;
220
+		case self::TYPE_LIST:
221
+		  $values = array();
222
+		  foreach ($parameters[$key] as $pkey => $pvalue) {
223
+			$pvalue = $this->getValue($pvalue, $length);
224
+			if ($combine && $explode) {
225
+			  $values[$pkey] = $key . $combine . $pvalue;
226
+			} else {
227
+			  $values[$pkey] = $pvalue;
228
+			}
229
+		  }
230
+		  $value = implode($list_sep, $values);
231
+		  if ($value == '') {
232
+			return '';
233
+		  }
234
+		  break;
235
+		case self::TYPE_MAP:
236
+		  $values = array();
237
+		  foreach ($parameters[$key] as $pkey => $pvalue) {
238
+			$pvalue = $this->getValue($pvalue, $length);
239
+			if ($explode) {
240
+			  $pkey = $this->getValue($pkey, $length);
241
+			  $values[] = $pkey . "=" . $pvalue; // Explode triggers = combine.
242
+			} else {
243
+			  $values[] = $pkey;
244
+			  $values[] = $pvalue;
245
+			}
246
+		  }
247
+		  $value = implode($list_sep, $values);
248
+		  if ($value == '') {
249
+			return false;
250
+		  }
251
+		  break;
252
+	  }
253
+	} else if ($tag_empty) {
254
+	  // If we are just indicating empty values with their key name, return that.
255
+	  return $key;
256
+	} else {
257
+	  // Otherwise we can skip this variable due to not being defined.
258
+	  return false;
259
+	}
260 260
 
261
-    if ($reserved) {
262
-      $value = str_replace($this->reservedEncoded, $this->reserved, $value);
263
-    }
261
+	if ($reserved) {
262
+	  $value = str_replace($this->reservedEncoded, $this->reserved, $value);
263
+	}
264 264
 
265
-    // If we do not need to include the key name, we just return the raw
266
-    // value.
267
-    if (!$combine || $skip_final_combine) {
268
-      return $value;
269
-    }
265
+	// If we do not need to include the key name, we just return the raw
266
+	// value.
267
+	if (!$combine || $skip_final_combine) {
268
+	  return $value;
269
+	}
270 270
         
271
-    // Else we combine the key name: foo=bar, if value is not the empty string.
272
-    return $key . ($value != '' || $combine_on_empty ? $combine . $value : '');
271
+	// Else we combine the key name: foo=bar, if value is not the empty string.
272
+	return $key . ($value != '' || $combine_on_empty ? $combine . $value : '');
273 273
   }
274 274
   
275 275
   /**
@@ -277,14 +277,14 @@  discard block
 block discarded – undo
277 277
    */
278 278
   private function getDataType($data)
279 279
   {
280
-    if (is_array($data)) {
281
-      reset($data);
282
-      if (key($data) !== 0) {
283
-        return self::TYPE_MAP;
284
-      }
285
-      return self::TYPE_LIST;
286
-    }
287
-    return self::TYPE_SCALAR;
280
+	if (is_array($data)) {
281
+	  reset($data);
282
+	  if (key($data) !== 0) {
283
+		return self::TYPE_MAP;
284
+	  }
285
+	  return self::TYPE_LIST;
286
+	}
287
+	return self::TYPE_SCALAR;
288 288
   }
289 289
   
290 290
   /**
@@ -292,31 +292,31 @@  discard block
 block discarded – undo
292 292
    * for multi-key templates.
293 293
    */
294 294
   private function combineList(
295
-      $vars,
296
-      $sep,
297
-      $parameters,
298
-      $combine,
299
-      $reserved,
300
-      $tag_empty,
301
-      $combine_on_empty
295
+	  $vars,
296
+	  $sep,
297
+	  $parameters,
298
+	  $combine,
299
+	  $reserved,
300
+	  $tag_empty,
301
+	  $combine_on_empty
302 302
   ) {
303
-    $ret = array();
304
-    foreach ($vars as $var) {
305
-      $response = $this->combine(
306
-          $var,
307
-          $parameters,
308
-          $sep,
309
-          $combine,
310
-          $reserved,
311
-          $tag_empty,
312
-          $combine_on_empty
313
-      );
314
-      if ($response === false) {
315
-        continue;
316
-      }
317
-      $ret[] = $response;
318
-    }
319
-    return implode($sep, $ret);
303
+	$ret = array();
304
+	foreach ($vars as $var) {
305
+	  $response = $this->combine(
306
+		  $var,
307
+		  $parameters,
308
+		  $sep,
309
+		  $combine,
310
+		  $reserved,
311
+		  $tag_empty,
312
+		  $combine_on_empty
313
+	  );
314
+	  if ($response === false) {
315
+		continue;
316
+	  }
317
+	  $ret[] = $response;
318
+	}
319
+	return implode($sep, $ret);
320 320
   }
321 321
   
322 322
   /**
@@ -324,10 +324,10 @@  discard block
 block discarded – undo
324 324
    */
325 325
   private function getValue($value, $length)
326 326
   {
327
-    if ($length) {
328
-      $value = substr($value, 0, $length);
329
-    }
330
-    $value = rawurlencode($value);
331
-    return $value;
327
+	if ($length) {
328
+	  $value = substr($value, 0, $length);
329
+	}
330
+	$value = rawurlencode($value);
331
+	return $value;
332 332
   }
333 333
 }
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
    */
49 49
   private $reserved = array(
50 50
       "=", ",", "!", "@", "|", ":", "/", "?", "#",
51
-      "[", "]",'$', "&", "'", "(", ")", "*", "+", ";"
51
+      "[", "]", '$', "&", "'", "(", ")", "*", "+", ";"
52 52
   );
53 53
   private $reservedEncoded = array(
54 54
     "%3D", "%2C", "%21", "%40", "%7C", "%3A", "%2F", "%3F",
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
         case "segments":
108 108
           // Slash separated data. Bare values only.
109 109
           $prefix = "/";
110
-          $data =$this->replaceVars($data, $parameters, "/");
110
+          $data = $this->replaceVars($data, $parameters, "/");
111 111
           break;
112 112
         case "dotprefix":
113 113
           // Dot separated data. Bare values only.
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 
135 135
       // Add the initial prefix character if data is valid.
136 136
       if ($data || ($data !== false && $prefix_on_missing)) {
137
-        $data = $prefix . $data;
137
+        $data = $prefix.$data;
138 138
       }
139 139
 
140 140
     } else {
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
       $data = $this->replaceVars($data, $parameters);
143 143
     }
144 144
     // This is chops out the {...} and replaces with the new section.
145
-    return substr($string, 0, $start) . $data . substr($string, $end + 1);
145
+    return substr($string, 0, $start).$data.substr($string, $end + 1);
146 146
   }
147 147
 
148 148
   private function replaceVars(
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
           foreach ($parameters[$key] as $pkey => $pvalue) {
223 223
             $pvalue = $this->getValue($pvalue, $length);
224 224
             if ($combine && $explode) {
225
-              $values[$pkey] = $key . $combine . $pvalue;
225
+              $values[$pkey] = $key.$combine.$pvalue;
226 226
             } else {
227 227
               $values[$pkey] = $pvalue;
228 228
             }
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
             $pvalue = $this->getValue($pvalue, $length);
239 239
             if ($explode) {
240 240
               $pkey = $this->getValue($pkey, $length);
241
-              $values[] = $pkey . "=" . $pvalue; // Explode triggers = combine.
241
+              $values[] = $pkey."=".$pvalue; // Explode triggers = combine.
242 242
             } else {
243 243
               $values[] = $pkey;
244 244
               $values[] = $pvalue;
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
     }
270 270
         
271 271
     // Else we combine the key name: foo=bar, if value is not the empty string.
272
-    return $key . ($value != '' || $combine_on_empty ? $combine . $value : '');
272
+    return $key.($value != '' || $combine_on_empty ? $combine.$value : '');
273 273
   }
274 274
   
275 275
   /**
Please login to merge, or discard this patch.
geodirectory-admin/google-api-php-client/src/Google/Model.php 2 patches
Indentation   +126 added lines, -126 removed lines patch added patch discarded remove patch
@@ -38,12 +38,12 @@  discard block
 block discarded – undo
38 38
    */
39 39
   final public function __construct()
40 40
   {
41
-    if (func_num_args() == 1 && is_array(func_get_arg(0))) {
42
-      // Initialize the model with the array's contents.
43
-      $array = func_get_arg(0);
44
-      $this->mapTypes($array);
45
-    }
46
-    $this->gapiInit();
41
+	if (func_num_args() == 1 && is_array(func_get_arg(0))) {
42
+	  // Initialize the model with the array's contents.
43
+	  $array = func_get_arg(0);
44
+	  $this->mapTypes($array);
45
+	}
46
+	$this->gapiInit();
47 47
   }
48 48
 
49 49
   /**
@@ -53,39 +53,39 @@  discard block
 block discarded – undo
53 53
    */
54 54
   public function __get($key)
55 55
   {
56
-    $keyTypeName = $this->keyType($key);
57
-    $keyDataType = $this->dataType($key);
58
-    if (isset($this->$keyTypeName) && !isset($this->processed[$key])) {
59
-      if (isset($this->modelData[$key])) {
60
-        $val = $this->modelData[$key];
61
-      } else if (isset($this->$keyDataType) &&
62
-          ($this->$keyDataType == 'array' || $this->$keyDataType == 'map')) {
63
-        $val = array();
64
-      } else {
65
-        $val = null;
66
-      }
56
+	$keyTypeName = $this->keyType($key);
57
+	$keyDataType = $this->dataType($key);
58
+	if (isset($this->$keyTypeName) && !isset($this->processed[$key])) {
59
+	  if (isset($this->modelData[$key])) {
60
+		$val = $this->modelData[$key];
61
+	  } else if (isset($this->$keyDataType) &&
62
+		  ($this->$keyDataType == 'array' || $this->$keyDataType == 'map')) {
63
+		$val = array();
64
+	  } else {
65
+		$val = null;
66
+	  }
67 67
 
68
-      if ($this->isAssociativeArray($val)) {
69
-        if (isset($this->$keyDataType) && 'map' == $this->$keyDataType) {
70
-          foreach ($val as $arrayKey => $arrayItem) {
71
-              $this->modelData[$key][$arrayKey] =
72
-                $this->createObjectFromName($keyTypeName, $arrayItem);
73
-          }
74
-        } else {
75
-          $this->modelData[$key] = $this->createObjectFromName($keyTypeName, $val);
76
-        }
77
-      } else if (is_array($val)) {
78
-        $arrayObject = array();
79
-        foreach ($val as $arrayIndex => $arrayItem) {
80
-          $arrayObject[$arrayIndex] =
81
-            $this->createObjectFromName($keyTypeName, $arrayItem);
82
-        }
83
-        $this->modelData[$key] = $arrayObject;
84
-      }
85
-      $this->processed[$key] = true;
86
-    }
68
+	  if ($this->isAssociativeArray($val)) {
69
+		if (isset($this->$keyDataType) && 'map' == $this->$keyDataType) {
70
+		  foreach ($val as $arrayKey => $arrayItem) {
71
+			  $this->modelData[$key][$arrayKey] =
72
+				$this->createObjectFromName($keyTypeName, $arrayItem);
73
+		  }
74
+		} else {
75
+		  $this->modelData[$key] = $this->createObjectFromName($keyTypeName, $val);
76
+		}
77
+	  } else if (is_array($val)) {
78
+		$arrayObject = array();
79
+		foreach ($val as $arrayIndex => $arrayItem) {
80
+		  $arrayObject[$arrayIndex] =
81
+			$this->createObjectFromName($keyTypeName, $arrayItem);
82
+		}
83
+		$this->modelData[$key] = $arrayObject;
84
+	  }
85
+	  $this->processed[$key] = true;
86
+	}
87 87
 
88
-    return isset($this->modelData[$key]) ? $this->modelData[$key] : null;
88
+	return isset($this->modelData[$key]) ? $this->modelData[$key] : null;
89 89
   }
90 90
 
91 91
   /**
@@ -96,19 +96,19 @@  discard block
 block discarded – undo
96 96
    */
97 97
   protected function mapTypes($array)
98 98
   {
99
-    // Hard initialise simple types, lazy load more complex ones.
100
-    foreach ($array as $key => $val) {
101
-      if ( !property_exists($this, $this->keyType($key)) &&
102
-        property_exists($this, $key)) {
103
-          $this->$key = $val;
104
-          unset($array[$key]);
105
-      } elseif (property_exists($this, $camelKey = Google_Utils::camelCase($key))) {
106
-          // This checks if property exists as camelCase, leaving it in array as snake_case
107
-          // in case of backwards compatibility issues.
108
-          $this->$camelKey = $val;
109
-      }
110
-    }
111
-    $this->modelData = $array;
99
+	// Hard initialise simple types, lazy load more complex ones.
100
+	foreach ($array as $key => $val) {
101
+	  if ( !property_exists($this, $this->keyType($key)) &&
102
+		property_exists($this, $key)) {
103
+		  $this->$key = $val;
104
+		  unset($array[$key]);
105
+	  } elseif (property_exists($this, $camelKey = Google_Utils::camelCase($key))) {
106
+		  // This checks if property exists as camelCase, leaving it in array as snake_case
107
+		  // in case of backwards compatibility issues.
108
+		  $this->$camelKey = $val;
109
+	  }
110
+	}
111
+	$this->modelData = $array;
112 112
   }
113 113
 
114 114
   /**
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
    */
119 119
   protected function gapiInit()
120 120
   {
121
-    return;
121
+	return;
122 122
   }
123 123
 
124 124
   /**
@@ -129,29 +129,29 @@  discard block
 block discarded – undo
129 129
    */
130 130
   public function toSimpleObject()
131 131
   {
132
-    $object = new stdClass();
132
+	$object = new stdClass();
133 133
 
134
-    // Process all other data.
135
-    foreach ($this->modelData as $key => $val) {
136
-      $result = $this->getSimpleValue($val);
137
-      if ($result !== null) {
138
-        $object->$key = $this->nullPlaceholderCheck($result);
139
-      }
140
-    }
134
+	// Process all other data.
135
+	foreach ($this->modelData as $key => $val) {
136
+	  $result = $this->getSimpleValue($val);
137
+	  if ($result !== null) {
138
+		$object->$key = $this->nullPlaceholderCheck($result);
139
+	  }
140
+	}
141 141
 
142
-    // Process all public properties.
143
-    $reflect = new ReflectionObject($this);
144
-    $props = $reflect->getProperties(ReflectionProperty::IS_PUBLIC);
145
-    foreach ($props as $member) {
146
-      $name = $member->getName();
147
-      $result = $this->getSimpleValue($this->$name);
148
-      if ($result !== null) {
149
-        $name = $this->getMappedName($name);
150
-        $object->$name = $this->nullPlaceholderCheck($result);
151
-      }
152
-    }
142
+	// Process all public properties.
143
+	$reflect = new ReflectionObject($this);
144
+	$props = $reflect->getProperties(ReflectionProperty::IS_PUBLIC);
145
+	foreach ($props as $member) {
146
+	  $name = $member->getName();
147
+	  $result = $this->getSimpleValue($this->$name);
148
+	  if ($result !== null) {
149
+		$name = $this->getMappedName($name);
150
+		$object->$name = $this->nullPlaceholderCheck($result);
151
+	  }
152
+	}
153 153
 
154
-    return $object;
154
+	return $object;
155 155
   }
156 156
 
157 157
   /**
@@ -160,20 +160,20 @@  discard block
 block discarded – undo
160 160
    */
161 161
   private function getSimpleValue($value)
162 162
   {
163
-    if ($value instanceof Google_Model) {
164
-      return $value->toSimpleObject();
165
-    } else if (is_array($value)) {
166
-      $return = array();
167
-      foreach ($value as $key => $a_value) {
168
-        $a_value = $this->getSimpleValue($a_value);
169
-        if ($a_value !== null) {
170
-          $key = $this->getMappedName($key);
171
-          $return[$key] = $this->nullPlaceholderCheck($a_value);
172
-        }
173
-      }
174
-      return $return;
175
-    }
176
-    return $value;
163
+	if ($value instanceof Google_Model) {
164
+	  return $value->toSimpleObject();
165
+	} else if (is_array($value)) {
166
+	  $return = array();
167
+	  foreach ($value as $key => $a_value) {
168
+		$a_value = $this->getSimpleValue($a_value);
169
+		if ($a_value !== null) {
170
+		  $key = $this->getMappedName($key);
171
+		  $return[$key] = $this->nullPlaceholderCheck($a_value);
172
+		}
173
+	  }
174
+	  return $return;
175
+	}
176
+	return $value;
177 177
   }
178 178
   
179 179
   /**
@@ -181,10 +181,10 @@  discard block
 block discarded – undo
181 181
    */
182 182
   private function nullPlaceholderCheck($value)
183 183
   {
184
-    if ($value === self::NULL_VALUE) {
185
-      return null;
186
-    }
187
-    return $value;
184
+	if ($value === self::NULL_VALUE) {
185
+	  return null;
186
+	}
187
+	return $value;
188 188
   }
189 189
 
190 190
   /**
@@ -192,11 +192,11 @@  discard block
 block discarded – undo
192 192
    */
193 193
   private function getMappedName($key)
194 194
   {
195
-    if (isset($this->internal_gapi_mappings) &&
196
-        isset($this->internal_gapi_mappings[$key])) {
197
-      $key = $this->internal_gapi_mappings[$key];
198
-    }
199
-    return $key;
195
+	if (isset($this->internal_gapi_mappings) &&
196
+		isset($this->internal_gapi_mappings[$key])) {
197
+	  $key = $this->internal_gapi_mappings[$key];
198
+	}
199
+	return $key;
200 200
   }
201 201
 
202 202
   /**
@@ -206,16 +206,16 @@  discard block
 block discarded – undo
206 206
    */
207 207
   protected function isAssociativeArray($array)
208 208
   {
209
-    if (!is_array($array)) {
210
-      return false;
211
-    }
212
-    $keys = array_keys($array);
213
-    foreach ($keys as $key) {
214
-      if (is_string($key)) {
215
-        return true;
216
-      }
217
-    }
218
-    return false;
209
+	if (!is_array($array)) {
210
+	  return false;
211
+	}
212
+	$keys = array_keys($array);
213
+	foreach ($keys as $key) {
214
+	  if (is_string($key)) {
215
+		return true;
216
+	  }
217
+	}
218
+	return false;
219 219
   }
220 220
 
221 221
   /**
@@ -227,8 +227,8 @@  discard block
 block discarded – undo
227 227
    */
228 228
   private function createObjectFromName($name, $item)
229 229
   {
230
-    $type = $this->$name;
231
-    return new $type($item);
230
+	$type = $this->$name;
231
+	return new $type($item);
232 232
   }
233 233
 
234 234
   /**
@@ -239,57 +239,57 @@  discard block
 block discarded – undo
239 239
    */
240 240
   public function assertIsArray($obj, $method)
241 241
   {
242
-    if ($obj && !is_array($obj)) {
243
-      throw new Google_Exception(
244
-          "Incorrect parameter type passed to $method(). Expected an array."
245
-      );
246
-    }
242
+	if ($obj && !is_array($obj)) {
243
+	  throw new Google_Exception(
244
+		  "Incorrect parameter type passed to $method(). Expected an array."
245
+	  );
246
+	}
247 247
   }
248 248
 
249 249
   public function offsetExists($offset)
250 250
   {
251
-    return isset($this->$offset) || isset($this->modelData[$offset]);
251
+	return isset($this->$offset) || isset($this->modelData[$offset]);
252 252
   }
253 253
 
254 254
   public function offsetGet($offset)
255 255
   {
256
-    return isset($this->$offset) ?
257
-        $this->$offset :
258
-        $this->__get($offset);
256
+	return isset($this->$offset) ?
257
+		$this->$offset :
258
+		$this->__get($offset);
259 259
   }
260 260
 
261 261
   public function offsetSet($offset, $value)
262 262
   {
263
-    if (property_exists($this, $offset)) {
264
-      $this->$offset = $value;
265
-    } else {
266
-      $this->modelData[$offset] = $value;
267
-      $this->processed[$offset] = true;
268
-    }
263
+	if (property_exists($this, $offset)) {
264
+	  $this->$offset = $value;
265
+	} else {
266
+	  $this->modelData[$offset] = $value;
267
+	  $this->processed[$offset] = true;
268
+	}
269 269
   }
270 270
 
271 271
   public function offsetUnset($offset)
272 272
   {
273
-    unset($this->modelData[$offset]);
273
+	unset($this->modelData[$offset]);
274 274
   }
275 275
 
276 276
   protected function keyType($key)
277 277
   {
278
-    return $key . "Type";
278
+	return $key . "Type";
279 279
   }
280 280
 
281 281
   protected function dataType($key)
282 282
   {
283
-    return $key . "DataType";
283
+	return $key . "DataType";
284 284
   }
285 285
 
286 286
   public function __isset($key)
287 287
   {
288
-    return isset($this->modelData[$key]);
288
+	return isset($this->modelData[$key]);
289 289
   }
290 290
 
291 291
   public function __unset($key)
292 292
   {
293
-    unset($this->modelData[$key]);
293
+	unset($this->modelData[$key]);
294 294
   }
295 295
 }
Please login to merge, or discard this patch.
Spacing   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
   {
99 99
     // Hard initialise simple types, lazy load more complex ones.
100 100
     foreach ($array as $key => $val) {
101
-      if ( !property_exists($this, $this->keyType($key)) &&
101
+      if (!property_exists($this, $this->keyType($key)) &&
102 102
         property_exists($this, $key)) {
103 103
           $this->$key = $val;
104 104
           unset($array[$key]);
@@ -254,8 +254,7 @@  discard block
 block discarded – undo
254 254
   public function offsetGet($offset)
255 255
   {
256 256
     return isset($this->$offset) ?
257
-        $this->$offset :
258
-        $this->__get($offset);
257
+        $this->$offset : $this->__get($offset);
259 258
   }
260 259
 
261 260
   public function offsetSet($offset, $value)
@@ -275,12 +274,12 @@  discard block
 block discarded – undo
275 274
 
276 275
   protected function keyType($key)
277 276
   {
278
-    return $key . "Type";
277
+    return $key."Type";
279 278
   }
280 279
 
281 280
   protected function dataType($key)
282 281
   {
283
-    return $key . "DataType";
282
+    return $key."DataType";
284 283
   }
285 284
 
286 285
   public function __isset($key)
Please login to merge, or discard this patch.
geodirectory-admin/google-api-php-client/src/Google/Auth/LoginTicket.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -42,8 +42,8 @@  discard block
 block discarded – undo
42 42
    */
43 43
   public function __construct($envelope, $payload)
44 44
   {
45
-    $this->envelope = $envelope;
46
-    $this->payload = $payload;
45
+	$this->envelope = $envelope;
46
+	$this->payload = $payload;
47 47
   }
48 48
 
49 49
   /**
@@ -53,10 +53,10 @@  discard block
 block discarded – undo
53 53
    */
54 54
   public function getUserId()
55 55
   {
56
-    if (array_key_exists(self::USER_ATTR, $this->payload)) {
57
-      return $this->payload[self::USER_ATTR];
58
-    }
59
-    throw new Google_Auth_Exception("No user_id in token");
56
+	if (array_key_exists(self::USER_ATTR, $this->payload)) {
57
+	  return $this->payload[self::USER_ATTR];
58
+	}
59
+	throw new Google_Auth_Exception("No user_id in token");
60 60
   }
61 61
 
62 62
   /**
@@ -66,6 +66,6 @@  discard block
 block discarded – undo
66 66
    */
67 67
   public function getAttributes()
68 68
   {
69
-    return array("envelope" => $this->envelope, "payload" => $this->payload);
69
+	return array("envelope" => $this->envelope, "payload" => $this->payload);
70 70
   }
71 71
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
  */
17 17
 
18 18
 if (!class_exists('Google_Client')) {
19
-  require_once dirname(__FILE__) . '/../autoload.php';
19
+  require_once dirname(__FILE__).'/../autoload.php';
20 20
 }
21 21
 
22 22
 /**
Please login to merge, or discard this patch.
google-api-php-client/src/Google/Auth/AssertionCredentials.php 2 patches
Indentation   +52 added lines, -52 removed lines patch added patch discarded remove patch
@@ -51,22 +51,22 @@  discard block
 block discarded – undo
51 51
    *              automatic caching of the generated token.
52 52
    */
53 53
   public function __construct(
54
-      $serviceAccountName,
55
-      $scopes,
56
-      $privateKey,
57
-      $privateKeyPassword = 'notasecret',
58
-      $assertionType = 'http://oauth.net/grant_type/jwt/1.0/bearer',
59
-      $sub = false,
60
-      $useCache = true
54
+	  $serviceAccountName,
55
+	  $scopes,
56
+	  $privateKey,
57
+	  $privateKeyPassword = 'notasecret',
58
+	  $assertionType = 'http://oauth.net/grant_type/jwt/1.0/bearer',
59
+	  $sub = false,
60
+	  $useCache = true
61 61
   ) {
62
-    $this->serviceAccountName = $serviceAccountName;
63
-    $this->scopes = is_string($scopes) ? $scopes : implode(' ', $scopes);
64
-    $this->privateKey = $privateKey;
65
-    $this->privateKeyPassword = $privateKeyPassword;
66
-    $this->assertionType = $assertionType;
67
-    $this->sub = $sub;
68
-    $this->prn = $sub;
69
-    $this->useCache = $useCache;
62
+	$this->serviceAccountName = $serviceAccountName;
63
+	$this->scopes = is_string($scopes) ? $scopes : implode(' ', $scopes);
64
+	$this->privateKey = $privateKey;
65
+	$this->privateKeyPassword = $privateKeyPassword;
66
+	$this->assertionType = $assertionType;
67
+	$this->sub = $sub;
68
+	$this->prn = $sub;
69
+	$this->useCache = $useCache;
70 70
   }
71 71
   
72 72
   /**
@@ -75,36 +75,36 @@  discard block
 block discarded – undo
75 75
    */
76 76
   public function getCacheKey()
77 77
   {
78
-    if (!$this->useCache) {
79
-      return false;
80
-    }
81
-    $h = $this->sub;
82
-    $h .= $this->assertionType;
83
-    $h .= $this->privateKey;
84
-    $h .= $this->scopes;
85
-    $h .= $this->serviceAccountName;
86
-    return md5($h);
78
+	if (!$this->useCache) {
79
+	  return false;
80
+	}
81
+	$h = $this->sub;
82
+	$h .= $this->assertionType;
83
+	$h .= $this->privateKey;
84
+	$h .= $this->scopes;
85
+	$h .= $this->serviceAccountName;
86
+	return md5($h);
87 87
   }
88 88
 
89 89
   public function generateAssertion()
90 90
   {
91
-    $now = time();
91
+	$now = time();
92 92
 
93
-    $jwtParams = array(
94
-          'aud' => Google_Auth_OAuth2::OAUTH2_TOKEN_URI,
95
-          'scope' => $this->scopes,
96
-          'iat' => $now,
97
-          'exp' => $now + self::MAX_TOKEN_LIFETIME_SECS,
98
-          'iss' => $this->serviceAccountName,
99
-    );
93
+	$jwtParams = array(
94
+		  'aud' => Google_Auth_OAuth2::OAUTH2_TOKEN_URI,
95
+		  'scope' => $this->scopes,
96
+		  'iat' => $now,
97
+		  'exp' => $now + self::MAX_TOKEN_LIFETIME_SECS,
98
+		  'iss' => $this->serviceAccountName,
99
+	);
100 100
 
101
-    if ($this->sub !== false) {
102
-      $jwtParams['sub'] = $this->sub;
103
-    } else if ($this->prn !== false) {
104
-      $jwtParams['prn'] = $this->prn;
105
-    }
101
+	if ($this->sub !== false) {
102
+	  $jwtParams['sub'] = $this->sub;
103
+	} else if ($this->prn !== false) {
104
+	  $jwtParams['prn'] = $this->prn;
105
+	}
106 106
 
107
-    return $this->makeSignedJwt($jwtParams);
107
+	return $this->makeSignedJwt($jwtParams);
108 108
   }
109 109
 
110 110
   /**
@@ -114,23 +114,23 @@  discard block
 block discarded – undo
114 114
    */
115 115
   private function makeSignedJwt($payload)
116 116
   {
117
-    $header = array('typ' => 'JWT', 'alg' => 'RS256');
117
+	$header = array('typ' => 'JWT', 'alg' => 'RS256');
118 118
 
119
-    $payload = json_encode($payload);
120
-    // Handle some overzealous escaping in PHP json that seemed to cause some errors
121
-    // with claimsets.
122
-    $payload = str_replace('\/', '/', $payload);
119
+	$payload = json_encode($payload);
120
+	// Handle some overzealous escaping in PHP json that seemed to cause some errors
121
+	// with claimsets.
122
+	$payload = str_replace('\/', '/', $payload);
123 123
 
124
-    $segments = array(
125
-      Google_Utils::urlSafeB64Encode(json_encode($header)),
126
-      Google_Utils::urlSafeB64Encode($payload)
127
-    );
124
+	$segments = array(
125
+	  Google_Utils::urlSafeB64Encode(json_encode($header)),
126
+	  Google_Utils::urlSafeB64Encode($payload)
127
+	);
128 128
 
129
-    $signingInput = implode('.', $segments);
130
-    $signer = new Google_Signer_P12($this->privateKey, $this->privateKeyPassword);
131
-    $signature = $signer->sign($signingInput);
132
-    $segments[] = Google_Utils::urlSafeB64Encode($signature);
129
+	$signingInput = implode('.', $segments);
130
+	$signer = new Google_Signer_P12($this->privateKey, $this->privateKeyPassword);
131
+	$signature = $signer->sign($signingInput);
132
+	$segments[] = Google_Utils::urlSafeB64Encode($signature);
133 133
 
134
-    return implode(".", $segments);
134
+	return implode(".", $segments);
135 135
   }
136 136
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
  */
17 17
 
18 18
 if (!class_exists('Google_Client')) {
19
-  require_once dirname(__FILE__) . '/../autoload.php';
19
+  require_once dirname(__FILE__).'/../autoload.php';
20 20
 }
21 21
 
22 22
 /**
Please login to merge, or discard this patch.
geodirectory-admin/google-api-php-client/src/Google/Auth/AppIdentity.php 2 patches
Indentation   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
   public function __construct(Google_Client $client, $config = null)
40 40
   {
41
-    $this->client = $client;
41
+	$this->client = $client;
42 42
   }
43 43
 
44 44
   /**
@@ -46,27 +46,27 @@  discard block
 block discarded – undo
46 46
    */
47 47
   public function authenticateForScope($scopes)
48 48
   {
49
-    if ($this->token && $this->tokenScopes == $scopes) {
50
-      return $this->token;
51
-    }
49
+	if ($this->token && $this->tokenScopes == $scopes) {
50
+	  return $this->token;
51
+	}
52 52
 
53
-    $cacheKey = self::CACHE_PREFIX;
54
-    if (is_string($scopes)) {
55
-      $cacheKey .= $scopes;
56
-    } else if (is_array($scopes)) {
57
-      $cacheKey .= implode(":", $scopes);
58
-    }
53
+	$cacheKey = self::CACHE_PREFIX;
54
+	if (is_string($scopes)) {
55
+	  $cacheKey .= $scopes;
56
+	} else if (is_array($scopes)) {
57
+	  $cacheKey .= implode(":", $scopes);
58
+	}
59 59
 
60
-    $this->token = $this->client->getCache()->get($cacheKey);
61
-    if (!$this->token) {
62
-      $this->retrieveToken($scopes, $cacheKey);
63
-    } else if ($this->token['expiration_time'] < time()) {
64
-      $this->client->getCache()->delete($cacheKey);
65
-      $this->retrieveToken($scopes, $cacheKey);
66
-    }
60
+	$this->token = $this->client->getCache()->get($cacheKey);
61
+	if (!$this->token) {
62
+	  $this->retrieveToken($scopes, $cacheKey);
63
+	} else if ($this->token['expiration_time'] < time()) {
64
+	  $this->client->getCache()->delete($cacheKey);
65
+	  $this->retrieveToken($scopes, $cacheKey);
66
+	}
67 67
 
68
-    $this->tokenScopes = $scopes;
69
-    return $this->token;
68
+	$this->tokenScopes = $scopes;
69
+	return $this->token;
70 70
   }
71 71
 
72 72
   /**
@@ -76,13 +76,13 @@  discard block
 block discarded – undo
76 76
    */
77 77
   private function retrieveToken($scopes, $cacheKey)
78 78
   {
79
-    $this->token = AppIdentityService::getAccessToken($scopes);
80
-    if ($this->token) {
81
-      $this->client->getCache()->set(
82
-          $cacheKey,
83
-          $this->token
84
-      );
85
-    }
79
+	$this->token = AppIdentityService::getAccessToken($scopes);
80
+	if ($this->token) {
81
+	  $this->client->getCache()->set(
82
+		  $cacheKey,
83
+		  $this->token
84
+	  );
85
+	}
86 86
   }
87 87
 
88 88
   /**
@@ -97,24 +97,24 @@  discard block
 block discarded – undo
97 97
    */
98 98
   public function authenticatedRequest(Google_Http_Request $request)
99 99
   {
100
-    $request = $this->sign($request);
101
-    return $this->client->getIo()->makeRequest($request);
100
+	$request = $this->sign($request);
101
+	return $this->client->getIo()->makeRequest($request);
102 102
   }
103 103
 
104 104
   public function sign(Google_Http_Request $request)
105 105
   {
106
-    if (!$this->token) {
107
-      // No token, so nothing to do.
108
-      return $request;
109
-    }
106
+	if (!$this->token) {
107
+	  // No token, so nothing to do.
108
+	  return $request;
109
+	}
110 110
 
111
-    $this->client->getLogger()->debug('App Identity authentication');
111
+	$this->client->getLogger()->debug('App Identity authentication');
112 112
 
113
-    // Add the OAuth2 header to the request
114
-    $request->setRequestHeaders(
115
-        array('Authorization' => 'Bearer ' . $this->token['access_token'])
116
-    );
113
+	// Add the OAuth2 header to the request
114
+	$request->setRequestHeaders(
115
+		array('Authorization' => 'Bearer ' . $this->token['access_token'])
116
+	);
117 117
 
118
-    return $request;
118
+	return $request;
119 119
   }
120 120
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 use google\appengine\api\app_identity\AppIdentityService;
24 24
 
25 25
 if (!class_exists('Google_Client')) {
26
-  require_once dirname(__FILE__) . '/../autoload.php';
26
+  require_once dirname(__FILE__).'/../autoload.php';
27 27
 }
28 28
 
29 29
 /**
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
 
113 113
     // Add the OAuth2 header to the request
114 114
     $request->setRequestHeaders(
115
-        array('Authorization' => 'Bearer ' . $this->token['access_token'])
115
+        array('Authorization' => 'Bearer '.$this->token['access_token'])
116 116
     );
117 117
 
118 118
     return $request;
Please login to merge, or discard this patch.
geodirectory-admin/google-api-php-client/src/Google/Auth/Simple.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
   public function __construct(Google_Client $client, $config = null)
32 32
   {
33
-    $this->client = $client;
33
+	$this->client = $client;
34 34
   }
35 35
 
36 36
   /**
@@ -45,19 +45,19 @@  discard block
 block discarded – undo
45 45
    */
46 46
   public function authenticatedRequest(Google_Http_Request $request)
47 47
   {
48
-    $request = $this->sign($request);
49
-    return $this->io->makeRequest($request);
48
+	$request = $this->sign($request);
49
+	return $this->io->makeRequest($request);
50 50
   }
51 51
 
52 52
   public function sign(Google_Http_Request $request)
53 53
   {
54
-    $key = $this->client->getClassConfig($this, 'developer_key');
55
-    if ($key) {
56
-      $this->client->getLogger()->debug(
57
-          'Simple API Access developer key authentication'
58
-      );
59
-      $request->setQueryParam('key', $key);
60
-    }
61
-    return $request;
54
+	$key = $this->client->getClassConfig($this, 'developer_key');
55
+	if ($key) {
56
+	  $this->client->getLogger()->debug(
57
+		  'Simple API Access developer key authentication'
58
+	  );
59
+	  $request->setQueryParam('key', $key);
60
+	}
61
+	return $request;
62 62
   }
63 63
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
  */
17 17
 
18 18
 if (!class_exists('Google_Client')) {
19
-  require_once dirname(__FILE__) . '/../autoload.php';
19
+  require_once dirname(__FILE__).'/../autoload.php';
20 20
 }
21 21
 
22 22
 /**
Please login to merge, or discard this patch.