Completed
Push — master ( 48cc25...48cc25 )
by
unknown
17s queued 15s
created
Classes/Common/Helper.php 1 patch
Spacing   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
                 if (!preg_match('/[0-9]{8}-[0-9]{1}/i', $id)) {
143 143
                     return false;
144 144
                 } elseif ($checksum == 10) {
145
-                    return self::checkIdentifier(($digits + 1) . substr($id, -2, 2), 'SWD');
145
+                    return self::checkIdentifier(($digits + 1).substr($id, -2, 2), 'SWD');
146 146
                 } elseif (substr($id, -1, 1) != $checksum) {
147 147
                     return false;
148 148
                 }
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
         $encrypted = openssl_encrypt($string, self::$cipherAlgorithm, $key, OPENSSL_RAW_DATA, $iv);
315 315
         // Merge initialisation vector and encrypted data.
316 316
         if ($encrypted !== false) {
317
-            $encrypted = base64_encode($iv . $encrypted);
317
+            $encrypted = base64_encode($iv.$encrypted);
318 318
         }
319 319
         return $encrypted;
320 320
     }
@@ -368,8 +368,8 @@  discard block
 block discarded – undo
368 368
     public static function getHookObjects($scriptRelPath)
369 369
     {
370 370
         $hookObjects = [];
371
-        if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][self::$extKey . '/' . $scriptRelPath]['hookClass'])) {
372
-            foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][self::$extKey . '/' . $scriptRelPath]['hookClass'] as $classRef) {
371
+        if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][self::$extKey.'/'.$scriptRelPath]['hookClass'])) {
372
+            foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][self::$extKey.'/'.$scriptRelPath]['hookClass'] as $classRef) {
373 373
                 $hookObjects[] = GeneralUtility::makeInstance($classRef);
374 374
             }
375 375
         }
@@ -395,7 +395,7 @@  discard block
 block discarded – undo
395 395
             !$uid
396 396
             || !in_array($table, ['tx_dlf_collections', 'tx_dlf_libraries', 'tx_dlf_metadata', 'tx_dlf_structures', 'tx_dlf_solrcores'])
397 397
         ) {
398
-            self::log('Invalid UID "' . $uid . '" or table "' . $table . '"', LOG_SEVERITY_ERROR);
398
+            self::log('Invalid UID "'.$uid.'" or table "'.$table.'"', LOG_SEVERITY_ERROR);
399 399
             return '';
400 400
         }
401 401
 
@@ -406,15 +406,15 @@  discard block
 block discarded – undo
406 406
         // Should we check for a specific PID, too?
407 407
         if ($pid !== -1) {
408 408
             $pid = max(intval($pid), 0);
409
-            $where = $queryBuilder->expr()->eq($table . '.pid', $pid);
409
+            $where = $queryBuilder->expr()->eq($table.'.pid', $pid);
410 410
         }
411 411
 
412 412
         // Get index_name from database.
413 413
         $result = $queryBuilder
414
-            ->select($table . '.index_name AS index_name')
414
+            ->select($table.'.index_name AS index_name')
415 415
             ->from($table)
416 416
             ->where(
417
-                $queryBuilder->expr()->eq($table . '.uid', $uid),
417
+                $queryBuilder->expr()->eq($table.'.uid', $uid),
418 418
                 $where,
419 419
                 self::whereExpression($table)
420 420
             )
@@ -424,7 +424,7 @@  discard block
 block discarded – undo
424 424
         if ($resArray = $result->fetch()) {
425 425
             return $resArray['index_name'];
426 426
         } else {
427
-            self::log('No "index_name" with UID ' . $uid . ' and PID ' . $pid . ' found in table "' . $table . '"', LOG_SEVERITY_WARNING);
427
+            self::log('No "index_name" with UID '.$uid.' and PID '.$pid.' found in table "'.$table.'"', LOG_SEVERITY_WARNING);
428 428
             return '';
429 429
         }
430 430
     }
@@ -443,9 +443,9 @@  discard block
 block discarded – undo
443 443
         // Analyze code and set appropriate ISO table.
444 444
         $isoCode = strtolower(trim($code));
