@@ -251,7 +251,7 @@ protected function queryTika(RequestInterface $request): string
251251 throw new BadResponseException (
252252 'Invalid status code ' . $ response ->getStatusCode (),
253253 $ request ,
254- $ response
254+ $ response,
255255 );
256256 }
257257
@@ -294,12 +294,12 @@ public function extractText(FileInterface $file): string
294294 $ this ->log (
295295 'Text Extraction using Tika Server failed ' ,
296296 $ this ->getLogData ($ file , $ response ),
297- LogLevel::ERROR
297+ LogLevel::ERROR ,
298298 );
299299 } else {
300300 $ this ->log (
301301 'Text Extraction using Tika Server ' ,
302- $ this ->getLogData ($ file , $ response )
302+ $ this ->getLogData ($ file , $ response ),
303303 );
304304 }
305305
@@ -328,14 +328,14 @@ public function extractMetaData(FileInterface $file): array
328328 $ this ->log (
329329 'Meta Data Extraction using Tika Server failed ' ,
330330 $ this ->getLogData ($ file , $ rawResponse ),
331- LogLevel::ERROR
331+ LogLevel::ERROR ,
332332 );
333333 return [];
334334 }
335335
336336 $ this ->log (
337337 'Meta Data Extraction using Tika Server ' ,
338- $ this ->getLogData ($ file , $ rawResponse )
338+ $ this ->getLogData ($ file , $ rawResponse ),
339339 );
340340 return $ response ;
341341 }
@@ -360,12 +360,12 @@ public function detectLanguageFromFile(FileInterface $file): string
360360 $ this ->log (
361361 'Language Detection using Tika Server failed ' ,
362362 $ this ->getLogData ($ file , $ response ),
363- LogLevel::ERROR
363+ LogLevel::ERROR ,
364364 );
365365 } else {
366366 $ this ->log (
367367 'Language Detection using Tika Server ' ,
368- $ this ->getLogData ($ file , $ response )
368+ $ this ->getLogData ($ file , $ response ),
369369 );
370370 }
371371
@@ -480,7 +480,7 @@ protected function createRequest(UriInterface $uri, string $method = 'GET'): Req
480480 $ requestFactory = GeneralUtility::makeInstance (RequestFactory::class);
481481 $ request = $ requestFactory ->createRequest (
482482 $ method ,
483- $ uri
483+ $ uri,
484484 );
485485 return $ request ->withAddedHeader ('User-Agent ' , $ this ->getUserAgent ());
486486 }
0 commit comments