Completed
Push — master ( b72cd5...dfd409 )
by Dan Michael O.
06:54
created
app/Http/Controllers/DocumentsController.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
             'event' => 'elasticsearch_request',
40 40
             'event_time' => Carbon::now(),
41 41
             'msecs' => round(($t1 - $t0) * 1000),
42
-            'data' => 'results:' . count($response['hits']['hits']),
42
+            'data' => 'results:'.count($response['hits']['hits']),
43 43
         ]);
44 44
         $hits = count($response['hits']['hits']);
45 45
         if ($response['offset'] + $hits < $out['total']) {
@@ -206,11 +206,11 @@  discard block
 block discarded – undo
206 206
                 $cover = $cover->toArray();
207 207
             }
208 208
         } catch (\ErrorException $e) {
209
-            \Log::error('Failed to cache cover, got error: ' . $e->getMessage());
209
+            \Log::error('Failed to cache cover, got error: '.$e->getMessage());
210 210
 
211 211
             return response()->json([
212 212
                 'result' => 'error',
213
-                'error'  => 'Failed to store the cover. Please check that the URL points to a valid image file. Details: ' . $e->getMessage(),
213
+                'error'  => 'Failed to store the cover. Please check that the URL points to a valid image file. Details: '.$e->getMessage(),
214 214
             ]);
215 215
         }
216 216
 
@@ -245,10 +245,10 @@  discard block
 block discarded – undo
245 245
         ];
246 246
 
247 247
         if (is_null($request->text)) {
248
-            \Log::info('Cleared description for ' . $doc->id);
248
+            \Log::info('Cleared description for '.$doc->id);
249 249
             $doc->description = null;
250 250
         } else {
251
-            \Log::info('Stored new description for ' . $doc->id);
251
+            \Log::info('Stored new description for '.$doc->id);
252 252
         }
253 253
 
254 254
         $doc->save();
@@ -276,11 +276,11 @@  discard block
 block discarded – undo
276 276
             $doc->save();
277 277
 
278 278
         } catch (\ErrorException $e) {
279
-            \Log::error('Failed to store status, got error: ' . $e->getMessage());
279
+            \Log::error('Failed to store status, got error: '.$e->getMessage());
280 280
 
281 281
             return response()->json([
282 282
                 'result' => 'error',
283
-                'error'  => 'Failed to store status. Details: ' . $e->getMessage(),
283
+                'error'  => 'Failed to store status. Details: '.$e->getMessage(),
284 284
             ]);
285 285
         }
286 286
 
Please login to merge, or discard this patch.