445 445
         if (preg_match('/^[a-z]{3}$/', $isoCode)) {
446
-            $file = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath(self::$extKey) . 'Resources/Private/Data/iso-639-2b.xml';
446
+            $file = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath(self::$extKey).'Resources/Private/Data/iso-639-2b.xml';
447 447
         } elseif (preg_match('/^[a-z]{2}$/', $isoCode)) {
448
-            $file = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath(self::$extKey) . 'Resources/Private/Data/iso-639-1.xml';
448
+            $file = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath(self::$extKey).'Resources/Private/Data/iso-639-1.xml';
449 449
         } else {
450 450
             // No ISO code, return unchanged.
451 451
             return $code;
@@ -463,13 +463,13 @@  discard block
 block discarded – undo
463 463
                 $lang = $languageService->getLLL($isoCode, $iso639);
464 464
             }
465 465
         } else {
466
-            self::log('Unexpected TYPO3_MODE "' . \TYPO3_MODE . '"', LOG_SEVERITY_ERROR);
466
+            self::log('Unexpected TYPO3_MODE "'.\TYPO3_MODE.'"', LOG_SEVERITY_ERROR);
467 467
             return $code;
468 468
         }
469 469
         if (!empty($lang)) {
470 470
             return $lang;
471 471
         } else {
472
-            self::log('Language code "' . $code . '" not found in ISO-639 table', LOG_SEVERITY_NOTICE);
472
+            self::log('Language code "'.$code.'" not found in ISO-639 table', LOG_SEVERITY_NOTICE);
473 473
             return $code;
474 474
         }
475 475
     }
@@ -564,7 +564,7 @@  discard block
 block discarded – undo
564 564
             '-' => 39,
565 565
             ':' => 17,
566 566
         ];
567
-        $urn = strtolower($base . $id);
567
+        $urn = strtolower($base.$id);
568 568
         if (preg_match('/[^a-z0-9:-]/', $urn)) {
569 569
             self::log('Invalid chars in given parameters', LOG_SEVERITY_WARNING);
570 570
             return '';
@@ -578,7 +578,7 @@  discard block
 block discarded – undo
578 578
             $checksum += ($i + 1) * intval(substr($digits, $i, 1));
579 579
         }
580 580
         $checksum = substr(intval($checksum / intval(substr($digits, -1, 1))), -1, 1);
581
-        return $base . $id . $checksum;
581
+        return $base.$id.$checksum;
582 582
     }
583 583
 
584 584
     /**
@@ -672,7 +672,7 @@  discard block
 block discarded – undo
672 672
         // Sanitize input.
673 673
         $pid = max(intval($pid), 0);
674 674
         if (!$pid) {
675
-            self::log('Invalid PID ' . $pid . ' for translation', LOG_SEVERITY_WARNING);
675
+            self::log('Invalid PID '.$pid.' for translation', LOG_SEVERITY_WARNING);
676 676
             return $index_name;
677 677
         }
678 678
         /** @var \TYPO3\CMS\Frontend\Page\PageRepository $pageRepository */
@@ -694,13 +694,13 @@  discard block
 block discarded – undo
694 694
         // First fetch the uid of the received index_name
695 695
         $result = $queryBuilder
696 696
             ->select(
697
-                $table . '.uid AS uid',
698
-                $table . '.l18n_parent AS l18n_parent'
697
+                $table.'.uid AS uid',
698
+                $table.'.l18n_parent AS l18n_parent'
699 699
             )
700 700
             ->from($table)
701 701
             ->where(
702
-                $queryBuilder->expr()->eq($table . '.pid', $pid),
703
-                $queryBuilder->expr()->eq($table . '.index_name', $queryBuilder->expr()->literal($index_name)),
702
+                $queryBuilder->expr()->eq($table.'.pid', $pid),
703
+                $queryBuilder->expr()->eq($table.'.index_name', $queryBuilder->expr()->literal($index_name)),
704 704
                 self::whereExpression($table, true)
705 705
             )
706 706
             ->setMaxResults(1)
@@ -713,12 +713,12 @@  discard block
 block discarded – undo
713 713
             $resArray = $allResults[0];
714 714
 
715 715
             $result = $queryBuilder
716
-                ->select($table . '.index_name AS index_name')
716
+                ->select($table.'.index_name AS index_name')
717 717
                 ->from($table)
718 718
                 ->where(
719
-                    $queryBuilder->expr()->eq($table . '.pid', $pid),
720
-                    $queryBuilder->expr()->eq($table . '.uid', $resArray['l18n_parent']),
721
-                    $queryBuilder->expr()->eq($table . '.sys_language_uid', intval($languageAspect->getContentId())),
719
+                    $queryBuilder->expr()->eq($table.'.pid', $pid),
720
+                    $queryBuilder->expr()->eq($table.'.uid', $resArray['l18n_parent']),
721
+                    $queryBuilder->expr()->eq($table.'.sys_language_uid', intval($languageAspect->getContentId())),
722 722
                     self::whereExpression($table, true)
723 723
                 )
