Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
coding46 authored and ferfrost committed Sep 26, 2023
1 parent 4a9af2c commit ef42ed1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Adapter/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function getType(string $identifier): string
if ($identifier->getResourceType() === PixelboxxResourceName::ASSET) {
return FileType::FILE;
}
throw new NotSupportedException(sprintf('File-Type %s is not supported', $identifier->getResourceType()));
throw new NotSupportedException(sprintf('File type %s is not supported', $identifier->getResourceType()));
}

public function read(string $identifier): string
Expand Down Expand Up @@ -142,6 +142,7 @@ private function flattenDirectoryStructure(Folder $folder, array &$directories,

public function lastModified(string $identifier): int
{
// @todo Put field names into constants?
$metadata = $this->client->assets()->getAsset($identifier)->getAsset()->getMetadataByPropertyId('versiondate');
return PixelboxxUtility::buildTimestamp($metadata->getValue());
}
Expand Down

0 comments on commit ef42ed1

Please sign in to comment.