Passed
Pull Request — master (#123)
by
unknown
11:56 queued 08:15
created
Classes/Controller/ListViewController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
         // extract collection(s) from collection parameter
83 83
         $collections = [];
84 84
         if (array_key_exists('collection', $this->searchParams)) {
85
-            foreach(explode(',', $this->searchParams['collection']) as $collectionEntry) {
85
+            foreach (explode(',', $this->searchParams['collection']) as $collectionEntry) {
86 86
                 $collections[] = $this->collectionRepository->findByUid((int) $collectionEntry);
87 87
             }
88 88
         }
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
             $simplePagination = new SimplePagination($solrPaginator);
111 111
 
112 112
             $pagination = $this->buildSimplePagination($simplePagination, $solrPaginator);
113
-            $this->view->assignMultiple([ 'pagination' => $pagination, 'paginator' => $solrPaginator ]);
113
+            $this->view->assignMultiple(['pagination' => $pagination, 'paginator' => $solrPaginator]);
114 114
         }
115 115
 
116 116
         $this->view->assign('viewData', $this->viewData);
Please login to merge, or discard this patch.
Classes/Controller/MetadataController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
         }
137 137
 
138 138
         if (empty(array_filter($metadata))) {
139
-            $this->logger->warning('No metadata found for document with UID ' . $this->document->getUid());
139
+            $this->logger->warning('No metadata found for document with UID '.$this->document->getUid());
140 140
             return;
141 141
         }
142 142
         ksort($metadata);
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
                     $this->parseMetadata($i, $name, $value, $metadata);
175 175
 
176 176
                     if (is_array($metadata[$i][$name])) {
177
-                        $metadata[$i][$name] = array_values(array_filter($metadata[$i][$name], function ($metadataValue) {
177
+                        $metadata[$i][$name] = array_values(array_filter($metadata[$i][$name], function($metadataValue) {
178 178
                             return !empty($metadataValue);
179 179
                         }));
180 180
                     }
@@ -391,7 +391,7 @@  discard block
 block discarded – undo
391 391
         if (empty(implode('', $value)) && $this->settings['getTitle'] && $this->document->getPartof()) {
392 392
             $superiorTitle = AbstractDocument::getTitle($this->document->getPartof(), true);
393 393
             if (!empty($superiorTitle)) {
394
-                $metadata[$i]['title'] = ['[' . $superiorTitle . ']'];
394
+                $metadata[$i]['title'] = ['['.$superiorTitle.']'];
395 395
             }
396 396
         }
397 397
     }
Please login to merge, or discard this patch.
ext_localconf.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -66,20 +66,20 @@
 block discarded – undo
66 66
 $_EXTKEY = 'dlf';
67 67
 // Register tools for toolbox plugin.
68 68
 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'] = [];
69
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY) . '_fulltexttool'] = 'LLL:EXT:dlf/Resources/Private/Language/locallang_labels.xlf:tx_dlf_toolbox.fulltexttool';
70
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY) . '_annotationtool'] = 'LLL:EXT:dlf/Resources/Private/Language/locallang_labels.xlf:tx_dlf_toolbox.annotationtool';
71
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY) . '_fulltextdownloadtool'] = 'LLL:EXT:dlf/Resources/Private/Language/locallang_labels.xlf:tx_dlf_toolbox.fulltextdownloadtool';
72
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY) . '_imagedownloadtool'] = 'LLL:EXT:dlf/Resources/Private/Language/locallang_labels.xlf:tx_dlf_toolbox.imagedownloadtool';
73
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY) . '_imagemanipulationtool'] = 'LLL:EXT:dlf/Resources/Private/Language/locallang_labels.xlf:tx_dlf_toolbox.imagemanipulationtool';
74
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY) . '_pdfdownloadtool'] = 'LLL:EXT:dlf/Resources/Private/Language/locallang_labels.xlf:tx_dlf_toolbox.pdfdownloadtool';
75
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY) . '_searchindocumenttool'] = 'LLL:EXT:dlf/Resources/Private/Language/locallang_labels.xlf:tx_dlf_toolbox.searchindocumenttool';
69
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY).'_fulltexttool'] = 'LLL:EXT:dlf/Resources/Private/Language/locallang_labels.xlf:tx_dlf_toolbox.fulltexttool';
70
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY).'_annotationtool'] = 'LLL:EXT:dlf/Resources/Private/Language/locallang_labels.xlf:tx_dlf_toolbox.annotationtool';
71
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY).'_fulltextdownloadtool'] = 'LLL:EXT:dlf/Resources/Private/Language/locallang_labels.xlf:tx_dlf_toolbox.fulltextdownloadtool';
72
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY).'_imagedownloadtool'] = 'LLL:EXT:dlf/Resources/Private/Language/locallang_labels.xlf:tx_dlf_toolbox.imagedownloadtool';
73
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY).'_imagemanipulationtool'] = 'LLL:EXT:dlf/Resources/Private/Language/locallang_labels.xlf:tx_dlf_toolbox.imagemanipulationtool';
74
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY).'_pdfdownloadtool'] = 'LLL:EXT:dlf/Resources/Private/Language/locallang_labels.xlf:tx_dlf_toolbox.pdfdownloadtool';
75
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY).'_searchindocumenttool'] = 'LLL:EXT:dlf/Resources/Private/Language/locallang_labels.xlf:tx_dlf_toolbox.searchindocumenttool';
76 76
 // Register hooks.