724 724
                 ->setMaxResults(1)
@@ -736,14 +736,14 @@  discard block
 block discarded – undo
736 736
         if (empty($labels[$table][$pid][$languageAspect->getContentId()][$index_name])) {
737 737
             // Check if this table is allowed for translation.
738 738
             if (in_array($table, ['tx_dlf_collections', 'tx_dlf_libraries', 'tx_dlf_metadata', 'tx_dlf_structures'])) {
739
-                $additionalWhere = $queryBuilder->expr()->in($table . '.sys_language_uid', [-1, 0]);
739
+                $additionalWhere = $queryBuilder->expr()->in($table.'.sys_language_uid', [-1, 0]);
740 740
                 if ($languageAspect->getContentId() > 0) {
741 741
                     $additionalWhere = $queryBuilder->expr()->andX(
742 742
                         $queryBuilder->expr()->orX(
743
-                            $queryBuilder->expr()->in($table . '.sys_language_uid', [-1, 0]),
744
-                            $queryBuilder->expr()->eq($table . '.sys_language_uid', intval($languageAspect->getContentId()))
743
+                            $queryBuilder->expr()->in($table.'.sys_language_uid', [-1, 0]),
744
+                            $queryBuilder->expr()->eq($table.'.sys_language_uid', intval($languageAspect->getContentId()))
745 745
                         ),
746
-                        $queryBuilder->expr()->eq($table . '.l18n_parent', 0)
746
+                        $queryBuilder->expr()->eq($table.'.l18n_parent', 0)
747 747
                     );
748 748
                 }
749 749
 
@@ -752,7 +752,7 @@  discard block
 block discarded – undo
752 752
                     ->select('*')
753 753
                     ->from($table)
754 754
                     ->where(
755
-                        $queryBuilder->expr()->eq($table . '.pid', $pid),
755
+                        $queryBuilder->expr()->eq($table.'.pid', $pid),
756 756
                         $additionalWhere,
757 757
                         self::whereExpression($table, true)
758 758
                     )
@@ -770,10 +770,10 @@  discard block
 block discarded – undo
770 770
                         }
771 771
                     }
772 772
                 } else {
773
-                    self::log('No translation with PID ' . $pid . ' available in table "' . $table . '" or translation not accessible', LOG_SEVERITY_NOTICE);
773
+                    self::log('No translation with PID '.$pid.' available in table "'.$table.'" or translation not accessible', LOG_SEVERITY_NOTICE);
774 774
                 }
775 775
             } else {
776
-                self::log('No translations available for table "' . $table . '"', LOG_SEVERITY_WARNING);
776
+                self::log('No translations available for table "'.$table.'"', LOG_SEVERITY_WARNING);
777 777
             }
778 778
         }
779 779
 
@@ -815,9 +815,9 @@  discard block
 block discarded – undo
815 815
             return GeneralUtility::makeInstance(ConnectionPool::class)
816 816
                 ->getQueryBuilderForTable($table)
817 817
                 ->expr()
818
-                ->eq($table . '.' . $GLOBALS['TCA'][$table]['ctrl']['delete'], 0);
818
+                ->eq($table.'.'.$GLOBALS['TCA'][$table]['ctrl']['delete'], 0);
819 819
         } else {
820
-            self::log('Unexpected TYPO3_MODE "' . \TYPO3_MODE . '"', LOG_SEVERITY_ERROR);
820
+            self::log('Unexpected TYPO3_MODE "'.\TYPO3_MODE.'"', LOG_SEVERITY_ERROR);
821 821
             return '1=-1';
822 822
         }
823 823
     }
@@ -856,7 +856,7 @@  discard block
 block discarded – undo
856 856
      */
857 857
     public static function polyfillExtbaseClassesForTYPO3v9()
