@@ -80,12 +80,12 @@ discard block |
||
80 | 80 | } |
81 | 81 | |
82 | 82 | /** |
83 | - * @param $endpoint |
|
83 | + * @param string $endpoint |
|
84 | 84 | * @param array $params |
85 | 85 | * @param null $body |
86 | 86 | * @param array $headers |
87 | 87 | * |
88 | - * @return mixed |
|
88 | + * @return string |
|
89 | 89 | * @throws \chillerlan\Threema\EndpointException |
90 | 90 | */ |
91 | 91 | protected function getResponse($endpoint, $params = [], $body = null, $headers = []){ |
@@ -619,7 +619,7 @@ discard block |
||
619 | 619 | * |
620 | 620 | * @param string $blobID |
621 | 621 | * |
622 | - * @return mixed |
|
622 | + * @return string |
|
623 | 623 | */ |
624 | 624 | public function download(string $blobID){ |
625 | 625 | return $this->getResponse('/blobs/'.$blobID, $this->getAuthParams()); |
@@ -692,7 +692,7 @@ discard block |
||
692 | 692 | } |
693 | 693 | |
694 | 694 | /** |
695 | - * @param $email |
|
695 | + * @param string $email |
|
696 | 696 | * |
697 | 697 | * @return null|string |
698 | 698 | */ |
@@ -735,9 +735,9 @@ |
||
735 | 735 | $mime = 'application/octet-stream'; |
736 | 736 | |
737 | 737 | if(class_exists('finfo')){ |
738 | - $mime = (new \finfo(FILEINFO_MIME_TYPE ))->file($path); |
|
738 | + $mime = (new \finfo(FILEINFO_MIME_TYPE))->file($path); |
|
739 | 739 | } |
740 | - else if(function_exists('mime_content_type')) { |
|
740 | + else if(function_exists('mime_content_type')){ |
|
741 | 741 | $mime = mime_content_type($path); |
742 | 742 | } |
743 | 743 |
@@ -737,7 +737,7 @@ |
||
737 | 737 | if(class_exists('finfo')){ |
738 | 738 | $mime = (new \finfo(FILEINFO_MIME_TYPE ))->file($path); |
739 | 739 | } |
740 | - else if(function_exists('mime_content_type')) { |
|
740 | + else if(function_exists('mime_content_type')){ |
|
741 | 741 | $mime = mime_content_type($path); |
742 | 742 | } |
743 | 743 |