Skip to content

Commit 1987ba4

Browse files
author
Ian Barber
committed
Small style guide fixes
1 parent 68fd4cd commit 1987ba4

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

src/Google/Config.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,10 @@ public function setOpenidRealm($realm)
342342
*/
343343
public function setIncludeGrantedScopes($include)
344344
{
345-
$this->setAuthConfig('include_granted_scopes',
346-
$include ? "true" : "false");
345+
$this->setAuthConfig(
346+
'include_granted_scopes',
347+
$include ? "true" : "false"
348+
);
347349
}
348350

349351
/**

src/Google/Http/MediaFileUpload.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -288,13 +288,13 @@ private function getResumeUri()
288288
return $location;
289289
}
290290
$message = $code;
291-
$body = @json_decode( $response->getResponseBody() );
292-
if ( ! empty( $body->error->errors ) ) {
291+
$body = @json_decode($response->getResponseBody());
292+
if (!empty( $body->error->errors ) ) {
293293
$message .= ': ';
294-
foreach( $body->error->errors as $error ) {
294+
foreach ($body->error->errors as $error) {
295295
$message .= "{$error->domain}, {$error->message};";
296296
}
297-
$message = rtrim( $message, ';' );
297+
$message = rtrim($message, ';');
298298
}
299299
throw new Google_Exception("Failed to start the resumable upload (HTTP {$message})");
300300
}

0 commit comments

Comments
 (0)