858 858
     {
859
-        $classes = require __DIR__ . '/../../Configuration/Extbase/Persistence/Classes.php';
859
+        $classes = require __DIR__.'/../../Configuration/Extbase/Persistence/Classes.php';
860 860
 
861 861
         $objectManager = GeneralUtility::makeInstance(ObjectManager::class);
862 862
         $configurationManager = $objectManager->get(ConfigurationManager::class);
@@ -912,10 +912,10 @@  discard block
 block discarded – undo
912 912
         try {
913 913
             $response = $requestFactory->request($url, 'GET', $configuration);
914 914
         } catch (\Exception $e) {
915
-            self::log('Could not fetch data from URL "' . $url . '". Error: ' . $e->getMessage() . '.', LOG_SEVERITY_WARNING);
915
+            self::log('Could not fetch data from URL "'.$url.'". Error: '.$e->getMessage().'.', LOG_SEVERITY_WARNING);
916 916
             return false;
917 917
         }
918
-        $content  = $response->getBody()->getContents();
918
+        $content = $response->getBody()->getContents();
919 919
 
920 920
         return $content;
921 921
     }
Please login to merge, or discard this patch.
Classes/Controller/StatisticsController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,13 +33,13 @@
 block discarded – undo
33 33
         $foundNumbers = $this->documentRepository->getStatisticsForSelectedCollection($this->settings);
34 34
 
35 35
         // Set replacements.
