Passed
Pull Request — master (#123)
by
unknown
05:05
created
Configuration/Backend/Modules.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
         'navigationComponentId' => '@typo3/backend/page-tree/page-tree-element',
27 27
         'controllerActions'     => [
28 28
             \Kitodo\Dlf\Controller\Backend\NewTenantController::class => [
29
-                'index','error','addFormat','addMetadata','addSolrCore','addStructure'
29
+                'index', 'error', 'addFormat', 'addMetadata', 'addSolrCore', 'addStructure'
30 30
             ],
31 31
         ],
32 32
     ],
Please login to merge, or discard this patch.
Tests/Functional/FunctionalTestCase.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
         $this->configurationToUseInTestInstance['EXTENSIONS']['dlf'] = $this->getDlfConfiguration();
97 97
 
98 98
         if ($this->disableJsonWrappedResponse) {
99
-            $this->frameworkExtensionsToLoad = array_filter($this->frameworkExtensionsToLoad, function ($ext) {
99
+            $this->frameworkExtensionsToLoad = array_filter($this->frameworkExtensionsToLoad, function($ext) {
100 100
                 return $ext !== 'Resources/Core/Functional/Extensions/json_response';
101 101
             });
102 102
         }
@@ -108,9 +108,9 @@  discard block
 block discarded – undo
108 108
 
109 109
         $this->persistenceManager = GeneralUtility::makeInstance(PersistenceManager::class);
110 110
 
111
-        $this->baseUrl = 'http://web:8000/public/typo3temp/var/tests/functional-' . $this->identifier . '/';
111
+        $this->baseUrl = 'http://web:8000/public/typo3temp/var/tests/functional-'.$this->identifier.'/';
112 112
         $this->httpClient = new HttpClient([
113
-            'base_uri' => $this->baseUrl . 'index.php',
113
+            'base_uri' => $this->baseUrl.'index.php',
114 114
             'http_errors' => false,
115 115
         ]);
116 116
 
@@ -169,13 +169,13 @@  discard block
 block discarded – undo
169 169
 
170 170
     protected function addSiteConfig($identifier)
171 171
     {
172
-        $siteConfig = Yaml::parseFile(__DIR__ . '/../Fixtures/siteconfig.yaml');
172
+        $siteConfig = Yaml::parseFile(__DIR__.'/../Fixtures/siteconfig.yaml');
173 173
         $siteConfig['base'] = $this->baseUrl;
174 174
         $siteConfig['languages'][0]['base'] = $this->baseUrl;
175 175
 
176
-        $siteConfigPath = $this->instancePath . '/typo3conf/sites/' . $identifier;
176
+        $siteConfigPath = $this->instancePath.'/typo3conf/sites/'.$identifier;
177 177
         @mkdir($siteConfigPath, 0775, true);
178
-        file_put_contents($siteConfigPath . '/config.yaml', Yaml::dump($siteConfig));
178
+        file_put_contents($siteConfigPath.'/config.yaml', Yaml::dump($siteConfig));
179 179
 
180 180
         // refresh site cache (otherwise site config is not found)
181 181
         $finder = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Site\SiteFinder::class);
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
         $jsonDocuments = json_decode(file_get_contents($path), true);
198 198
 
199 199
         $updateQuery = $solr->service->createUpdate();
200
-        $documents = array_map(function ($jsonDoc) use ($updateQuery) {
200
+        $documents = array_map(function($jsonDoc) use ($updateQuery) {
201 201
             $document = $updateQuery->createDocument();
202 202
             foreach ($jsonDoc as $key => $value) {
203 203
                 $document->setField($key, $value);
Please login to merge, or discard this patch.
Classes/Common/Helper.php 1 patch
Spacing   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
                 } elseif ($checksum == 10) {
152 152
                     //TODO: Binary operation "+" between string and 1 results in an error.
153 153
                     // @phpstan-ignore-next-line
154
-                    return self::checkIdentifier(($digits + 1) . substr($id, -2, 2), 'SWD');
154
+                    return self::checkIdentifier(($digits + 1).substr($id, -2, 2), 'SWD');
155 155
                 } elseif (substr($id, -1, 1) != $checksum) {
156 156
                     return false;
157 157
                 }
@@ -357,7 +357,7 @@  discard block
 block discarded – undo
357 357
         $encrypted = openssl_encrypt($string, self::$cipherAlgorithm, $key, OPENSSL_RAW_DATA, $iv);
358 358
         // Merge initialization vector and encrypted data.
359 359
         if ($encrypted !== false) {
360
-            $encrypted = base64_encode($iv . $encrypted);
360
+            $encrypted = base64_encode($iv.$encrypted);
361 361
         }
362 362
         return $encrypted;
363 363
     }
@@ -399,8 +399,8 @@  discard block
 block discarded – undo
399 399
     public static function getHookObjects(string $scriptRelPath): array
400 400
     {
401 401
         $hookObjects = [];
402
-        if (is_array(self::getOptions()[self::$extKey . '/' . $scriptRelPath]['hookClass'])) {
403
-            foreach (self::getOptions()[self::$extKey . '/' . $scriptRelPath]['hookClass'] as $classRef) {
402
+        if (is_array(self::getOptions()[self::$extKey.'/'.$scriptRelPath]['hookClass'])) {
403
+            foreach (self::getOptions()[self::$extKey.'/'.$scriptRelPath]['hookClass'] as $classRef) {
404 404
                 $hookObjects[] = GeneralUtility::makeInstance($classRef);
405 405
             }
406 406
         }
@@ -429,12 +429,12 @@  discard block
 block discarded – undo
429 429
             // NOTE: Only use tables that don't have too many entries!
430 430
             || !in_array($table, ['tx_dlf_collections', 'tx_dlf_libraries', 'tx_dlf_metadata', 'tx_dlf_metadatasubentries', 'tx_dlf_structures', 'tx_dlf_solrcores'])
431 431
         ) {
432
-            self::log('Invalid UID "' . $uid . '" or table "' . $table . '"', LOG_SEVERITY_ERROR);
432
+            self::log('Invalid UID "'.$uid.'" or table "'.$table.'"', LOG_SEVERITY_ERROR);
433 433
             return '';
434 434
         }
435 435
 
436
-        $makeCacheKey = function ($pid, $uid) {
437
-            return $pid . '.' . $uid;
436
+        $makeCacheKey = function($pid, $uid) {
437
+            return $pid.'.'.$uid;
438 438
         };
439 439
 
440 440
         static $cache = [];
@@ -444,9 +444,9 @@  discard block
 block discarded – undo
444 444
 
445 445
             $result = $queryBuilder
446 446
                 ->select(
447
-                    $table . '.index_name AS index_name',
448
-                    $table . '.uid AS uid',
449
-                    $table . '.pid AS pid',
447
+                    $table.'.index_name AS index_name',
448
+                    $table.'.uid AS uid',
449
+                    $table.'.pid AS pid',
450 450
                 )
451 451
                 ->from($table)
452 452
                 ->execute();
@@ -464,7 +464,7 @@  discard block
 block discarded – undo
464 464
         $result = $cache[$table][$cacheKey] ?? '';
465 465
 
466 466
         if ($result === '') {
467
-            self::log('No "index_name" with UID ' . $uid . ' and PID ' . $pid . ' found in table "' . $table . '"', LOG_SEVERITY_WARNING);
467
+            self::log('No "index_name" with UID '.$uid.' and PID '.$pid.' found in table "'.$table.'"', LOG_SEVERITY_WARNING);
468 468
         }
469 469
 
470 470
         return $result;
@@ -493,11 +493,11 @@  discard block
 block discarded – undo
493 493
             // No ISO code, return unchanged.
494 494
             return $code;
495 495
         }
496
-        $lang = LocalizationUtility::translate('LLL:' . $file . ':' . $code);
496
+        $lang = LocalizationUtility::translate('LLL:'.$file.':'.$code);
497 497
         if (!empty($lang)) {
498 498
             return $lang;
499 499
         } else {
500
-            self::log('Language code "' . $code . '" not found in ISO-639 table', LOG_SEVERITY_NOTICE);
500
+            self::log('Language code "'.$code.'" not found in ISO-639 table', LOG_SEVERITY_NOTICE);
501 501
             return $code;
502 502
         }
503 503
     }
@@ -661,7 +661,7 @@  discard block
 block discarded – undo
661 661
         // Sanitize input.
662 662
         $pid = max((int) $pid, 0);
663 663
         if (!$pid) {
664
-            self::log('Invalid PID ' . $pid . ' for translation', LOG_SEVERITY_WARNING);
664
+            self::log('Invalid PID '.$pid.' for translation', LOG_SEVERITY_WARNING);
665 665
             return $indexName;
666 666
         }
667 667
         /** @var PageRepository $pageRepository */
@@ -684,13 +684,13 @@  discard block
 block discarded – undo
684 684
         // First fetch the uid of the received index_name
685 685
         $result = $queryBuilder
686 686
             ->select(
687
-                $table . '.uid AS uid',
688
-                $table . '.l18n_parent AS l18n_parent'
687
+                $table.'.uid AS uid',
688
+                $table.'.l18n_parent AS l18n_parent'
689 689
             )
690 690
             ->from($table)
691 691
             ->where(
692
-                $queryBuilder->expr()->eq($table . '.pid', $pid),
693
-                $queryBuilder->expr()->eq($table . '.index_name', $queryBuilder->expr()->literal($indexName)),
692
+                $queryBuilder->expr()->eq($table.'.pid', $pid),
693
+                $queryBuilder->expr()->eq($table.'.index_name', $queryBuilder->expr()->literal($indexName)),
694 694
                 self::whereExpression($table, true)
695 695
             )
696 696
             ->setMaxResults(1)
@@ -701,12 +701,12 @@  discard block
 block discarded – undo
701 701
         if ($row) {
702 702
             // Now we use the uid of the l18_parent to fetch the index_name of the translated content element.
703 703
             $result = $queryBuilder
704
-                ->select($table . '.index_name AS index_name')
704
+                ->select($table.'.index_name AS index_name')
705 705
                 ->from($table)
706 706
                 ->where(
707
-                    $queryBuilder->expr()->eq($table . '.pid', $pid),
708
-                    $queryBuilder->expr()->eq($table . '.uid', $row['l18n_parent']),
709
-                    $queryBuilder->expr()->eq($table . '.sys_language_uid', (int) $languageContentId),
707
+                    $queryBuilder->expr()->eq($table.'.pid', $pid),
708
+                    $queryBuilder->expr()->eq($table.'.uid', $row['l18n_parent']),
709
+                    $queryBuilder->expr()->eq($table.'.sys_language_uid', (int) $languageContentId),
710 710
                     self::whereExpression($table, true)
711 711
                 )
712 712
                 ->setMaxResults(1)
@@ -724,14 +724,14 @@  discard block
 block discarded – undo
724 724
         if (empty($labels[$table][$pid][$languageContentId][$indexName])) {
725 725
             // Check if this table is allowed for translation.
726 726
             if (in_array($table, ['tx_dlf_collections', 'tx_dlf_libraries', 'tx_dlf_metadata', 'tx_dlf_metadatasubentries', 'tx_dlf_structures'])) {
727
-                $additionalWhere = $queryBuilder->expr()->in($table . '.sys_language_uid', [-1, 0]);
727
+                $additionalWhere = $queryBuilder->expr()->in($table.'.sys_language_uid', [-1, 0]);
728 728
                 if ($languageContentId > 0) {
729 729
                     $additionalWhere = $queryBuilder->expr()->andX(
730 730
                         $queryBuilder->expr()->orX(
731
-                            $queryBuilder->expr()->in($table . '.sys_language_uid', [-1, 0]),
732
-                            $queryBuilder->expr()->eq($table . '.sys_language_uid', (int) $languageContentId)
731
+                            $queryBuilder->expr()->in($table.'.sys_language_uid', [-1, 0]),
732
+                            $queryBuilder->expr()->eq($table.'.sys_language_uid', (int) $languageContentId)
733 733
                         ),
734
-                        $queryBuilder->expr()->eq($table . '.l18n_parent', 0)
734
+                        $queryBuilder->expr()->eq($table.'.l18n_parent', 0)
735 735
                     );
736 736
                 }
737 737
 
@@ -740,7 +740,7 @@  discard block
 block discarded – undo
740 740
                     ->select('*')
741 741
                     ->from($table)
742 742
                     ->where(
743
-                        $queryBuilder->expr()->eq($table . '.pid', $pid),
743
+                        $queryBuilder->expr()->eq($table.'.pid', $pid),
744 744
                         $additionalWhere,
745 745
                         self::whereExpression($table, true)
746 746
                     )
@@ -758,10 +758,10 @@  discard block
 block discarded – undo
758 758
                         }
759 759
                     }
760 760
                 } else {
761
-                    self::log('No translation with PID ' . $pid . ' available in table "' . $table . '" or translation not accessible', LOG_SEVERITY_NOTICE);
761
+                    self::log('No translation with PID '.$pid.' available in table "'.$table.'" or translation not accessible', LOG_SEVERITY_NOTICE);
762 762
                 }
763 763
             } else {
764
-                self::log('No translations available for table "' . $table . '"', LOG_SEVERITY_WARNING);
764
+                self::log('No translations available for table "'.$table.'"', LOG_SEVERITY_WARNING);
765 765
             }
766 766
         }
767 767
 
@@ -805,7 +805,7 @@  discard block
 block discarded – undo
805 805
             return GeneralUtility::makeInstance(ConnectionPool::class)
806 806
                 ->getQueryBuilderForTable($table)
807 807
                 ->expr()
808
-                ->eq($table . '.' . $GLOBALS['TCA'][$table]['ctrl']['delete'], 0);
808
+                ->eq($table.'.'.$GLOBALS['TCA'][$table]['ctrl']['delete'], 0);
809 809
         } else {
810 810
             self::log('Unexpected application type (neither frontend or backend)', LOG_SEVERITY_ERROR);
811 811
             return '1=-1';
@@ -871,7 +871,7 @@  discard block
 block discarded – undo
871 871
         try {
872 872
             $response = $requestFactory->request($url, 'GET', $configuration);
873 873
         } catch (\Exception $e) {
874
-            self::log('Could not fetch data from URL "' . $url . '". Error: ' . $e->getMessage() . '.', LOG_SEVERITY_WARNING);
874
+            self::log('Could not fetch data from URL "'.$url.'". Error: '.$e->getMessage().'.', LOG_SEVERITY_WARNING);
875 875
             return false;
876 876
         }
877 877
         return $response->getBody()->getContents();
@@ -963,9 +963,9 @@  discard block
 block discarded – undo
963 963
         $mimeTypeCollection = GeneralUtility::makeInstance(MimeTypeCollection::class);
964 964
         $mimeTypes = array_filter(
965 965
             $mimeTypeCollection->getMimeTypes(),
966
-            function ($mimeType) use ($categories) {
966
+            function($mimeType) use ($categories) {
967 967
                 foreach ($categories as $category) {
968
-                    if (strpos($mimeType, $category . '/') === 0) {
968
+                    if (strpos($mimeType, $category.'/') === 0) {
969 969
                         return true;
970 970
                     }
971 971
                 }
Please login to merge, or discard this patch.
Classes/Controller/PageViewController.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -184,18 +184,18 @@  discard block
 block discarded – undo
184 184
             }
185 185
 
186 186
             $navigationArray[$i]['next'] = [
187
-                'tx_dlf[docPage][' . $i . ']' =>
187
+                'tx_dlf[docPage]['.$i.']' =>
188 188
                     MathUtility::forceIntegerInRange((int) $this->requestData['docPage'][$i] + 1, 1, $document->numPages, 1)
189 189
             ];
190 190
             $navigationArray[$i]['prev'] = [
191
-                'tx_dlf[docPage][' . $i . ']' =>
191
+                'tx_dlf[docPage]['.$i.']' =>
192 192
                     MathUtility::forceIntegerInRange((int) $this->requestData['docPage'][$i] - 1, 1, $document->numPages, 1)
193 193
             ];
194 194
 
195 195
             $navigateAllPageNext = array_merge(
196 196
                 $navigateAllPageNext,
197 197
                 [
198
-                    'tx_dlf[docPage][' . $i . ']' =>
198
+                    'tx_dlf[docPage]['.$i.']' =>
199 199
                         MathUtility::forceIntegerInRange((int) $this->requestData['docPage'][$i] + 1, 1, $document->numPages, 1)
200 200
                 ]
201 201
             );
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
             $navigateAllPagePrev = array_merge(
204 204
                 $navigateAllPagePrev,
205 205
                 [
206
-                    'tx_dlf[docPage][' . $i . ']' =>
206
+                    'tx_dlf[docPage]['.$i.']' =>
207 207
                         MathUtility::forceIntegerInRange((int) $this->requestData['docPage'][$i] - 1, 1, $document->numPages, 1)
208 208
                 ]
209 209
             );
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
             $navigateAllMeasureNext = array_merge(
212 212
                 $navigateAllMeasureNext,
213 213
                 [
214
-                    'tx_dlf[docMeasure][' . $i . ']' =>
214
+                    'tx_dlf[docMeasure]['.$i.']' =>
215 215
                         MathUtility::forceIntegerInRange((int) $this->requestData['docMeasure'][$i] + 1, 1, $document->numMeasures, 1)
216 216
                 ]
217 217
             );
@@ -219,19 +219,19 @@  discard block
 block discarded – undo
219 219
             $navigateAllMeasurePrev = array_merge(
220 220
                 $navigateAllMeasurePrev,
221 221
                 [
222
-                    'tx_dlf[docMeasure][' . $i . ']' =>
222
+                    'tx_dlf[docMeasure]['.$i.']' =>
223 223
                         MathUtility::forceIntegerInRange((int) $this->requestData['docMeasure'][$i] - 1, 1, $document->numMeasures, 1)
224 224
                 ]
225 225
             );
226 226
 
227 227
             if ($document->numMeasures > 0) {
228 228
                 $navigationMeasureArray[$i]['next'] = [
229
-                    'tx_dlf[docMeasure][' . $i . ']' =>
229
+                    'tx_dlf[docMeasure]['.$i.']' =>
230 230
                         MathUtility::forceIntegerInRange((int) $this->requestData['docMeasure'][$i] + 1, 1, $document->numMeasures, 1)
231 231
                 ];
232 232
 
233 233
                 $navigationMeasureArray[$i]['prev'] = [
234
-                    'tx_dlf[docMeasure][' . $i . ']' =>
234
+                    'tx_dlf[docMeasure]['.$i.']' =>
235 235
                         MathUtility::forceIntegerInRange((int) $this->requestData['docMeasure'][$i] - 1, 1, $document->numMeasures, 1)
236 236
                 ];
237 237
             }
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
             }
286 286
             $params = array_merge(
287 287
                 ['tx_dlf' => $this->requestData],
288
-                ['tx_dlf[multipleSource][' . $nextMultipleSourceKey . ']' => $formAddDocument->getLocation()],
288
+                ['tx_dlf[multipleSource]['.$nextMultipleSourceKey.']' => $formAddDocument->getLocation()],
289 289
                 ['tx_dlf[multiview]' => 1]
290 290
             );
291 291
             $uriBuilder = $this->uriBuilder;
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
                             // build link for each measure
334 334
                             $params = [
335 335
                                 'tx_dlf' => $this->requestData,
336
-                                'tx_dlf[docMeasure][' . $docNumber . ']' => $i
336
+                                'tx_dlf[docMeasure]['.$docNumber.']' => $i
337 337
                             ];
338 338
                         } else {
339 339
                             // build link for each measure
@@ -417,7 +417,7 @@  discard block
 block discarded – undo
417 417
         }
418 418
 
419 419
         if (empty($score)) {
420
-            $this->logger->notice('No score file found for page "' . $page . '" in fileGrps "' . ($this->extConf['files']['fileGrpScore'] ?? '') . '"');
420
+            $this->logger->notice('No score file found for page "'.$page.'" in fileGrps "'.($this->extConf['files']['fileGrpScore'] ?? '').'"');
421 421
         }
422 422
         return $score;
423 423
     }
@@ -448,11 +448,11 @@  discard block
 block discarded – undo
448 448
                 $fulltext['mimetype'] = $file['mimeType'];
449 449
                 break;
450 450
             } else {
451
-                $this->logger->notice('No full-text file found for page "' . $page . '" in fileGrp "' . $fileGrpFulltext . '"');
451
+                $this->logger->notice('No full-text file found for page "'.$page.'" in fileGrp "'.$fileGrpFulltext.'"');
452 452
             }
453 453
         }
454 454
         if (empty($fulltext)) {
455
-            $this->logger->notice('No full-text file found for page "' . $page . '" in fileGrps "' . $this->extConf['files']['fileGrpFulltext'] . '"');
455
+            $this->logger->notice('No full-text file found for page "'.$page.'" in fileGrps "'.$this->extConf['files']['fileGrpFulltext'].'"');
456 456
         }
457 457
         return $fulltext;
458 458
     }
@@ -512,7 +512,7 @@  discard block
 block discarded – undo
512 512
                         'measureIdLinks' => $docMeasures['measureLinks']
513 513
                     ];
