Completed
Push — master ( 3f9fd6...641a5b )
by Timo
10s
created
Classes/Service/Tika/AppService.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,8 +38,8 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
Classes/Service/Tika/ServerService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -373,7 +373,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Classes/Service/Tika/SolrCellService.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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'],
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
Classes/Service/Extractor/MetaDataExtractor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Classes/ContextMenu/Preview.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
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' => [
Please login to merge, or discard this patch.