diff --git a/composer.json b/composer.json index af02e47..d10a22d 100644 --- a/composer.json +++ b/composer.json @@ -7,7 +7,7 @@ "translated", "extended" ], - "license": "Apache 2.0", + "license": "Apache-2.0", "authors": [ { "name": "Naoki Sawada", diff --git a/src/GoogleDriveAdapter.php b/src/GoogleDriveAdapter.php index 6056b47..b384b06 100644 --- a/src/GoogleDriveAdapter.php +++ b/src/GoogleDriveAdapter.php @@ -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); } @@ -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); }