Passed
Push — master ( a9cd1d...d886ae )
by Timo
03:31
created
Build/Release/pre_upload_check.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 $version = $EM_CONF['tika']['version'];
7 7
 $validVersionPattern = '/^(\d+\.)?(\d+\.)?(\*|\d+)$/';
8 8
 $match = preg_match($validVersionPattern, $version);
9
-if($match > 0) {
9
+if ($match > 0) {
10 10
     echo "Version was a valid release version: " . $version . PHP_EOL;
11 11
     exit(0);
12 12
 } else {
Please login to merge, or discard this patch.
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 1 patch
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.
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.
Tests/Unit/Service/Tika/ServerServiceTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
 
80 80
         // test
81 81
         $registryMock->set('tx_tika', 'server.pid',
82
-            Argument::that(function ($arg) {
82
+            Argument::that(function($arg) {
83 83
                 return (is_int($arg) && $arg == 1000);
84 84
             }))->shouldHaveBeenCalled();
85 85
     }
Please login to merge, or discard this patch.
Tests/Unit/Service/Tika/SolrCellServiceTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
         $solrWriter = $this->prophet->prophesize(SolrWriteService::class);
87 87
         $solrWriter->extractByQuery(Argument::type(SolrCellQuery::class))
88 88
             ->willReturn([
89
-                $expectedValue,     // extracted text is index 0
89
+                $expectedValue, // extracted text is index 0
90 90
                 'meta data element' // meta data is index 1
91 91
             ]);
92 92
 
Please login to merge, or discard this patch.
Tests/Classes/Service/TextExtractionServiceTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -274,7 +274,7 @@
 block discarded – undo
274 274
             'html');
275 275
         $service->process();
276 276
 
277
-        $expectedText = 'åäö';    // åäö
277
+        $expectedText = 'åäö'; // åäö
278 278
         $extractedText = $service->getOutput();
279 279
 
280 280
         $this->assertContains($expectedText, $extractedText);
Please login to merge, or discard this patch.
Tests/Integration/Service/Tika/ServerServiceTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -296,7 +296,7 @@
 block discarded – undo
296 296
 
297 297
         $expectedTextFromWord = 'Sample Word Document';
298 298
         $extractedText = $service->extractText($file);
299
-        $expectedTextFromPDF= 'Tika - Content Analysis Toolkit';
299
+        $expectedTextFromPDF = 'Tika - Content Analysis Toolkit';
300 300
 
301 301
         $this->assertContains($expectedTextFromWord, $extractedText);
302 302
         $this->assertContains($expectedTextFromPDF, $extractedText);
Please login to merge, or discard this patch.