514 514
 
515
-                    $jsViewer .= 'tx_dlf_viewer[' . $i . '] = new dlfViewer(' . json_encode($viewer) . ');
515
+                    $jsViewer .= 'tx_dlf_viewer['.$i.'] = new dlfViewer('.json_encode($viewer).');
516 516
                             ';
517 517
                     $i++;
518 518
                 }
@@ -521,8 +521,8 @@  discard block
 block discarded – undo
521 521
             // Viewer configuration.
522 522
             $viewerConfiguration = '$(document).ready(function() {
523 523
                     if (dlfUtils.exists(dlfViewer)) {
524
-                        ' . $jsViewer . '
525
-                        viewerCount = ' . ($i - 1) . ';
524
+                        ' . $jsViewer.'
525
+                        viewerCount = ' . ($i - 1).';
526 526
                     }
527 527
                 });';
528 528
         } else {
@@ -552,7 +552,7 @@  discard block
 block discarded – undo
552 552
             // Viewer configuration.
553 553
             $viewerConfiguration = '$(document).ready(function() {
554 554
                     if (dlfUtils.exists(dlfViewer)) {
555
-                        tx_dlf_viewer = new dlfViewer(' . json_encode($viewer) . ');
555
+                        tx_dlf_viewer = new dlfViewer(' . json_encode($viewer).');
556 556
                     }
557 557
                 });';
