Skip to content

Commit b90b9d5

Browse files
committed
Fix: Run phpcbf to fix issues
1 parent f41c83c commit b90b9d5

File tree

13 files changed

+22
-35
lines changed

13 files changed

+22
-35
lines changed

src/Google/Auth/OAuth2.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public function authenticate($code, $crossClient = false)
9595
'client_secret' => $this->client->getClassConfig($this, 'client_secret')
9696
);
9797

98-
if($crossClient !== true) {
98+
if ($crossClient !== true) {
9999
$arguments['redirect_uri'] = $this->client->getClassConfig($this, 'redirect_uri');
100100
}
101101

src/Google/Client.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,10 @@ public function authenticate($code, $crossClient = false)
129129
}
130130

131131
/**
132-
* Loads a service account key and parameters from a JSON
132+
* Loads a service account key and parameters from a JSON
133133
* file from the Google Developer Console. Uses that and the
134-
* given array of scopes to return an assertion credential for
135-
* use with refreshTokenWithAssertionCredential.
134+
* given array of scopes to return an assertion credential for
135+
* use with refreshTokenWithAssertionCredential.
136136
*
137137
* @param string $jsonLocation File location of the project-key.json.
138138
* @param array $scopes The scopes to assert.

src/Google/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function count()
5656
return count($this->modelData[$this->collection_key]);
5757
}
5858

59-
public function offsetExists ($offset)
59+
public function offsetExists($offset)
6060
{
6161
if (!is_numeric($offset)) {
6262
return parent::offsetExists($offset);

src/Google/Config.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,8 +380,8 @@ public function setDeveloperKey($key)
380380
/**
381381
* Set the hd (hosted domain) parameter streamlines the login process for
382382
* Google Apps hosted accounts. By including the domain of the user, you
383-
* restrict sign-in to accounts at that domain.
384-
*
383+
* restrict sign-in to accounts at that domain.
384+
*
385385
* This should not be used to ensure security on your application - check
386386
* the hd values within an id token (@see Google_Auth_LoginTicket) after sign
387387
* in to ensure that the user is from the domain you were expecting.

src/Google/Http/MediaFileUpload.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ private function getResumeUri()
287287
}
288288
$message = $code;
289289
$body = @json_decode($response->getResponseBody());
290-
if (!empty( $body->error->errors ) ) {
290+
if (!empty($body->error->errors) ) {
291291
$message .= ': ';
292292
foreach ($body->error->errors as $error) {
293293
$message .= "{$error->domain}, {$error->message};";

src/Google/Http/Request.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public function getQueryParams()
130130
return $this->queryParams;
131131
}
132132

133-
/**
133+
/**
134134
* Set a new query parameter.
135135
* @param $key - string to set, does not need to be URL encoded
136136
* @param $value - string to set, does not need to be URL encoded
@@ -441,7 +441,7 @@ public function toBatchString($id)
441441

442442
/**
443443
* Our own version of parse_str that allows for multiple variables
444-
* with the same name.
444+
* with the same name.
445445
* @param $string - the query string to parse
446446
*/
447447
private function parseQuery($string)
@@ -465,7 +465,7 @@ private function parseQuery($string)
465465

466466
/**
467467
* A version of build query that allows for multiple
468-
* duplicate keys.
468+
* duplicate keys.
469469
* @param $parts array of key value pairs
470470
*/
471471
private function buildQuery($parts)
@@ -483,7 +483,7 @@ private function buildQuery($parts)
483483
return implode('&', $return);
484484
}
485485

486-
/**
486+
/**
487487
* If we're POSTing and have no body to send, we can send the query
488488
* parameters in there, which avoids length issues with longer query
489489
* params.

src/Google/Model.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class Google_Model implements ArrayAccess
2525
{
2626
/**
2727
* If you need to specify a NULL JSON value, use Google_Model::NULL_VALUE
28-
* instead - it will be replaced when converting to JSON with a real null.
28+
* instead - it will be replaced when converting to JSON with a real null.
2929
*/
3030
const NULL_VALUE = "{}gapi-php-null";
3131
protected $internal_gapi_mappings = array();

src/Google/Service.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,10 @@ public function getClient()
4747
public function createBatch()
4848
{
4949
return new Google_Http_Batch(
50-
$this->client,
51-
false,
52-
$this->rootUrl,
53-
$this->batchPath
50+
$this->client,
51+
false,
52+
$this->rootUrl,
53+
$this->batchPath
5454
);
5555
}
56-
5756
}

src/Google/Service/Cloudsearch.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,3 @@ public function __construct(Google_Client $client)
5151

5252
}
5353
}
54-
55-
56-
57-

src/Google/Service/Genomics.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,3 @@ public function __construct(Google_Client $client)
5151

5252
}
5353
}
54-
55-
56-
57-

0 commit comments

Comments
 (0)