@@ -57,7 +57,7 @@ |
||
57 | 57 | |
58 | 58 | /** |
59 | 59 | * @param $fileId |
60 | - * @param $docId |
|
60 | + * @param string $docId |
|
61 | 61 | * @return bool |
62 | 62 | */ |
63 | 63 | public function insertBookID($fileId, $docId) { |
@@ -145,6 +145,10 @@ discard block |
||
145 | 145 | return new DataResponse($disscussionCount, Http::STATUS_OK); |
146 | 146 | } |
147 | 147 | |
148 | + /** |
|
149 | + * @param string $dir |
|
150 | + * @param string $filename |
|
151 | + */ |
|
148 | 152 | private function getBookIdforPath($dir, $filename){ |
149 | 153 | if (!empty($filename)) { |
150 | 154 | if($dir == '/') { |
@@ -185,7 +189,7 @@ discard block |
||
185 | 189 | * @NoAdminRequired |
186 | 190 | * |
187 | 191 | * @param string $bookID |
188 | - * @return string/boolean |
|
192 | + * @return string |
|
189 | 193 | */ |
190 | 194 | private function fetchDocument($bookID) { |
191 | 195 | $urlDocument = $this->paperhive_base_url . $this->paperhive_api_documents . $bookID; |