Completed
Push — master ( 60f903...2a2504 )
by Dan Michael O.
07:32
created
app/DescriptionScraper.php 1 patch
Doc Comments   +8 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,6 @@  discard block
 block discarded – undo
15 15
     /**
16 16
      * Create a new scraper.
17 17
      *
18
-     * @param Client $client
19 18
      */
20 19
     public function __construct()
21 20
     {
@@ -35,6 +34,11 @@  discard block
 block discarded – undo
35 34
         }
36 35
     }
37 36
 
37
+    /**
38
+     * @param string $msg
39
+     * @param Document $doc
40
+     * @param string[] $args
41
+     */
38 42
     public function notify($msg, $doc, $args, $level = 'warning')
39 43
     {
40 44
         $msg = vsprintf($msg, $args);
@@ -46,6 +50,9 @@  discard block
 block discarded – undo
46 50
         ])->send();
47 51
     }
48 52
 
53
+    /**
54
+     * @param string $url
55
+     */
49 56
     public function scrape($url)
50 57
     {
51 58
         foreach ($this->scrapers as $scraper) {
Please login to merge, or discard this patch.
app/Http/Controllers/CollectionsController.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
     /**
11 11
      * Display a listing of the resource.
12 12
      *
13
-     * @return Response
13
+     * @return \Illuminate\Http\JsonResponse
14 14
      */
15 15
     public function index()
16 16
     {
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      *
25 25
      * @param int $id
26 26
      *
27
-     * @return Response
27
+     * @return \Illuminate\Http\JsonResponse
28 28
      */
29 29
     public function show($id)
30 30
     {
Please login to merge, or discard this patch.
app/Search/DocumentsIndex.php 1 patch
Doc Comments   +17 added lines, -1 removed lines patch added patch discarded remove patch
@@ -168,6 +168,7 @@  discard block
 block discarded – undo
168 168
      * Returns the number of documents the subject is used on.
169 169
      *
170 170
      * @param int $id
171
+     * @param string $type
171 172
      *
172 173
      * @return int
173 174
      */
@@ -185,8 +186,8 @@  discard block
 block discarded – undo
185 186
     /**
186 187
      * Build an array of document usage count per subject.
187 188
      *
188
-     * @param array|int $subject_ids
189 189
      *
190
+     * @param integer $entity_ids
190 191
      * @return array
191 192
      */
192 193
     public function addToUsageCache($entity_ids, $type)
@@ -264,6 +265,9 @@  discard block
 block discarded – undo
264 265
         $this->index(Document::with('subjects', 'cover')->findOrFail($docId));
265 266
     }
266 267
 
268
+    /**
269
+     * @param integer $version
270
+     */
267 271
     public function createVersion($version = null)
268 272
     {
269 273
         if (is_null($version)) {
@@ -307,6 +311,9 @@  discard block
 block discarded – undo
307 311
         return $version;
308 312
     }
309 313
 
314
+    /**
315
+     * @param integer $version
316
+     */
310 317
     public function dropVersion($version)
311 318
     {
312 319
         try {
@@ -318,6 +325,9 @@  discard block
 block discarded – undo
318 325
         }
319 326
     }
320 327
 
328
+    /**
329
+     * @param string $action
330
+     */
321 331
     public function addAction(&$actions, $action, $version)
322 332
     {
323 333
         if ($version) {
@@ -325,6 +335,9 @@  discard block
 block discarded – undo
325 335
         }
326 336
     }
327 337
 
338
+    /**
339
+     * @param integer $newVersion
340
+     */
328 341
     public function activateVersion($newVersion)
329 342
     {
330 343
         $oldVersion = $this->getCurrentVersion();
@@ -336,6 +349,9 @@  discard block
 block discarded – undo
336 349
         }
337 350
     }
338 351
 
352
+    /**
353
+     * @param integer $version
354
+     */
339 355
     public function versionExists($version)
340 356
     {
341 357
         return $this->client->indices()->exists(['index' => $this->esIndex . '_v' . $version]);
Please login to merge, or discard this patch.
app/Http/Controllers/DocumentsController.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
     /**
14 14
      * Display a listing of the resource.
15 15
      *
16
-     * @return Response
16
+     * @return \Illuminate\Http\JsonResponse
17 17
      */
18 18
     public function index(SearchDocumentsRequest $request, DocumentsIndex $se)
19 19
     {
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      * @param DocumentsIndex $se
66 66
      * @param int            $id
67 67
      *
68
-     * @return Response
68
+     * @return \Illuminate\Http\JsonResponse
69 69
      */
70 70
     public function show(Request $request, DocumentsIndex $se, $id)
71 71
     {
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
     /**
139 139
      * Show cover.
140 140
      *
141
-     * @return Response
141
+     * @return \Illuminate\Http\JsonResponse
142 142
      */
143 143
     public function cover($document_id)
144 144
     {
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
     /**
153 153
      * Store cover.
154 154
      *
155
-     * @return Response
155
+     * @return \Illuminate\Http\JsonResponse
156 156
      */
157 157
     public function storeCover($document_id, Request $request, DocumentsIndex $se)
158 158
     {
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
     /**
205 205
      * Store description.
206 206
      *
207
-     * @return Response
207
+     * @return \Illuminate\Http\JsonResponse
208 208
      */
209 209
     public function storeDescription($document_id, Request $request, DocumentsIndex $se)
210 210
     {
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
     /**
236 236
      * Store "Cannot find cover"
237 237
      *
238
-     * @return Response
238
+     * @return \Illuminate\Http\JsonResponse
239 239
      */
240 240
     public function cannotFindCover($document_id, Request $request, DocumentsIndex $se)
241 241
     {
Please login to merge, or discard this patch.