558 558
         }
@@ -645,12 +645,12 @@  discard block
 block discarded – undo
645 645
                 }
646 646
                 break;
647 647
             } else {
648
-                $this->logger->notice('No image file found for page "' . $page . '" in fileGrp "' . $fileGrpImages . '"');
648
+                $this->logger->notice('No image file found for page "'.$page.'" in fileGrp "'.$fileGrpImages.'"');
649 649
             }
650 650
         }
651 651
 
652 652
         if (empty($image)) {
653
-            $this->logger->warning('No image file found for page "' . $page . '" in fileGrps "' . $this->extConf['files']['fileGrpImages'] . '"');
653
+            $this->logger->warning('No image file found for page "'.$page.'" in fileGrps "'.$this->extConf['files']['fileGrpImages'].'"');
654 654
         }
655 655
 
656 656
         return $image;
Please login to merge, or discard this patch.
Classes/Common/MetsDocument.php 1 patch
Spacing   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
     {
231 231
         $file = $this->getFileInfo($id);
232 232
         if ($file['mimeType'] === 'application/vnd.kitodo.iiif') {
233
-            $file['location'] = (strrpos($file['location'], 'info.json') === strlen($file['location']) - 9) ? $file['location'] : (strrpos($file['location'], '/') === strlen($file['location']) ? $file['location'] . 'info.json' : $file['location'] . '/info.json');
233
+            $file['location'] = (strrpos($file['location'], 'info.json') === strlen($file['location']) - 9) ? $file['location'] : (strrpos($file['location'], '/') === strlen($file['location']) ? $file['location'].'info.json' : $file['location'].'/info.json');
234 234
             $conf = GeneralUtility::makeInstance(ExtensionConfiguration::class)->get(self::$extKey, 'iiif');
235 235
             IiifHelper::setUrlReader(IiifUrlReader::getInstance());
236 236
             IiifHelper::setMaxThumbnailHeight($conf['thumbnailHeight']);
@@ -240,9 +240,9 @@  discard block
 block discarded – undo
240 240
                 return $service->getImageUrl();
241 241
             }
242 242
         } elseif ($file['mimeType'] === 'application/vnd.netfpx') {
243
-            $baseURL = $file['location'] . (strpos($file['location'], '?') === false ? '?' : '');
243
+            $baseURL = $file['location'].(strpos($file['location'], '?') === false ? '?' : '');
244 244
             // TODO CVT is an optional IIP server capability; in theory, capabilities should be determined in the object request with '&obj=IIP-server'
245
-            return $baseURL . '&CVT=jpeg';
245
+            return $baseURL.'&CVT=jpeg';
246 246
         }
