@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | * |
| 141 | 141 | * @param string $userId |
| 142 | 142 | * |
| 143 | - * @return IndexDocument[] |
|
| 143 | + * @return BookmarksDocument[] |
|
| 144 | 144 | */ |
| 145 | 145 | public function generateIndexableDocuments($userId) { |
| 146 | 146 | $bookmarks = $this->bookmarksService->getBookmarksFromUser($this->runner, $userId); |
@@ -179,7 +179,7 @@ discard block |
||
| 179 | 179 | /** |
| 180 | 180 | * @param Index $index |
| 181 | 181 | * |
| 182 | - * @return IndexDocument|null |
|
| 182 | + * @return null|BookmarksDocument |
|
| 183 | 183 | */ |
| 184 | 184 | public function updateDocument(Index $index) { |
| 185 | 185 | return $this->bookmarksService->updateDocument($index); |
@@ -148,7 +148,7 @@ |
||
| 148 | 148 | /** |
| 149 | 149 | * @param $url |
| 150 | 150 | * |
| 151 | - * @return mixed |
|
| 151 | + * @return string |
|
| 152 | 152 | * @throws WebpageIsNotIndexableException |
| 153 | 153 | */ |
| 154 | 154 | private function getWebpageFromUrl($url) { |
@@ -123,7 +123,7 @@ |
||
| 123 | 123 | // TODO - update $document with a error status instead of just ignore ! |
| 124 | 124 | $document->getIndex() |
| 125 | 125 | ->setStatus(Index::INDEX_IGNORE); |
| 126 | - echo 'Exception: ' . json_encode($e->getTrace()) . ' - ' . $e->getMessage() . "\n"; |
|
| 126 | + echo 'Exception: '.json_encode($e->getTrace()).' - '.$e->getMessage()."\n"; |
|
| 127 | 127 | } |
| 128 | 128 | |
| 129 | 129 | $index[] = $document; |