77 77
 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = \Kitodo\Dlf\Hooks\DataHandler::class;
78 78
 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][] = \Kitodo\Dlf\Hooks\DataHandler::class;
79 79
 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Common/MetsDocument.php']['hookClass'][] = \Kitodo\Dlf\Hooks\KitodoProductionHacks::class;
80 80
 // Register AJAX eID handlers.
81 81
 if ($GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['dlf']['general']['enableInternalProxy'] ?? false) {
82
-    $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_dlf_pageview_proxy'] = \Kitodo\Dlf\Eid\PageViewProxy::class . '::main';
82
+    $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_dlf_pageview_proxy'] = \Kitodo\Dlf\Eid\PageViewProxy::class.'::main';
83 83
 }
84 84
 // Use Caching Framework for Solr queries
85 85
 $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['tx_dlf_solr'] ??= [];
Please login to merge, or discard this patch.
Classes/Controller/Backend/NewTenantController.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
 
251 251
             $data['tx_dlf_metadata'][uniqid('NEW')] = [
252 252
                 'pid' => $this->pid,
253
-                'label' => $this->getLLL('metadata.' . $indexName, $this->siteLanguages[0]->getTypo3Language(), $metadataLabels),
253
+                'label' => $this->getLLL('metadata.'.$indexName, $this->siteLanguages[0]->getTypo3Language(), $metadataLabels),
254 254
                 'index_name' => $indexName,
255 255
                 'format' => implode(',', $formatIds),
256 256
                 'default_value' => $values['default_value'],
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
                     'pid' => $this->pid,
290 290
                     'sys_language_uid' => $siteLanguage->getLanguageId(),
291 291
                     'l18n_parent' => $id,
292
-                    'label' => $this->getLLL('metadata.' . $indexName, $siteLanguage->getTypo3Language(), $metadataLabels),
292
+                    'label' => $this->getLLL('metadata.'.$indexName, $siteLanguage->getTypo3Language(), $metadataLabels),
293 293
                 ];
294 294
             }
295 295
 
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
 
316 316
         if ($this->solrCoreRepository->findOneByPid($this->pid) === null) {
317 317
             $newRecord = GeneralUtility::makeInstance(SolrCore::class);
318
-            $newRecord->setLabel($this->getLLL('flexform.solrcore', $this->siteLanguages[0]->getTypo3Language(), $beLabels). ' (PID ' . $this->pid . ')');
318
+            $newRecord->setLabel($this->getLLL('flexform.solrcore', $this->siteLanguages[0]->getTypo3Language(), $beLabels).' (PID '.$this->pid.')');
319 319
             $indexName = Solr::createCore('');
320 320
             if (!empty($indexName)) {
321 321
                 $newRecord->setIndexName($indexName);
@@ -355,7 +355,7 @@  discard block
 block discarded – undo
355 355
             $data['tx_dlf_structures'][uniqid('NEW')] = [
356 356
                 'pid' => $this->pid,
357 357
                 'toplevel' => $values['toplevel'],
358
-                'label' => $this->getLLL('structure.' . $indexName, $this->siteLanguages[0]->getTypo3Language(), $structureLabels),
358
+                'label' => $this->getLLL('structure.'.$indexName, $this->siteLanguages[0]->getTypo3Language(), $structureLabels),
359 359
                 'index_name' => $indexName,
360 360
                 'oai_name' => $values['oai_name'],
361 361
                 'thumbnail' => 0,
@@ -380,7 +380,7 @@  discard block
 block discarded – undo
380 380
                     'pid' => $this->pid,
381 381
                     'sys_language_uid' => $siteLanguage->getLanguageId(),
382 382
                     'l18n_parent' => $id,
383
-                    'label' => $this->getLLL('structure.' . $indexName, $siteLanguage->getTypo3Language(), $structureLabels),
383
+                    'label' => $this->getLLL('structure.'.$indexName, $siteLanguage->getTypo3Language(), $structureLabels),
384 384
                 ];
385 385
             }
386 386
 
@@ -475,7 +475,7 @@  discard block
 block discarded – undo
475 475
         } elseif (isset($langArray['default'][$index][0]['target'])) {
476 476
             return $langArray['default'][$index][0]['target'];
477 477
         } else {
478
-            return 'Missing translation for ' . $index;
478
+            return 'Missing translation for '.$index;
479 479
         }