36
-        $args['###TITLES###'] = $foundNumbers['titles'] . ' ' . htmlspecialchars(
36
+        $args['###TITLES###'] = $foundNumbers['titles'].' '.htmlspecialchars(
37 37
             LocalizationUtility::translate(
38 38
                 ($foundNumbers['titles'] > 1 ? 'titles' : 'title'), 'dlf'
39 39
             )
40 40
         );
41 41
 
42
-        $args['###VOLUMES###'] = $foundNumbers['volumes'] . ' ' . htmlspecialchars(
42
+        $args['###VOLUMES###'] = $foundNumbers['volumes'].' '.htmlspecialchars(
43 43
             LocalizationUtility::translate(
44 44
                 ($foundNumbers['volumes'] > 1 ? 'volumes' : 'volume'), 'dlf'
45 45
             )
Please login to merge, or discard this patch.
Classes/Domain/Repository/DocumentRepository.php 1 patch
Spacing   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -358,7 +358,7 @@  discard block
 block discarded – undo
358 358
 
359 359
         $excludeOtherWhere = '';
360 360
         if ($settings['excludeOther']) {
361
-            $excludeOtherWhere = 'tx_dlf_documents.pid=' . intval($settings['storagePid']);
361
+            $excludeOtherWhere = 'tx_dlf_documents.pid='.intval($settings['storagePid']);
362 362
         }
363 363
         // Check if there are any metadata to suggest.
364 364
         $result = $queryBuilder
@@ -410,12 +410,12 @@  discard block
 block discarded – undo
410 410
         $connection = GeneralUtility::makeInstance(ConnectionPool::class)
411 411
             ->getConnectionForTable('tx_dlf_documents');
412 412
 
413
-        $sql = 'SELECT `tx_dlf_documents`.*, GROUP_CONCAT(DISTINCT `tx_dlf_collections`.`oai_name` ORDER BY `tx_dlf_collections`.`oai_name` SEPARATOR " ") AS `collections` ' .
414
-            'FROM `tx_dlf_documents` ' .
415
-            'INNER JOIN `tx_dlf_relations` ON `tx_dlf_relations`.`uid_local` = `tx_dlf_documents`.`uid` ' .
416
-            'INNER JOIN `tx_dlf_collections` ON `tx_dlf_collections`.`uid` = `tx_dlf_relations`.`uid_foreign` ' .
417
-            'WHERE `tx_dlf_documents`.`record_id` = ? ' .
418
-            'AND `tx_dlf_relations`.`ident`="docs_colls" ' .
413
+        $sql = 'SELECT `tx_dlf_documents`.*, GROUP_CONCAT(DISTINCT `tx_dlf_collections`.`oai_name` ORDER BY `tx_dlf_collections`.`oai_name` SEPARATOR " ") AS `collections` '.
414
+            'FROM `tx_dlf_documents` '.
415
+            'INNER JOIN `tx_dlf_relations` ON `tx_dlf_relations`.`uid_local` = `tx_dlf_documents`.`uid` '.
416
+            'INNER JOIN `tx_dlf_collections` ON `tx_dlf_collections`.`uid` = `tx_dlf_relations`.`uid_foreign` '.
417
+            'WHERE `tx_dlf_documents`.`record_id` = ? '.
418
+            'AND `tx_dlf_relations`.`ident`="docs_colls" '.
419 419
             $where;
420 420
 
421 421
         $values = [
@@ -445,13 +445,13 @@  discard block
 block discarded – undo
445 445
         $connection = GeneralUtility::makeInstance(ConnectionPool::class)
446 446
             ->getConnectionForTable('tx_dlf_documents');
447 447
 
448
-        $sql = 'SELECT `tx_dlf_documents`.*, GROUP_CONCAT(DISTINCT `tx_dlf_collections`.`oai_name` ORDER BY `tx_dlf_collections`.`oai_name` SEPARATOR " ") AS `collections` ' .
449
-            'FROM `tx_dlf_documents` ' .
450
-            'INNER JOIN `tx_dlf_relations` ON `tx_dlf_relations`.`uid_local` = `tx_dlf_documents`.`uid` ' .
451
-            'INNER JOIN `tx_dlf_collections` ON `tx_dlf_collections`.`uid` = `tx_dlf_relations`.`uid_foreign` ' .
452
-            'WHERE `tx_dlf_documents`.`uid` IN ( ? ) ' .
453
-            'AND `tx_dlf_relations`.`ident`="docs_colls" ' .
454
-            'AND ' . Helper::whereExpression('tx_dlf_collections') . ' ' .
448
+        $sql = 'SELECT `tx_dlf_documents`.*, GROUP_CONCAT(DISTINCT `tx_dlf_collections`.`oai_name` ORDER BY `tx_dlf_collections`.`oai_name` SEPARATOR " ") AS `collections` '.
449
+            'FROM `tx_dlf_documents` '.
450
+            'INNER JOIN `tx_dlf_relations` ON `tx_dlf_relations`.`uid_local` = `tx_dlf_documents`.`uid` '.
451
+            'INNER JOIN `tx_dlf_collections` ON `tx_dlf_collections`.`uid` = `tx_dlf_relations`.`uid_foreign` '.
452
+            'WHERE `tx_dlf_documents`.`uid` IN ( ? ) '.
453
+            'AND `tx_dlf_relations`.`ident`="docs_colls" '.
454
+            'AND '.Helper::whereExpression('tx_dlf_collections').' '.
455 455
             'GROUP BY `tx_dlf_documents`.`uid` ';
456 456
 
457 457
         $values = [
@@ -533,13 +533,13 @@  discard block
 block discarded – undo
533 533
         // Set search query.
534 534
         if (
535 535
             (!empty($searchParams['fulltext']))
536
-            || preg_match('/' . $fields['fulltext'] . ':\((.*)\)/', trim($searchParams['query']), $matches)
536
+            || preg_match('/'.$fields['fulltext'].':\((.*)\)/', trim($searchParams['query']), $matches)
537 537
         ) {
538 538
             // If the query already is a fulltext query e.g using the facets
539 539
             $searchParams['query'] = empty($matches[1]) ? $searchParams['query'] : $matches[1];
540 540
             // Search in fulltext field if applicable. Query must not be empty!
541 541
             if (!empty($searchParams['query'])) {
542
-                $query = $fields['fulltext'] . ':(' . Solr::escapeQuery(trim($searchParams['query'])) . ')';
542
+                $query = $fields['fulltext'].':('.Solr::escapeQuery(trim($searchParams['query'])).')';
543 543
             }
544 544
             $params['fulltext'] = true;
545 545
         } else {
@@ -562,9 +562,9 @@  discard block
 block discarded – undo
562 562
                         in_array($searchParams['extOperator'][$i], $allowedOperators)
563 563
                     ) {
564 564
                         if (!empty($query)) {
565
-                            $query .= ' ' . $searchParams['extOperator'][$i] . ' ';
565
+                            $query .= ' '.$searchParams['extOperator'][$i].' ';
566 566
                         }
567
-                        $query .= Indexer::getIndexFieldName($searchParams['extField'][$i], $this->settings['storagePid']) . ':(' . Solr::escapeQuery($searchParams['extQuery'][$i]) . ')';
567
+                        $query .= Indexer::getIndexFieldName($searchParams['extField'][$i], $this->settings['storagePid']).':('.Solr::escapeQuery($searchParams['extQuery'][$i]).')';
568 568
                     }
569 569
                 }
570 570
             }
@@ -584,12 +584,12 @@  discard block
 block discarded – undo
584 584
         ) {
585 585
             // Search in document and all subordinates (valid for up to three levels of hierarchy).
586 586
             $params['filterquery'][]['query'] = '_query_:"{!join from='
587
-                . $fields['uid'] . ' to=' . $fields['partof'] . '}'
588
-                . $fields['uid'] . ':{!join from=' . $fields['uid'] . ' to=' . $fields['partof'] . '}'
589
-                . $fields['uid'] . ':' . $searchParams['documentId'] . '"' . ' OR {!join from='
590
-                . $fields['uid'] . ' to=' . $fields['partof'] . '}'
591
-                . $fields['uid'] . ':' . $searchParams['documentId'] . ' OR '
592
-                . $fields['uid'] . ':' . $searchParams['documentId'];
587
+                . $fields['uid'].' to='.$fields['partof'].'}'
588
+                . $fields['uid'].':{!join from='.$fields['uid'].' to='.$fields['partof'].'}'
589
+                . $fields['uid'].':'.$searchParams['documentId'].'"'.' OR {!join from='
590
+                . $fields['uid'].' to='.$fields['partof'].'}'
591
+                . $fields['uid'].':'.$searchParams['documentId'].' OR '
592
+                . $fields['uid'].':'.$searchParams['documentId'];
593 593
         }
594 594
 
595 595
         // if a collection is given, we prepare the collection query string
@@ -597,7 +597,7 @@  discard block
 block discarded – undo
597 597
             $collecionsQueryString = $collection->getIndexName();
598 598
             $params['filterquery'][]['query'] = 'toplevel:true';
599 599
             $params['filterquery'][]['query'] = 'partof:0';
600
-            $params['filterquery'][]['query'] = 'collection_faceting:("' . $collecionsQueryString . '")';
600
+            $params['filterquery'][]['query'] = 'collection_faceting:("'.$collecionsQueryString.'")';
601 601
         }
602 602
 
603 603
         // Set some query parameters.
@@ -626,8 +626,8 @@  discard block
 block discarded – undo
626 626
         if ($listedMetadata) {
627 627
             foreach ($listedMetadata as $metadata) {
628 628
                 if ($metadata->getIndexStored() || $metadata->getIndexIndexed()) {
629
-                    $listMetadataRecord = $metadata->getIndexName() . '_' . ($metadata->getIndexTokenized() ? 't' : 'u') . ($metadata->getIndexStored() ? 's' : 'u') . ($metadata->getIndexIndexed() ? 'i' : 'u');
630
-                    $params['fields'] .= ',' . $listMetadataRecord;
629
+                    $listMetadataRecord = $metadata->getIndexName().'_'.($metadata->getIndexTokenized() ? 't' : 'u').($metadata->getIndexStored() ? 's' : 'u').($metadata->getIndexIndexed() ? 'i' : 'u');
630
+                    $params['fields'] .= ','.$listMetadataRecord;
631 631
                     $params['listMetadataRecords'][$metadata->getIndexName()] = $listMetadataRecord;
632 632
                 }
633 633
             }
@@ -713,7 +713,7 @@  discard block
 block discarded – undo
713 713
                     if (empty($documents[$doc['uid']]['title']) && ($documents[$doc['uid']]['partOf'] > 0)) {
714 714
                         $parentDocument = $this->findByUid($documents[$doc['uid']]['partOf']);
715 715
                         if ($parentDocument) {
716
-                            $documents[$doc['uid']]['title'] = '[' . $parentDocument->getTitle() . ']';
716
+                            $documents[$doc['uid']]['title'] = '['.$parentDocument->getTitle().']';
717 717
                         }
718 718
                     }
719 719
                 }
@@ -737,7 +737,7 @@  discard block
 block discarded – undo
737 737
         $metadataArray = [];
738 738
 
739 739
         // Set some query parameters.
740
-        $params['query'] = 'uid:' . $uid;
740
+        $params['query'] = 'uid:'.$uid;
741 741
         $params['start'] = 0;
742 742
         $params['rows'] = 1;
743 743
         $params['sort'] = ['score' => 'desc'];
@@ -749,8 +749,8 @@  discard block
 block discarded – undo
749 749
         if ($listedMetadata) {
750 750
             foreach ($listedMetadata as $metadata) {
751 751
                 if ($metadata->getIndexStored() || $metadata->getIndexIndexed()) {
752
-                    $listMetadataRecord = $metadata->getIndexName() . '_' . ($metadata->getIndexTokenized() ? 't' : 'u') . ($metadata->getIndexStored() ? 's' : 'u') . ($metadata->getIndexIndexed() ? 'i' : 'u');
753
-                    $params['fields'] .= ',' . $listMetadataRecord;
752
+                    $listMetadataRecord = $metadata->getIndexName().'_'.($metadata->getIndexTokenized() ? 't' : 'u').($metadata->getIndexStored() ? 's' : 'u').($metadata->getIndexIndexed() ? 'i' : 'u');
753
+                    $params['fields'] .= ','.$listMetadataRecord;
754 754
                     $params['listMetadataRecords'][$metadata->getIndexName()] = $listMetadataRecord;
755 755
                 }
756 756
             }
@@ -800,7 +800,7 @@  discard block
 block discarded – undo
800 800
         $cache = null;
801 801
         // Calculate cache identifier.
802 802
         if ($enableCache === true) {
803
-            $cacheIdentifier = Helper::digest($solr->core . print_r($parameters, true));
803
+            $cacheIdentifier = Helper::digest($solr->core.print_r($parameters, true));
804 804
             $cache = GeneralUtility::makeInstance(CacheManager::class)->getCache('tx_dlf_solr');
805 805
         }
806 806
         $resultSet = [
Please login to merge, or discard this patch.
Classes/Controller/PageViewController.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -146,11 +146,11 @@  discard block
 block discarded – undo
146 146
                 $fulltext['mimetype'] = $this->document->getDoc()->getFileMimeType($this->document->getDoc()->physicalStructureInfo[$this->document->getDoc()->physicalStructure[$page]]['files'][$fileGrpFulltext]);
147 147
                 break;
148 148
             } else {
149
-                $this->logger->notice('No full-text file found for page "' . $page . '" in fileGrp "' . $fileGrpFulltext . '"');
149
+                $this->logger->notice('No full-text file found for page "'.$page.'" in fileGrp "'.$fileGrpFulltext.'"');
150 150
             }
151 151
         }
152 152
         if (empty($fulltext)) {
153
-            $this->logger->notice('No full-text file found for page "' . $page . '" in fileGrps "' . $this->extConf['fileGrpFulltext'] . '"');
153
+            $this->logger->notice('No full-text file found for page "'.$page.'" in fileGrps "'.$this->extConf['fileGrpFulltext'].'"');
154 154
         }
155 155
         return $fulltext;
156 156
     }