247 247
         return $file['location'];
248 248
     }
@@ -271,14 +271,14 @@  discard block
 block discarded – undo
271 271
      */
272 272
     public function getFileLocation(string $id): string
273 273
     {
274
-        $location = $this->mets->xpath('./mets:fileSec/mets:fileGrp/mets:file[@ID="' . $id . '"]/mets:FLocat[@LOCTYPE="URL"]');
274
+        $location = $this->mets->xpath('./mets:fileSec/mets:fileGrp/mets:file[@ID="'.$id.'"]/mets:FLocat[@LOCTYPE="URL"]');
275 275
         if (
276 276
             !empty($id)
277 277
             && !empty($location)
278 278
         ) {
279 279
             return (string) $location[0]->attributes('http://www.w3.org/1999/xlink')->href;
280 280
         } else {
281
-            $this->logger->warning('There is no file node with @ID "' . $id . '"');
281
+            $this->logger->warning('There is no file node with @ID "'.$id.'"');
282 282
             return '';
283 283
         }
284 284
     }
@@ -290,9 +290,9 @@  discard block
 block discarded – undo
290 290
     {
291 291
         $mets = $this->mets
292 292
             ->xpath(
293
-                './mets:structMap[@TYPE="PHYSICAL"]' .
294
-                '//mets:div[@ID="' .  $pageId .  '"]' .
295
-                '/mets:fptr[@FILEID="' .  $fileId .  '"]' .
293
+                './mets:structMap[@TYPE="PHYSICAL"]'.
294
+                '//mets:div[@ID="'.$pageId.'"]'.
295
+                '/mets:fptr[@FILEID="'.$fileId.'"]'.
296 296
                 '/mets:area/@BEGIN'
297 297
             );
298 298
         return empty($mets) ? '' : $mets[0]->__toString();
@@ -304,14 +304,14 @@  discard block
 block discarded – undo
304 304
      */
305 305
     public function getFileMimeType(string $id): string
306 306
     {
307
-        $mimetype = $this->mets->xpath('./mets:fileSec/mets:fileGrp/mets:file[@ID="' . $id . '"]/@MIMETYPE');
307
+        $mimetype = $this->mets->xpath('./mets:fileSec/mets:fileGrp/mets:file[@ID="'.$id.'"]/@MIMETYPE');
308 308
         if (
309 309
             !empty($id)
310 310
             && !empty($mimetype)
311 311
         ) {
312 312
             return (string) $mimetype[0];
313 313
         } else {
314
-            $this->logger->warning('There is no file node with @ID "' . $id . '" or no MIME type specified');
314
+            $this->logger->warning('There is no file node with @ID "'.$id.'" or no MIME type specified');
315 315
             return '';
316 316
         }
317 317
     }
@@ -331,7 +331,7 @@  discard block
 block discarded – undo
331 331
             return $this->logicalUnits[$id];
332 332
         } elseif (!empty($id)) {
333 333
             // Get specified logical unit.
334
-            $divs = $this->mets->xpath('./mets:structMap[@TYPE="LOGICAL"]//mets:div[@ID="' . $id . '"]');
334
+            $divs = $this->mets->xpath('./mets:structMap[@TYPE="LOGICAL"]//mets:div[@ID="'.$id.'"]');
335 335
         } else {
336 336
             // Get all logical units at top level.
337 337
             $divs = $this->mets->xpath('./mets:structMap[@TYPE="LOGICAL"]/mets:div');
@@ -546,7 +546,7 @@  discard block
 block discarded – undo
546 546
         $cPid = max($cPid, 0);
547 547
         if ($cPid == 0 && ($this->cPid || $this->pid)) {
548 548
             // Retain current PID.
549
-            $cPid = $this->cPid ?: $this->pid;
549
+            $cPid = $this->cPid ? : $this->pid;
550 550
         }
551 551
         return $cPid;
552 552
     }
