1515use OCP \Files \SimpleFS \ISimpleFolder ;
1616use OCP \Image ;
1717use Psr \Log \LoggerInterface ;
18- use Sabre \CardDAV \Card ;
18+ use Sabre \CardDAV \ICard ;
1919use Sabre \VObject \Document ;
2020use Sabre \VObject \Parameter ;
2121use Sabre \VObject \Property \Binary ;
@@ -43,7 +43,7 @@ public function __construct(
4343 /**
4444 * @throws NotFoundException
4545 */
46- public function get (int $ addressBookId , string $ cardUri , int $ size , Card $ card ): ISimpleFile {
46+ public function get (int $ addressBookId , string $ cardUri , int $ size , ICard $ card ): ISimpleFile {
4747 $ folder = $ this ->getFolder ($ addressBookId , $ cardUri );
4848
4949 if ($ this ->isEmpty ($ folder )) {
@@ -68,7 +68,7 @@ private function isEmpty(ISimpleFolder $folder): bool {
6868 /**
6969 * @throws NotPermittedException
7070 */
71- private function init (ISimpleFolder $ folder , Card $ card ): void {
71+ private function init (ISimpleFolder $ folder , ICard $ card ): void {
7272 $ data = $ this ->getPhoto ($ card );
7373
7474 if ($ data === false || !isset ($ data ['Content-Type ' ])) {
@@ -168,10 +168,10 @@ private function getExtension(ISimpleFolder $folder): string {
168168 }
169169
170170 /**
171- * @param Card $node
171+ * @param ICard $node
172172 * @return false|array{body: string, Content-Type: string}
173173 */
174- private function getPhoto (Card $ node ) {
174+ private function getPhoto (ICard $ node ) {
175175 try {
176176 $ vObject = $ this ->readCard ($ node ->get ());
177177 return $ this ->getPhotoFromVObject ($ vObject );
0 commit comments