Skip to content

Commit

Permalink
Fixed parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Lasse Lehtinen committed Aug 11, 2023
1 parent 5eaf889 commit 387cdb1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/Assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public function search(
*/
public function browse(
string $path,
?string $fromRoot = null,
string $fromRoot = null,
?bool $includeFolders = true,
?bool $includeAsset = true,
?string $includeExtensions = '.collection, .dossier, .task'
Expand Down Expand Up @@ -128,8 +128,8 @@ public function browse(
*/
public function create(
string $filename,
?string $folderPath = null,
?array $metadata = null,
string $folderPath = null,
array $metadata = null,
?string $metadataToReturn = 'all',
) {
$response = $this->client->request('POST', 'create', [
Expand Down Expand Up @@ -167,8 +167,8 @@ public function create(
*/
public function update(
string $id,
?string $filename = null,
?array $metadata = null,
string $filename = null,
array $metadata = null,
?string $metadataToReturn = 'all',
) {
// Form request
Expand Down Expand Up @@ -211,9 +211,9 @@ public function update(
* @return (object) Either processedCount or processId depending if async is true or false
*/
public function remove(
?string $query = null,
string $query = null,
?array $ids = [],
?string $folderPath = null,
string $folderPath = null,
?bool $async = false
) {
if ($ids !== null && is_array($ids)) {
Expand Down

0 comments on commit 387cdb1

Please sign in to comment.