@@ -615,7 +615,7 @@  discard block
 block discarded – undo
615 615
         if (isset($this->fileInfos[$id]) || in_array('dmdSec', $metadataSections)) {
616 616
             return $metadata;
617 617
         } else {
618
-            $this->logger->warning('No supported descriptive metadata found for logical structure with @ID "' . $id . '"');
618
+            $this->logger->warning('No supported descriptive metadata found for logical structure with @ID "'.$id.'"');
619 619
             return [];
620 620
         }
621 621
     }
@@ -694,7 +694,7 @@  discard block
 block discarded – undo
694 694
         if (!empty($this->logicalUnits[$id])) {
695 695
             return [$this->logicalUnits[$id]['type']];
696 696
         } else {
697
-            $struct = $this->mets->xpath('./mets:structMap[@TYPE="LOGICAL"]//mets:div[@ID="' . $id . '"]/@TYPE');
697
+            $struct = $this->mets->xpath('./mets:structMap[@TYPE="LOGICAL"]//mets:div[@ID="'.$id.'"]/@TYPE');
698 698
             if (!empty($struct)) {
699 699
                 return [(string) $struct[0]];
700 700
             }
@@ -851,17 +851,17 @@  discard block
 block discarded – undo
851 851
             if ($resArray['format'] > 0 && !empty($resArray['xpath_sorting'])) {
852 852
                 $values = $domXPath->evaluate($resArray['xpath_sorting'], $domNode);
853 853
                 if ($values instanceof DOMNodeList && $values->length > 0) {
854
-                    $metadata[$indexName . '_sorting'][0] = trim((string) $values->item(0)->nodeValue);
854
+                    $metadata[$indexName.'_sorting'][0] = trim((string) $values->item(0)->nodeValue);
855 855
                 } elseif (!($values instanceof DOMNodeList)) {
856
-                    $metadata[$indexName . '_sorting'][0] = trim((string) $values);
856
+                    $metadata[$indexName.'_sorting'][0] = trim((string) $values);
857 857
                 }
858 858
             }
859
-            if (empty($metadata[$indexName . '_sorting'][0])) {
859
+            if (empty($metadata[$indexName.'_sorting'][0])) {
860 860
                 if (is_array($currentMetadata)) {
861 861
                     $sortingValue = implode(',', array_column($currentMetadata, 0));
862
-                    $metadata[$indexName . '_sorting'][0] = $sortingValue;
862
+                    $metadata[$indexName.'_sorting'][0] = $sortingValue;
863 863
                 } else {
864
-                    $metadata[$indexName . '_sorting'][0] = $currentMetadata;
864
+                    $metadata[$indexName.'_sorting'][0] = $currentMetadata;
865 865
                 }
866 866
             }
867 867
         }
@@ -922,11 +922,11 @@  discard block
 block discarded – undo
922 922
                         return true;
923 923
                     }
924 924
                 } else {
925
-                    $this->logger->warning('Invalid class/method "' . $class . '->extractMetadata()" for metadata format "' . $this->mdSec[$dmdId]['type'] . '"');
925
+                    $this->logger->warning('Invalid class/method "'.$class.'->extractMetadata()" for metadata format "'.$this->mdSec[$dmdId]['type'].'"');
926 926
                 }
927 927
             }
928 928
         } else {
929
-            $this->logger->notice('Unsupported metadata format "' . $this->mdSec[$dmdId]['type'] . '" in ' . $mdSectionType . ' with @ID "' . $dmdId . '"');
929
+            $this->logger->notice('Unsupported metadata format "'.$this->mdSec[$dmdId]['type'].'" in '.$mdSectionType.' with @ID "'.$dmdId.'"');
930 930
         }
931 931
         return false;
932 932
     }
@@ -1079,7 +1079,7 @@  discard block
 block discarded – undo
1079 1079
             $dmdIds = $this->logicalUnits[$id]['dmdId'] ?? '';
