Completed
Push — master ( 7eb3f2...94442b )
by Maxence
01:38
created
lib/Provider/BookmarksProvider.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
lib/Service/BookmarksService.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.