Completed
Push — master ( 29bf34...2c2349 )
by Dan Michael O.
02:32
created
app/Http/Controllers/DocumentsController.php 2 patches
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.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -184,11 +184,11 @@  discard block
 block discarded – undo
184 184
                 $cover = $cover->toArray();
185 185
             }
186 186
         } catch (\ErrorException $e) {
187
-            \Log::error('Failed to cache cover, got error: ' . $e->getMessage());
187
+            \Log::error('Failed to cache cover, got error: '.$e->getMessage());
188 188
 
189 189
             return response()->json([
190 190
                 'result' => 'error',
191
-                'error'  => 'Failed to store the cover. Please check that the URL points to a valid image file. Details: ' . $e->getMessage(),
191
+                'error'  => 'Failed to store the cover. Please check that the URL points to a valid image file. Details: '.$e->getMessage(),
192 192
             ]);
193 193
         }
194 194
 
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
         ];
224 224
         $doc->save();
225 225
 
226
-        \Log::info('Stored new description for ' . $doc->id);
226
+        \Log::info('Stored new description for '.$doc->id);
227 227
 
228 228
         $se->indexById($doc->id);
229 229
 
@@ -247,11 +247,11 @@  discard block
 block discarded – undo
247 247
             $doc->save();
248 248
 
249 249
         } catch (\ErrorException $e) {
250
-            \Log::error('Failed to store status, got error: ' . $e->getMessage());
250
+            \Log::error('Failed to store status, got error: '.$e->getMessage());
251 251
 
252 252
             return response()->json([
253 253
                 'result' => 'error',
254
-                'error'  => 'Failed to store status. Details: ' . $e->getMessage(),
254
+                'error'  => 'Failed to store status. Details: '.$e->getMessage(),
255 255
             ]);
256 256
         }
257 257
 
Please login to merge, or discard this patch.