1080 1080
             $admIds = $this->logicalUnits[$id]['admId'] ?? '';
1081 1081
         } else {
1082
-            $mdSec = $this->mets->xpath('./mets:structMap[@TYPE="LOGICAL"]//mets:div[@ID="' . $id . '"]')[0];
1082
+            $mdSec = $this->mets->xpath('./mets:structMap[@TYPE="LOGICAL"]//mets:div[@ID="'.$id.'"]')[0];
1083 1083
             if ($mdSec) {
1084 1084
                 $dmdIds = (string) $mdSec->attributes()->DMDID;
1085 1085
                 $admIds = (string) $mdSec->attributes()->ADMID;
@@ -1109,7 +1109,7 @@  discard block
 block discarded – undo
1109 1109
 
1110 1110
         return array_filter(
1111 1111
             $allMdIds,
1112
-            function ($element) {
1112
+            function($element) {
1113 1113
                 return !empty($element);
1114 1114
             }
1115 1115
         );
@@ -1135,7 +1135,7 @@  discard block
 block discarded – undo
1135 1135
      */
1136 1136
     public function getStructureDepth(string $logId)
1137 1137
     {
1138
-        $ancestors = $this->mets->xpath('./mets:structMap[@TYPE="LOGICAL"]//mets:div[@ID="' . $logId . '"]/ancestor::*');
1138
+        $ancestors = $this->mets->xpath('./mets:structMap[@TYPE="LOGICAL"]//mets:div[@ID="'.$logId.'"]/ancestor::*');
1139 1139
         if (!empty($ancestors)) {
1140 1140
             return count($ancestors);
1141 1141
         } else {
@@ -1159,9 +1159,9 @@  discard block
 block discarded – undo
1159 1159
             $this->registerNamespaces($this->mets);
1160 1160
         } else {
1161 1161
             if (!empty($location)) {
1162
-                $this->logger->error('No METS part found in document with location "' . $location . '".');
1162
+                $this->logger->error('No METS part found in document with location "'.$location.'".');
1163 1163
             } elseif (!empty($this->recordId)) {
1164
-                $this->logger->error('No METS part found in document with recordId "' . $this->recordId . '".');
1164
+                $this->logger->error('No METS part found in document with recordId "'.$this->recordId.'".');
1165 1165
             } else {
1166 1166
                 $this->logger->error('No METS part found in current document.');
1167 1167
             }
@@ -1182,7 +1182,7 @@  discard block
 block discarded – undo
1182 1182
                 return true;
1183 1183
             }
1184 1184
         }
1185
-        $this->logger->error('Could not load XML file from "' . $location . '"');
1185
+        $this->logger->error('Could not load XML file from "'.$location.'"');
1186 1186
         return false;
1187 1187
     }
1188 1188
 
@@ -1305,10 +1305,10 @@  discard block
 block discarded – undo
1305 1305
 
1306 1306
         if (!empty($mdType) && !empty($this->formats[(string) $mdType[0]])) {
1307 1307
             $type = (string) $mdType[0];
1308
-            $xml = $element->xpath('./mets:mdWrap[@MDTYPE="' . $type . '"]/mets:xmlData/' . strtolower($type) . ':' . $this->formats[$type]['rootElement']);
1308
+            $xml = $element->xpath('./mets:mdWrap[@MDTYPE="'.$type.'"]/mets:xmlData/'.strtolower($type).':'.$this->formats[$type]['rootElement']);
1309 1309
         } elseif (!empty($otherMdType) && !empty($this->formats[(string) $otherMdType[0]])) {
1310 1310
             $type = (string) $otherMdType[0];
1311
-            $xml = $element->xpath('./mets:mdWrap[@MDTYPE="OTHER"][@OTHERMDTYPE="' . $type . '"]/mets:xmlData/' . strtolower($type) . ':' . $this->formats[$type]['rootElement']);
1311
+            $xml = $element->xpath('./mets:mdWrap[@MDTYPE="OTHER"][@OTHERMDTYPE="'.$type.'"]/mets:xmlData/'.strtolower($type).':'.$this->formats[$type]['rootElement']);
1312 1312
         }
1313 1313
 
1314 1314
         if (empty($xml)) {
@@ -1513,7 +1513,7 @@  discard block
 block discarded – undo
1513 1513
             // Get track info with begin and extent time for later assignment with musical
1514 1514
             if ((string) $elementNode['TYPE'] === 'track') {
1515 1515
                 foreach ($elementNode->children('http://www.loc.gov/METS/')->fptr as $fptr) {
1516
-                    if (isset($fptr->area) &&  ((string) $fptr->area->attributes()->BETYPE === 'TIME')) {
1516
+                    if (isset($fptr->area) && ((string) $fptr->area->attributes()->BETYPE === 'TIME')) {
1517 1517
                         // Check if file has valid @USE attribute.
1518 1518
                         if (!empty($fileUse[(string) $fptr->area->attributes()->FILEID])) {
1519 1519
                             $this->physicalStructureInfo[$elements[(int) $elementNode['ORDER']]]['tracks'][$fileUse[(string) $fptr->area->attributes()->FILEID]] = [
@@ -1567,9 +1567,9 @@  discard block
 block discarded – undo
1567 1567
             || $forceReload
1568 1568
         ) {
1569 1569
             // Retain current PID.
1570
-            $cPid = $this->cPid ?: $this->pid;
1570
+            $cPid = $this->cPid ? : $this->pid;
1571 1571
             if (!$cPid) {
1572
-                $this->logger->error('Invalid PID ' . $cPid . ' for structure definitions');
1572
+                $this->logger->error('Invalid PID '.$cPid.' for structure definitions');
1573 1573
                 $this->thumbnailLoaded = true;
1574 1574
                 return $this->thumbnail;
1575 1575
             }
@@ -1606,7 +1606,7 @@  discard block
 block discarded – undo
1606 1606
                 if (!empty($resArray['thumbnail'])) {
1607 1607
                     $strctType = Helper::getIndexNameFromUid($resArray['thumbnail'], 'tx_dlf_structures', $cPid);
1608 1608
                     // Check if this document has a structure element of the desired type.
1609
-                    $strctIds = $this->mets->xpath('./mets:structMap[@TYPE="LOGICAL"]//mets:div[@TYPE="' . $strctType . '"]/@ID');
1609
+                    $strctIds = $this->mets->xpath('./mets:structMap[@TYPE="LOGICAL"]//mets:div[@TYPE="'.$strctType.'"]/@ID');
1610 1610
                     if (!empty($strctIds)) {
1611 1611
                         $strctId = (string) $strctIds[0];
1612 1612
                     }
@@ -1629,7 +1629,7 @@  discard block
 block discarded – undo
1629 1629
                     }
1630 1630
                 }
1631 1631
             } else {
1632
-                $this->logger->error('No structure of type "' . $metadata['type'][0] . '" found in database');
1632
+                $this->logger->error('No structure of type "'.$metadata['type'][0].'" found in database');
1633 1633
             }
1634 1634
             $this->thumbnailLoaded = true;
1635 1635
         }
@@ -1675,7 +1675,7 @@  discard block
 block discarded – undo
1675 1675
     {
1676 1676
         if (empty($this->parentHref)) {
1677 1677
             // Get the closest ancestor of the current document which has a MPTR child.
1678
-            $parentMptr = $this->mets->xpath('./mets:structMap[@TYPE="LOGICAL"]//mets:div[@ID="' . $this->toplevelId . '"]/ancestor::mets:div[./mets:mptr][1]/mets:mptr');
1678
+            $parentMptr = $this->mets->xpath('./mets:structMap[@TYPE="LOGICAL"]//mets:div[@ID="'.$this->toplevelId.'"]/ancestor::mets:div[./mets:mptr][1]/mets:mptr');
1679 1679
             if (!empty($parentMptr)) {
1680 1680
                 $this->parentHref = (string) $parentMptr[0]->attributes('http://www.w3.org/1999/xlink')->href;
1681 1681
             }
Please login to merge, or discard this patch.
Configuration/TCA/Overrides/tt_content.php 1 patch
Spacing   +49 added lines, -49 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
26 26
     'Dlf',
27 27
     'Annotation',
28
-    $pluginsLabel . 'annotation.title',
28
+    $pluginsLabel.'annotation.title',
29 29
 );
30 30
 
31 31
 // Plugin "audioplayer".
@@ -36,14 +36,14 @@  discard block
 block discarded – undo
36 36
 
37 37
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
38 38
     $plugin,
39
-    $flexFormsPathPrefix . 'AudioPlayer.xml'
39
+    $flexFormsPathPrefix.'AudioPlayer.xml'
40 40
 );
41 41
 
42 42
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
43 43
     'Dlf',
44 44
     'AudioPlayer',
45
-    $pluginsLabel . 'audioplayer.title',
46
-    $iconsDirectory . 'tx-dlf-audioplayer.svg'
45
+    $pluginsLabel.'audioplayer.title',
46
+    $iconsDirectory.'tx-dlf-audioplayer.svg'
47 47
 );
48 48
 
49 49
 // Plugin "basket".
@@ -54,14 +54,14 @@  discard block
 block discarded – undo
54 54
 
55 55
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
56 56
     $plugin,
57
-    $flexFormsPathPrefix . 'Basket.xml'
57
+    $flexFormsPathPrefix.'Basket.xml'
58 58
 );
59 59
 
60 60
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
61 61
     'Dlf',
62 62
     'Basket',
63
-    $pluginsLabel . 'basket.title',
64
-    $iconsDirectory . 'tx-dlf-basket.svg'
63
+    $pluginsLabel.'basket.title',
64
+    $iconsDirectory.'tx-dlf-basket.svg'
65 65
 );
66 66
 
67 67
 // Plugin "calendar".
@@ -72,14 +72,14 @@  discard block
 block discarded – undo
72 72
 
73 73
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
74 74
     $plugin,
75
-    $flexFormsPathPrefix . 'Calendar.xml'
75
+    $flexFormsPathPrefix.'Calendar.xml'
76 76
 );
77 77
 
78 78
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
79 79
     'Dlf',
80 80
     'Calendar',
81
-    $pluginsLabel . 'calendar.title',
82
-    $iconsDirectory . 'tx-dlf-calendar.svg'
81
+    $pluginsLabel.'calendar.title',
82
+    $iconsDirectory.'tx-dlf-calendar.svg'
83 83
 );
84 84
 
85 85
 // Plugin "collection".
@@ -90,14 +90,14 @@  discard block
 block discarded – undo
90 90
 
91 91
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
92 92
     $plugin,
93
-    $flexFormsPathPrefix . 'Collection.xml'
93
+    $flexFormsPathPrefix.'Collection.xml'
94 94
 );