480 480
     }
481 481
 
@@ -490,7 +490,7 @@  discard block
 block discarded – undo
490 490
      */
491 491
     private function getRecords(string $recordType): array
492 492
     {
493
-        $filePath = Environment::getPublicPath() . '/typo3conf/ext/dlf/Resources/Private/Data/' . $recordType . 'Defaults.json';
493
+        $filePath = Environment::getPublicPath().'/typo3conf/ext/dlf/Resources/Private/Data/'.$recordType.'Defaults.json';
494 494
 
495 495
         $resourceFactory = GeneralUtility::makeInstance(ResourceFactory::class);
496 496
         $fileObject = $resourceFactory->getFileObjectFromCombinedIdentifier($filePath);
Please login to merge, or discard this patch.
Classes/Common/Solr/SolrSearch.php 1 patch
Spacing   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
             // in which case metadata of toplevel entry isn't yet filled.
221 221
             if (empty($document['metadata'])) {
222 222
                 $document['metadata'] = $this->fetchToplevelMetadataFromSolr([
223
-                    'query' => 'uid:' . $document['uid'],
223
+                    'query' => 'uid:'.$document['uid'],
224 224
                     'start' => 0,
225 225
                     'rows' => 1,
226 226
                     'sort' => ['score' => 'desc'],
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
             if (empty($document['title']) && $document['partOf'] > 0) {
232 232
                 $superiorTitle = AbstractDocument::getTitle($document['partOf'], true);
233 233
                 if (!empty($superiorTitle)) {
234
-                    $document['title'] = '[' . $superiorTitle . ']';
234
+                    $document['title'] = '['.$superiorTitle.']';
235 235
                 }
236 236
             }
237 237
         }
@@ -366,13 +366,13 @@  discard block
 block discarded – undo
366 366
         // Set search query.
367 367
         if (
368 368
             !empty($this->searchParams['fulltext'])
369
-            || preg_match('/' . $fields['fulltext'] . ':\((.*)\)/', trim($this->searchParams['query'] ?? ''), $matches)
369
+            || preg_match('/'.$fields['fulltext'].':\((.*)\)/', trim($this->searchParams['query'] ?? ''), $matches)
370 370
         ) {
371 371
             // If the query already is a fulltext query e.g using the facets
372 372
             $this->searchParams['query'] = empty($matches[1]) ? $this->searchParams['query'] : $matches[1];
373 373
             // Search in fulltext field if applicable. Query must not be empty!
374 374
             if (!empty($this->searchParams['query'])) {
375
-                $query = $fields['fulltext'] . ':(' . Solr::escapeQuery(trim($this->searchParams['query'])) . ')';
375
+                $query = $fields['fulltext'].':('.Solr::escapeQuery(trim($this->searchParams['query'])).')';
376 376
             }
377 377
             $params['fulltext'] = true;
378 378
         } else {
@@ -395,9 +395,9 @@  discard block
 block discarded – undo
395 395
                         in_array($this->searchParams['extOperator'][$i], $allowedOperators)
396 396
                     ) {
397 397
                         if (!empty($query)) {
398
-                            $query .= ' ' . $this->searchParams['extOperator'][$i] . ' ';
398
+                            $query .= ' '.$this->searchParams['extOperator'][$i].' ';
399 399
                         }
400
-                        $query .= Indexer::getIndexFieldName($this->searchParams['extField'][$i], $this->settings['storagePid']) . ':(' . Solr::escapeQuery($this->searchParams['extQuery'][$i]) . ')';
400
+                        $query .= Indexer::getIndexFieldName($this->searchParams['extField'][$i], $this->settings['storagePid']).':('.Solr::escapeQuery($this->searchParams['extQuery'][$i]).')';
401 401
                     }
402 402
                 }
403 403
             }
@@ -406,7 +406,7 @@  discard block
 block discarded – undo
406 406
         // Add filter query for date search
407 407
         if (!empty($this->searchParams['dateFrom']) && !empty($this->searchParams['dateTo'])) {
408 408
             // combine dateFrom and dateTo into range search
409
-            $params['filterquery'][]['query'] = '{!join from=' . $fields['uid'] . ' to=' . $fields['uid'] . '}'. $fields['date'] . ':[' . $this->searchParams['dateFrom'] . ' TO ' . $this->searchParams['dateTo'] . ']';
409
+            $params['filterquery'][]['query'] = '{!join from='.$fields['uid'].' to='.$fields['uid'].'}'.$fields['date'].':['.$this->searchParams['dateFrom'].' TO '.$this->searchParams['dateTo'].']';
410 410
         }
411 411
 
412 412
         // Add filter query for faceting.
@@ -423,12 +423,12 @@  discard block
 block discarded – undo
423 423
         ) {
424 424
             // Search in document and all subordinates (valid for up to three levels of hierarchy).
425 425
             $params['filterquery'][]['query'] = '_query_:"{!join from='
426
-                . $fields['uid'] . ' to=' . $fields['partof'] . '}'
427
-                . $fields['uid'] . ':{!join from=' . $fields['uid'] . ' to=' . $fields['partof'] . '}'
428
-                . $fields['uid'] . ':' . $this->searchParams['documentId'] . '"' . ' OR {!join from='
429
-                . $fields['uid'] . ' to=' . $fields['partof'] . '}'
430
-                . $fields['uid'] . ':' . $this->searchParams['documentId'] . ' OR '
431
-                . $fields['uid'] . ':' . $this->searchParams['documentId'];
426
+                . $fields['uid'].' to='.$fields['partof'].'}'
427
+                . $fields['uid'].':{!join from='.$fields['uid'].' to='.$fields['partof'].'}'
428
+                . $fields['uid'].':'.$this->searchParams['documentId'].'"'.' OR {!join from='
429
+                . $fields['uid'].' to='.$fields['partof'].'}'
430
+                . $fields['uid'].':'.$this->searchParams['documentId'].' OR '
431
+                . $fields['uid'].':'.$this->searchParams['documentId'];
432 432
         }
