@@ -38,8 +38,8 @@ |
||
38 | 38 | class AppService extends AbstractService |
39 | 39 | { |
40 | 40 | /** |
41 | - * @var array |
|
42 | - */ |
|
41 | + * @var array |
|
42 | + */ |
|
43 | 43 | protected static $supportedMimeTypes = []; |
44 | 44 | |
45 | 45 | /** |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | */ |
204 | 204 | public function getSupportedMimeTypes() |
205 | 205 | { |
206 | - if(is_array(self::$supportedMimeTypes) && count(self::$supportedMimeTypes) > 0) { |
|
206 | + if (is_array(self::$supportedMimeTypes) && count(self::$supportedMimeTypes) > 0) { |
|
207 | 207 | return self::$supportedMimeTypes; |
208 | 208 | } |
209 | 209 | |
@@ -225,8 +225,8 @@ discard block |
||
225 | 225 | preg_match_all('/^[\s]*alias:[\s]*.*/im', $mimeTypeOutput, $aliasTypes); |
226 | 226 | |
227 | 227 | $supportedTypes = $coreTypes[0]; |
228 | - foreach($aliasTypes[0] as $aliasType) { |
|
229 | - $supportedTypes[] = trim(str_replace('alias:','', $aliasType)); |
|
228 | + foreach ($aliasTypes[0] as $aliasType) { |
|
229 | + $supportedTypes[] = trim(str_replace('alias:', '', $aliasType)); |
|
230 | 230 | } |
231 | 231 | |
232 | 232 | $supportedTypes = array_filter($supportedTypes); |
@@ -373,7 +373,7 @@ |
||
373 | 373 | */ |
374 | 374 | public function getSupportedMimeTypes() |
375 | 375 | { |
376 | - if(is_array(self::$supportedMimeTypes) && count(self::$supportedMimeTypes) > 0) { |
|
376 | + if (is_array(self::$supportedMimeTypes) && count(self::$supportedMimeTypes) > 0) { |
|
377 | 377 | return self::$supportedMimeTypes; |
378 | 378 | } |
379 | 379 |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | { |
199 | 199 | $mapping = [ |
200 | 200 | 'application/epub+zip' => ['epub'], |
201 | - 'application/gzip' => ['gz','tgz'], |
|
201 | + 'application/gzip' => ['gz', 'tgz'], |
|
202 | 202 | 'application/msword' => ['doc'], |
203 | 203 | 'application/pdf' => ['pdf'], |
204 | 204 | 'application/rtf' => ['rtf'], |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | 'application/zip' => ['zip'], |
214 | 214 | 'application/x-midi' => ['mid'], |
215 | 215 | 'application/xml' => ['xml'], |
216 | - 'audio/aiff' => ['aif','aiff'], |
|
216 | + 'audio/aiff' => ['aif', 'aiff'], |
|
217 | 217 | 'audio/basic' => ['au'], |
218 | 218 | 'audio/midi' => ['mid'], |
219 | 219 | 'audio/mpeg3' => ['mp3'], |
@@ -222,11 +222,11 @@ discard block |
||
222 | 222 | 'audio/x-wav' => ['wav'], |
223 | 223 | 'image/bmp' => ['bmp'], |
224 | 224 | 'image/gif' => ['gif'], |
225 | - 'image/jpeg' => ['jpg','jpeg'], |
|
225 | + 'image/jpeg' => ['jpg', 'jpeg'], |
|
226 | 226 | 'image/png' => ['png'], |
227 | 227 | 'image/svg+xml' => ['svg'], |
228 | - 'image/tiff' => ['tif','tiff'], |
|
229 | - 'text/html' => ['html','htm'], |
|
228 | + 'image/tiff' => ['tif', 'tiff'], |
|
229 | + 'text/html' => ['html', 'htm'], |
|
230 | 230 | 'text/plain' => ['txt'], |
231 | 231 | 'text/xml' => ['xml'], |
232 | 232 | 'video/mpeg' => ['mp3'], |
@@ -83,7 +83,7 @@ |
||
83 | 83 | public function extractText(FileInterface $file) |
84 | 84 | { |
85 | 85 | $localTempFilePath = $file->getForLocalProcessing(false); |
86 | - /** @var Query $query */ |
|
86 | + /** @var Query $query */ |
|
87 | 87 | $query = GeneralUtility::makeInstance(Query::class); |
88 | 88 | $query->setFile($localTempFilePath); |
89 | 89 | $query->setExtractOnly(true); |
@@ -111,7 +111,7 @@ |
||
111 | 111 | protected function getExtractedMetaDataFromTikaService($file) |
112 | 112 | { |
113 | 113 | $tikaService = $this->getExtractor(); |
114 | - $result= $tikaService->extractMetaData($file); |
|
114 | + $result = $tikaService->extractMetaData($file); |
|
115 | 115 | |
116 | 116 | return $result; |
117 | 117 | } |
@@ -4,7 +4,7 @@ |
||
4 | 4 | use TYPO3\CMS\Backend\ContextMenu\ItemProviders\AbstractProvider; |
5 | 5 | use TYPO3\CMS\Core\Resource\File; |
6 | 6 | |
7 | -class Preview extends AbstractProvider{ |
|
7 | +class Preview extends AbstractProvider { |
|
8 | 8 | |
9 | 9 | protected $itemsConfiguration = [ |
10 | 10 | 'tika_preview' => [ |