95 95
 
96 96
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
97 97
     'Dlf',
98 98
     'Collection',
99
-    $pluginsLabel . 'collection.title',
100
-    $iconsDirectory . 'tx-dlf-collection.svg'
99
+    $pluginsLabel.'collection.title',
100
+    $iconsDirectory.'tx-dlf-collection.svg'
101 101
 );
102 102
 
103 103
 // Plugin "embedded3dviewer".
@@ -108,14 +108,14 @@  discard block
 block discarded – undo
108 108
 
109 109
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
110 110
     'dlf_embedded3dviewer',
111
-    $flexFormsPathPrefix . 'Embedded3dViewer.xml'
111
+    $flexFormsPathPrefix.'Embedded3dViewer.xml'
112 112
 );
113 113
 
114 114
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
115 115
     'Dlf',
116 116
     'Embedded3dViewer',
117
-    $pluginsLabel . 'embedded3dviewer.title',
118
-    $iconsDirectory . 'tx-dlf-embedded3dviewer.svg'
117
+    $pluginsLabel.'embedded3dviewer.title',
118
+    $iconsDirectory.'tx-dlf-embedded3dviewer.svg'
119 119
 );
120 120
 
121 121
 // Plugin "feeds".
@@ -126,14 +126,14 @@  discard block
 block discarded – undo
126 126
 
127 127
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
128 128
     $plugin,
129
-    $flexFormsPathPrefix . 'Feeds.xml'
129
+    $flexFormsPathPrefix.'Feeds.xml'
130 130
 );
131 131
 
132 132
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
133 133
     'Dlf',
134 134
     'Feeds',
135
-    $pluginsLabel . 'feeds.title',
136
-    $iconsDirectory . 'tx-dlf-feeds.svg'
135
+    $pluginsLabel.'feeds.title',
136
+    $iconsDirectory.'tx-dlf-feeds.svg'
137 137
 );
138 138
 
139 139
 // Plugin "listview".
@@ -144,14 +144,14 @@  discard block
 block discarded – undo
144 144
 
145 145
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
146 146
     $plugin,
147
-    $flexFormsPathPrefix . 'ListView.xml'
147
+    $flexFormsPathPrefix.'ListView.xml'
148 148
 );
149 149
 
150 150
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
151 151
     'Dlf',
152 152
     'ListView',
153
-    $pluginsLabel . 'listview.title',
154
-    $iconsDirectory . 'tx-dlf-listview.svg'
153
+    $pluginsLabel.'listview.title',
154
+    $iconsDirectory.'tx-dlf-listview.svg'
155 155
 );