433 433
 
434 434
         // if collections are given, we prepare the collection query string
@@ -448,8 +448,8 @@  discard block
 block discarded – undo
448 448
         if ($this->listedMetadata) {
449 449
             foreach ($this->listedMetadata as $metadata) {
450 450
                 if ($metadata->getIndexStored() || $metadata->getIndexIndexed()) {
451
-                    $listMetadataRecord = $metadata->getIndexName() . '_' . ($metadata->getIndexTokenized() ? 't' : 'u') . ($metadata->getIndexStored() ? 's' : 'u') . ($metadata->getIndexIndexed() ? 'i' : 'u');
452
-                    $params['fields'] .= ',' . $listMetadataRecord;
451
+                    $listMetadataRecord = $metadata->getIndexName().'_'.($metadata->getIndexTokenized() ? 't' : 'u').($metadata->getIndexStored() ? 's' : 'u').($metadata->getIndexIndexed() ? 'i' : 'u');
452
+                    $params['fields'] .= ','.$listMetadataRecord;
453 453
                     $params['listMetadataRecords'][$metadata->getIndexName()] = $listMetadataRecord;
454 454
                 }
455 455
             }
@@ -524,8 +524,8 @@  discard block
 block discarded – undo
524 524
                             if ($this->searchParams['fulltext'] == '1') {
525 525
                                 $searchResult['snippet'] = $doc['snippet'];
526 526
                                 $searchResult['highlight'] = $doc['highlight'];
527
-                                $searchResult['highlight_word'] = preg_replace('/^;|;$/', '',       // remove ; at beginning or end
528
-                                                                  preg_replace('/;+/', ';',         // replace any multiple of ; with a single ;
527
+                                $searchResult['highlight_word'] = preg_replace('/^;|;$/', '', // remove ; at beginning or end
528
+                                                                  preg_replace('/;+/', ';', // replace any multiple of ; with a single ;
529 529
                                                                   preg_replace('/[{~\d*}{\s+}{^=*\d+.*\d*}`~!@#$%\^&*()_|+-=?;:\'",.<>\{\}\[\]\\\]/', ';', $this->searchParams['query']))); // replace search operators and special characters with ;
530 530
                             }
531 531
                             $documents[$doc['uid']]['searchResults'][] = $searchResult;
@@ -549,7 +549,7 @@  discard block
 block discarded – undo
549 549
                         
550 550
                                     // Fetch metadata for the current batch
551 551
                                     $metadataOf = $this->fetchToplevelMetadataFromSolr([
552
-                                        'query' => 'partof:' . $doc['uid'],
552
+                                        'query' => 'partof:'.$doc['uid'],
553 553
                                         'start' => $start,
554 554
                                         'rows' => min($batchSize, $totalChildren - $start),
555 555
                                     ]);
@@ -601,8 +601,8 @@  discard block
 block discarded – undo
601 601
         if ($this->listedMetadata) {
602 602
             foreach ($this->listedMetadata as $metadata) {
603 603
                 if ($metadata->getIndexStored() || $metadata->getIndexIndexed()) {
604
-                    $listMetadataRecord = $metadata->getIndexName() . '_' . ($metadata->getIndexTokenized() ? 't' : 'u') . ($metadata->getIndexStored() ? 's' : 'u') . ($metadata->getIndexIndexed() ? 'i' : 'u');
605
-                    $params['fields'] .= ',' . $listMetadataRecord;
604
+                    $listMetadataRecord = $metadata->getIndexName().'_'.($metadata->getIndexTokenized() ? 't' : 'u').($metadata->getIndexStored() ? 's' : 'u').($metadata->getIndexIndexed() ? 'i' : 'u');
605
+                    $params['fields'] .= ','.$listMetadataRecord;
606 606
                     $params['listMetadataRecords'][$metadata->getIndexName()] = $listMetadataRecord;
607 607
                 }
608 608
             }
@@ -653,7 +653,7 @@  discard block
 block discarded – undo
653 653
         $cache = null;
654 654
         // Calculate cache identifier.
655 655
         if ($enableCache === true) {
656
-            $cacheIdentifier = Helper::digest($solr->core . print_r($parameters, true));
656
+            $cacheIdentifier = Helper::digest($solr->core.print_r($parameters, true));
657 657
             $cache = GeneralUtility::makeInstance(CacheManager::class)->getCache('tx_dlf_solr');
658 658
         }
659 659
         $resultSet = [
@@ -743,24 +743,24 @@  discard block
 block discarded – undo
743 743
         foreach ($this->collections as $collection) {
744 744
             // check for virtual collections query string
745 745
             if ($collection->getIndexSearch()) {
746
-                $virtualCollectionsQueryString .= empty($virtualCollectionsQueryString) ? '(' . $collection->getIndexSearch() . ')' : ' OR (' . $collection->getIndexSearch() . ')';
746
+                $virtualCollectionsQueryString .= empty($virtualCollectionsQueryString) ? '('.$collection->getIndexSearch().')' : ' OR ('.$collection->getIndexSearch().')';
747 747
             } else {
748
-                $collectionsQueryString .= empty($collectionsQueryString) ? '"' . $collection->getIndexName() . '"' : ' OR "' . $collection->getIndexName() . '"';
748
+                $collectionsQueryString .= empty($collectionsQueryString) ? '"'.$collection->getIndexName().'"' : ' OR "'.$collection->getIndexName().'"';
749 749
             }
750 750
         }
751 751
 
752 752
         // distinguish between simple collection browsing and actual searching within the collection(s)
753 753
         if (!empty($collectionsQueryString)) {
754 754
             if (empty($query)) {
755
-                $collectionsQueryString = '(collection_faceting:(' . $collectionsQueryString . ') AND toplevel:true AND partof:0)';
755
+                $collectionsQueryString = '(collection_faceting:('.$collectionsQueryString.') AND toplevel:true AND partof:0)';
756 756
             } else {
757
-                $collectionsQueryString = '(collection_faceting:(' . $collectionsQueryString . '))';
757
+                $collectionsQueryString = '(collection_faceting:('.$collectionsQueryString.'))';
758 758
             }
759 759
         }
760 760
 
761 761
         // virtual collections might query documents that are neither toplevel:true nor partof:0 and need to be searched separately
762 762
         if (!empty($virtualCollectionsQueryString)) {
763
-            $virtualCollectionsQueryString = '(' . $virtualCollectionsQueryString . ')';
763
+            $virtualCollectionsQueryString = '('.$virtualCollectionsQueryString.')';
764 764
         }
765 765
 
766 766
         // combine both query strings into a single filterquery via OR if both are given, otherwise pass either of those
@@ -838,7 +838,7 @@  discard block
 block discarded – undo
838 838
     private function translateLanguageCode(&$doc): void
839 839
     {
840 840
         if (array_key_exists('language', $doc['metadata'])) {
841
-            foreach($doc['metadata']['language'] as $indexName => $language) {
841
+            foreach ($doc['metadata']['language'] as $indexName => $language) {
842 842
                 $doc['metadata']['language'][$indexName] = Helper::getLanguageName($language);
843 843
             }
844 844
         }
Please login to merge, or discard this patch.