Skip to content

Commit

Permalink
fixup! Apply review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
artonge committed Feb 23, 2023
1 parent ea78e21 commit 0749728
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions lib/Sabre/CollectionPhoto.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,18 +116,4 @@ public function setFavoriteState($favoriteState): bool {
new \Exception('Favorite state is invalide, should be 0 or 1.');
}
}

public function get() {
$node = $this->getNode();

if ($node instanceof File) {
return $node->fopen('r');
} else {
throw new NotFoundException("Photo is a folder");
}
}

public function getFileInfo(): Node {
return $this->getNode();
}
}

0 comments on commit 0749728

Please sign in to comment.