156 156
 
157 157
 // Plugin "metadata".
@@ -161,14 +161,14 @@  discard block
 block discarded – undo
161 161
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist'][$plugin] = $addList;
162 162
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
163 163
     $plugin,
164
-    $flexFormsPathPrefix . 'Metadata.xml'
164
+    $flexFormsPathPrefix.'Metadata.xml'
165 165
 );
166 166
 
167 167
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
168 168
     'Dlf',
169 169
     'Metadata',
170
-    $pluginsLabel . 'metadata.title',
171
-    $iconsDirectory . 'tx-dlf-metadata.svg'
170
+    $pluginsLabel.'metadata.title',
171
+    $iconsDirectory.'tx-dlf-metadata.svg'
172 172
 );
173 173
 
174 174
 // Plugin "navigation".
@@ -179,14 +179,14 @@  discard block
 block discarded – undo
179 179
 
180 180
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
181 181
     $plugin,
182
-    $flexFormsPathPrefix . 'Navigation.xml'
182
+    $flexFormsPathPrefix.'Navigation.xml'
183 183
 );
184 184
 
185 185
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
186 186
     'Dlf',
187 187
     'Navigation',
188
-    $pluginsLabel . 'navigation.title',
189
-    $iconsDirectory . 'tx-dlf-navigation.svg'
188
+    $pluginsLabel.'navigation.title',
189
+    $iconsDirectory.'tx-dlf-navigation.svg'
190 190
 );
191 191
 
192 192
 // Plugin "oaipmh".
@@ -197,14 +197,14 @@  discard block
 block discarded – undo
197 197
 
198 198
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
199 199
     $plugin,
200
-    $flexFormsPathPrefix . 'OaiPmh.xml'
200
+    $flexFormsPathPrefix.'OaiPmh.xml'
201 201
 );
202 202
 
203 203
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
204 204
     'Dlf',
205 205
     'OaiPmh',
206
-    $pluginsLabel . 'oaipmh.title',
207
-    $iconsDirectory . 'tx-dlf-oaipmh.svg'
206
+    $pluginsLabel.'oaipmh.title',
207
+    $iconsDirectory.'tx-dlf-oaipmh.svg'
208 208
 );
209 209
 
210 210
 // Plugin "pagegrid".
@@ -214,14 +214,14 @@  discard block
 block discarded – undo
214 214
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist'][$plugin] = $addList;
215 215
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
216 216
     $plugin,
217
-    $flexFormsPathPrefix . 'PageGrid.xml'
217
+    $flexFormsPathPrefix.'PageGrid.xml'
218 218
 );
219 219
 
220 220
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
221 221
     'Dlf',
222 222
     'PageGrid',
223
-    $pluginsLabel . 'pagegrid.title',
224
-    $iconsDirectory . 'tx-dlf-pagegrid.svg'
223
+    $pluginsLabel.'pagegrid.title',
224
+    $iconsDirectory.'tx-dlf-pagegrid.svg'
225 225
 );
226 226
 
227 227
 // Plugin "pageview".
@@ -231,14 +231,14 @@  discard block
 block discarded – undo
231 231
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist'][$plugin] = $addList;
232 232
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
233 233
     $plugin,
234
-    $flexFormsPathPrefix . 'PageView.xml'
234
+    $flexFormsPathPrefix.'PageView.xml'
235 235
 );
236 236
 
237 237
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
238 238
     'Dlf',
239 239
     'PageView',
240
-    $pluginsLabel . 'plugins.pageview.title',
241
-    $iconsDirectory . 'tx-dlf-pageview.svg'
240
+    $pluginsLabel.'plugins.pageview.title',
241
+    $iconsDirectory.'tx-dlf-pageview.svg'
242 242
 );
243 243
 
244 244
 // Plugin "search".
@@ -249,14 +249,14 @@  discard block
 block discarded – undo
249 249
 
250 250
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
251 251
     $plugin,
252
-    $flexFormsPathPrefix . 'Search.xml'
252
+    $flexFormsPathPrefix.'Search.xml'
253 253
 );
254 254
 
255 255
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
256 256
     'Dlf',
257 257
     'Search',
258
-    $pluginsLabel . 'search.title',
259
-    $iconsDirectory . 'tx-dlf-search.svg'
258
+    $pluginsLabel.'search.title',
259
+    $iconsDirectory.'tx-dlf-search.svg'
260 260
 );
261 261
 
262 262
 // Plugin "statistics".
@@ -267,14 +267,14 @@  discard block
 block discarded – undo
267 267
 
268 268
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
269 269
     $plugin,
270
-    $flexFormsPathPrefix . 'Statistics.xml'
270
+    $flexFormsPathPrefix.'Statistics.xml'
271 271
 );
272 272
 
273 273
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
274 274
     'Dlf',
275 275
     'Statistics',
276
-    $pluginsLabel . 'statistics.title',
277
-    $iconsDirectory . 'tx-dlf-statistics.svg'
276
+    $pluginsLabel.'statistics.title',
277
+    $iconsDirectory.'tx-dlf-statistics.svg'
278 278
 );
279 279
 
280 280
 // Plugin "tableofcontents".
@@ -285,14 +285,14 @@  discard block
 block discarded – undo
285 285
 
286 286
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
287 287
     $plugin,
288
-    $flexFormsPathPrefix . 'TableOfContents.xml'
288
+    $flexFormsPathPrefix.'TableOfContents.xml'
289 289
 );
290 290
 
291 291
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
292 292
     'Dlf',
293 293
     'TableOfContents',
294
-    $pluginsLabel . 'tableofcontents.title',
295
-    $iconsDirectory . 'tx-dlf-tableofcontents.svg'
294
+    $pluginsLabel.'tableofcontents.title',
295
+    $iconsDirectory.'tx-dlf-tableofcontents.svg'
296 296
 );
297 297
 
298 298
 // Plugin "toolbox".
@@ -302,12 +302,12 @@  discard block
 block discarded – undo
302 302
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist'][$plugin] = $addList;
303 303
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
304 304
     $plugin,
305
-    $flexFormsPathPrefix . 'Toolbox.xml'
305
+    $flexFormsPathPrefix.'Toolbox.xml'
306 306
 );
307 307
 
308 308
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
309 309
     'Dlf',
310 310
     'Toolbox',
311
-    $pluginsLabel . 'toolbox.title',
312
-    $iconsDirectory . 'tx-dlf-toolbox.svg'
311
+    $pluginsLabel.'toolbox.title',
312
+    $iconsDirectory.'tx-dlf-toolbox.svg'
313 313
 );
Please login to merge, or discard this patch.