Completed
Pull Request — master (#116)
by Timo
02:16
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/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.
Classes/Service/Tika/SolrCellService.php 2 patches
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.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
         // EM might define a different connection than already in use by
56 56
         // Index Queue
57 57
             /** @var ConnectionManager $connectionManager */
58
-        $connectionManager =  GeneralUtility::makeInstance(ConnectionManager::class);
58
+        $connectionManager = GeneralUtility::makeInstance(ConnectionManager::class);
59 59
 
60 60
         $readNode = [
61 61
             'host' => $this->configuration['solrHost'],
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
     {
211 211
         $mapping = [
212 212
             'application/epub+zip' => ['epub'],
213
-            'application/gzip' => ['gz','tgz'],
213
+            'application/gzip' => ['gz', 'tgz'],
214 214
             'application/msword' => ['doc'],
215 215
             'application/pdf' => ['pdf'],
216 216
             'application/rtf' => ['rtf'],
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
             'application/zip' => ['zip'],
226 226
             'application/x-midi' => ['mid'],
227 227
             'application/xml' => ['xml'],
228
-            'audio/aiff' => ['aif','aiff'],
228
+            'audio/aiff' => ['aif', 'aiff'],
229 229
             'audio/basic' => ['au'],
230 230
             'audio/midi' => ['mid'],
231 231
             'audio/mpeg3' => ['mp3'],
@@ -234,11 +234,11 @@  discard block
 block discarded – undo
234 234
             'audio/x-wav' => ['wav'],
235 235
             'image/bmp' => ['bmp'],
236 236
             'image/gif' => ['gif'],
237
-            'image/jpeg' => ['jpg','jpeg'],
237
+            'image/jpeg' => ['jpg', 'jpeg'],
238 238
             'image/png' => ['png'],
239 239
             'image/svg+xml' => ['svg'],
240
-            'image/tiff' => ['tif','tiff'],
241
-            'text/html' => ['html','htm'],
240
+            'image/tiff' => ['tif', 'tiff'],
241
+            'text/html' => ['html', 'htm'],
242 242
             'text/plain' => ['txt'],
243 243
             'text/xml' => ['xml'],
244 244
             'video/mpeg' => ['mp3'],
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
@@ -353,7 +353,7 @@
 block discarded – undo
353 353
     {
354 354
         $headers = [$this->getUserAgent(), 'Content-Type: application/octet-stream', 'Accept: application/json', 'Connection: close'];
355 355
 
356
-        $context = stream_context_create(['http' => ['protocol_version' => 1.1, 'method' => 'GET', 'header' => implode(CRLF, $headers),]]);
356
+        $context = stream_context_create(['http' => ['protocol_version' => 1.1, 'method' => 'GET', 'header' => implode(CRLF, $headers), ]]);
357 357
 
358 358
         $response = $this->queryTika('/mime-types', $context);
359 359
         return $response;
Please login to merge, or discard this patch.