Skip to content

Commit

Permalink
Style CS fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
masbug committed Mar 8, 2019
1 parent 7275441 commit 9e6688d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"translated",
"extended"
],
"license": "Apache 2.0",
"license": "Apache-2.0",
"authors": [
{
"name": "Naoki Sawada",
Expand Down
4 changes: 2 additions & 2 deletions src/GoogleDriveAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -1076,7 +1076,7 @@ protected function getFileObject($path, $checkDir = false)
protected function getDownloadUrl($file)
{
if(strpos($file->mimeType, 'application/vnd.google-apps') !== 0) {
$params = [ 'alt' => 'media' ] + $this->optParams;
$params = ['alt' => 'media'] + $this->optParams;
return 'https://www.googleapis.com/drive/v3/files/'.$file->getId().'?'.http_build_query($params);
}

Expand All @@ -1088,7 +1088,7 @@ protected function getDownloadUrl($file)
}
$mime = rawurlencode($mime);

$params = [ 'mimeType' => $mime ] + $this->optParams;
$params = ['mimeType' => $mime] + $this->optParams;
return 'https://www.googleapis.com/drive/v3/files/'.$file->getId().'/export?'.http_build_query($params);
}

Expand Down

0 comments on commit 9e6688d

Please sign in to comment.