@@ -168,12 +168,12 @@  discard block
 block discarded – undo
168 168
         $viewerConfiguration = '$(document).ready(function() {
169 169
                 if (dlfUtils.exists(dlfViewer)) {
170 170
                     tx_dlf_viewer = new dlfViewer({
171
-                        controls: ["' . implode('", "', $this->controls) . '"],
172
-                        div: "' . $this->settings['elementId'] . '",
173
-                        images: ' . json_encode($this->images) . ',
174
-                        fulltexts: ' . json_encode($this->fulltexts) . ',
175
-                        annotationContainers: ' . json_encode($this->annotationContainers) . ',
176
-                        useInternalProxy: ' . ($this->settings['useInternalProxy'] ? 1 : 0) . '
171
+                        controls: ["' . implode('", "', $this->controls).'"],
172
+                        div: "' . $this->settings['elementId'].'",
173
+                        images: ' . json_encode($this->images).',
174
+                        fulltexts: ' . json_encode($this->fulltexts).',
175
+                        annotationContainers: ' . json_encode($this->annotationContainers).',
176
+                        useInternalProxy: ' . ($this->settings['useInternalProxy'] ? 1 : 0).'
177 177
                     });
178 178
                 }
179 179
             });';
@@ -274,11 +274,11 @@  discard block
 block discarded – undo
274 274
                 }
275 275
                 break;
276 276
             } else {
277
-                $this->logger->notice('No image file found for page "' . $page . '" in fileGrp "' . $fileGrpImages . '"');
277
+                $this->logger->notice('No image file found for page "'.$page.'" in fileGrp "'.$fileGrpImages.'"');
278 278
             }
279 279
         }
280 280
         if (empty($image)) {
281
-            $this->logger->warning('No image file found for page "' . $page . '" in fileGrps "' . $this->extConf['fileGrpImages'] . '"');
281
+            $this->logger->warning('No image file found for page "'.$page.'" in fileGrps "'.$this->extConf['fileGrpImages'].'"');
282 282
         }
283 283
         return $image;
284 284
     }
Please login to merge, or discard this patch.