@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | if ($library) { |
| 72 | 72 | $feedMeta['copyright'] = $library->getLabel(); |
| 73 | 73 | } else { |
| 74 | - $this->logger->error('Failed to fetch label of selected library with "' . $this->settings['library'] . '"'); |
|
| 74 | + $this->logger->error('Failed to fetch label of selected library with "'.$this->settings['library'].'"'); |
|
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | if ( |
@@ -91,12 +91,12 @@ discard block |
||
| 91 | 91 | ) { |
| 92 | 92 | $superiorTitle = Doc::getTitle($document->getPartof(), true); |
| 93 | 93 | if (!empty($superiorTitle)) { |
| 94 | - $title .= '[' . $superiorTitle . ']'; |
|
| 94 | + $title .= '['.$superiorTitle.']'; |
|
| 95 | 95 | } |
| 96 | 96 | } |
| 97 | 97 | // Get title of document. |
| 98 | 98 | if (!empty($document->getTitle())) { |
| 99 | - $title .= ' ' . $document->getTitle(); |
|
| 99 | + $title .= ' '.$document->getTitle(); |
|
| 100 | 100 | } |
| 101 | 101 | // Set default title if empty. |
| 102 | 102 | if (empty($title)) { |
@@ -104,13 +104,13 @@ discard block |
||
| 104 | 104 | } |
| 105 | 105 | // Append volume information. |
| 106 | 106 | if (!empty($document->getVolume())) { |
| 107 | - $title .= ', ' . LocalizationUtility::translate('volume', 'dlf') . ' ' . $document->getVolume(); |
|
| 107 | + $title .= ', '.LocalizationUtility::translate('volume', 'dlf').' '.$document->getVolume(); |
|
| 108 | 108 | } |
| 109 | 109 | // Is this document new or updated? |
| 110 | 110 | if ($document->getCrdate() == $document->getTstamp()) { |
| 111 | - $title = LocalizationUtility::translate('plugins.feeds.new', 'dlf') . ' ' . trim($title); |
|
| 111 | + $title = LocalizationUtility::translate('plugins.feeds.new', 'dlf').' '.trim($title); |
|
| 112 | 112 | } else { |
| 113 | - $title = LocalizationUtility::translate('plugins.feeds.update', 'dlf') . ' ' . trim($title); |
|
| 113 | + $title = LocalizationUtility::translate('plugins.feeds.update', 'dlf').' '.trim($title); |
|
| 114 | 114 | } |
| 115 | 115 | |
| 116 | 116 | $document->setTitle($title); |
@@ -243,10 +243,10 @@ discard block |
||
| 243 | 243 | if ($root->item(0) instanceof \DOMNode) { |
| 244 | 244 | $mets = $xml->saveXML($root->item(0)); |
| 245 | 245 | } else { |
| 246 | - $this->logger->error('No METS part found in document with location "' . $record['location'] . '"'); |
|
| 246 | + $this->logger->error('No METS part found in document with location "'.$record['location'].'"'); |
|
| 247 | 247 | } |
| 248 | 248 | } else { |
| 249 | - $this->logger->error('Could not load XML file from "' . $record['location'] . '"'); |
|
| 249 | + $this->logger->error('Could not load XML file from "'.$record['location'].'"'); |
|
| 250 | 250 | } |
| 251 | 251 | return $mets; |
| 252 | 252 | } |
@@ -412,7 +412,7 @@ discard block |
||
| 412 | 412 | $pageSettings = $this->configurationManager->getConfiguration($this->configurationManager::CONFIGURATION_TYPE_FULL_TYPOSCRIPT); |
| 413 | 413 | $storagePid = $pageSettings["plugin."]["tx_dlf."]["persistence."]["storagePid"]; |
| 414 | 414 | if ($storagePid > 0) { |
| 415 | - $this->logger->notice('No records found with PID ' . $storagePid); |
|
| 415 | + $this->logger->notice('No records found with PID '.$storagePid); |
|
| 416 | 416 | } else { |
| 417 | 417 | $this->logger->notice('No records found'); |
| 418 | 418 | } |
@@ -495,7 +495,7 @@ discard block |
||
| 495 | 495 | if (!empty($resArray)) { |
| 496 | 496 | // check, if all required fields are available for a given identifier |
| 497 | 497 | foreach ($details['requiredFields'] as $required) { |
| 498 | - $methodName = 'get' . GeneralUtility::underscoredToUpperCamelCase($required); |
|
| 498 | + $methodName = 'get'.GeneralUtility::underscoredToUpperCamelCase($required); |
|
| 499 | 499 | if (empty($resArray->$methodName())) { |
| 500 | 500 | // Skip metadata formats whose requirements are not met. |
| 501 | 501 | continue 2; |
@@ -600,9 +600,9 @@ discard block |
||
| 600 | 600 | |
| 601 | 601 | if ($resArray = $result->fetch()) { |
| 602 | 602 | if ($resArray['index_query'] != "") { |
| 603 | - $solr_query .= '(' . $resArray['index_query'] . ')'; |
|
| 603 | + $solr_query .= '('.$resArray['index_query'].')'; |
|
| 604 | 604 | } else { |
| 605 | - $solr_query .= 'collection:' . '"' . $resArray['index_name'] . '"'; |
|
| 605 | + $solr_query .= 'collection:'.'"'.$resArray['index_name'].'"'; |
|
| 606 | 606 | } |
| 607 | 607 | } else { |
| 608 | 608 | $this->error = 'noSetHierarchy'; |
@@ -614,7 +614,7 @@ discard block |
||
| 614 | 614 | } |
| 615 | 615 | // Check for required fields. |
| 616 | 616 | foreach ($this->formats[$this->parameters['metadataPrefix']]['requiredFields'] as $required) { |
| 617 | - $solr_query .= ' NOT ' . $required . ':""'; |
|
| 617 | + $solr_query .= ' NOT '.$required.':""'; |
|
| 618 | 618 | } |
| 619 | 619 | // toplevel="true" is always required |
| 620 | 620 | $solr_query .= ' AND toplevel:true'; |
@@ -628,7 +628,7 @@ discard block |
||
| 628 | 628 | ) { |
| 629 | 629 | $timestamp = gmmktime($date_array['tm_hour'], $date_array['tm_min'], $date_array['tm_sec'], |
| 630 | 630 | $date_array['tm_mon'] + 1, $date_array['tm_mday'], $date_array['tm_year'] + 1900); |
| 631 | - $from = date("Y-m-d", $timestamp) . 'T' . date("H:i:s", $timestamp) . '.000Z'; |
|
| 631 | + $from = date("Y-m-d", $timestamp).'T'.date("H:i:s", $timestamp).'.000Z'; |
|
| 632 | 632 | } else { |
| 633 | 633 | $this->error = 'badArgument'; |
| 634 | 634 | return; |
@@ -644,7 +644,7 @@ discard block |
||
| 644 | 644 | ) { |
| 645 | 645 | $timestamp = gmmktime($date_array['tm_hour'], $date_array['tm_min'], $date_array['tm_sec'], |
| 646 | 646 | $date_array['tm_mon'] + 1, $date_array['tm_mday'], $date_array['tm_year'] + 1900); |
| 647 | - $until = date("Y-m-d", $timestamp) . 'T' . date("H:i:s", $timestamp) . '.999Z'; |
|
| 647 | + $until = date("Y-m-d", $timestamp).'T'.date("H:i:s", $timestamp).'.999Z'; |
|
| 648 | 648 | if ($from != "*" && $from > $until) { |
| 649 | 649 | $this->error = 'badArgument'; |
| 650 | 650 | } |
@@ -661,7 +661,7 @@ discard block |
||
| 661 | 661 | $this->error = 'badArgument'; |
| 662 | 662 | } |
| 663 | 663 | } |
| 664 | - $solr_query .= ' AND timestamp:[' . $from . ' TO ' . $until . ']'; |
|
| 664 | + $solr_query .= ' AND timestamp:['.$from.' TO '.$until.']'; |
|
| 665 | 665 | $documentSet = []; |
| 666 | 666 | $solr = Solr::getInstance($this->settings['solrcore']); |
| 667 | 667 | if (!$solr->ready) { |
@@ -780,7 +780,7 @@ discard block |
||
| 780 | 780 | $resumptionTokenInfo['cursor'] = $currentCursor; |
| 781 | 781 | $resumptionTokenInfo['completeListSize'] = $documentListSet['metadata']['completeListSize']; |
| 782 | 782 | $expireDateTime = new \DateTime(); |
| 783 | - $expireDateTime->add(new \DateInterval('PT' . $this->settings['expired'] . 'S')); |
|
| 783 | + $expireDateTime->add(new \DateInterval('PT'.$this->settings['expired'].'S')); |
|
| 784 | 784 | $resumptionTokenInfo['expired'] = $expireDateTime; |
| 785 | 785 | |
| 786 | 786 | $omitResumptionToken = $currentCursor === 0 && $numShownDocuments >= $documentListSet['metadata']['completeListSize']; |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | if ($this->document) { |
| 126 | 126 | $doc = Doc::getInstance($this->document->getLocation(), $this->settings, true); |
| 127 | 127 | } else { |
| 128 | - $this->logger->error('Invalid UID "' . $requestData['id'] . '" or PID "' . $this->settings['storagePid'] . '" for document loading'); |
|
| 128 | + $this->logger->error('Invalid UID "'.$requestData['id'].'" or PID "'.$this->settings['storagePid'].'" for document loading'); |
|
| 129 | 129 | } |
| 130 | 130 | } else if (GeneralUtility::isValidUrl($requestData['id'])) { |
| 131 | 131 | |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | |
| 144 | 144 | $this->document->setLocation($requestData['id']); |
| 145 | 145 | } else { |
| 146 | - $this->logger->error('Invalid location given "' . $requestData['id'] . '" for document loading'); |
|
| 146 | + $this->logger->error('Invalid location given "'.$requestData['id'].'" for document loading'); |
|
| 147 | 147 | } |
| 148 | 148 | } |
| 149 | 149 | |
@@ -160,11 +160,11 @@ discard block |
||
| 160 | 160 | if ($this->document !== null && $doc !== null) { |
| 161 | 161 | $this->document->setDoc($doc); |
| 162 | 162 | } else { |
| 163 | - $this->logger->error('Failed to load document with record ID "' . $requestData['recordId'] . '"'); |
|
| 163 | + $this->logger->error('Failed to load document with record ID "'.$requestData['recordId'].'"'); |
|
| 164 | 164 | } |
| 165 | 165 | } |
| 166 | 166 | } else { |
| 167 | - $this->logger->error('Invalid ID "' . $requestData['id'] . '" or PID "' . $this->settings['storagePid'] . '" for document loading'); |
|
| 167 | + $this->logger->error('Invalid ID "'.$requestData['id'].'" or PID "'.$this->settings['storagePid'].'" for document loading'); |
|
| 168 | 168 | } |
| 169 | 169 | } |
| 170 | 170 | |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | $_day = date('j', $dateTimestamp); |
| 149 | 149 | $calendarIssuesByYear[$_year][$_month][$_day][] = $issue; |
| 150 | 150 | } else { |
| 151 | - $this->logger->warning('Document with UID ' . $issue['uid'] . 'has no valid date of publication'); |
|
| 151 | + $this->logger->warning('Document with UID '.$issue['uid'].'has no valid date of publication'); |
|
| 152 | 152 | } |
| 153 | 153 | } |
| 154 | 154 | // Sort by years. |
@@ -271,16 +271,16 @@ discard block |
||
| 271 | 271 | 'DAYFRI_NAME' => strftime('%a', strtotime('last Friday')), |
| 272 | 272 | 'DAYSAT_NAME' => strftime('%a', strtotime('last Saturday')), |
| 273 | 273 | 'DAYSUN_NAME' => strftime('%a', strtotime('last Sunday')), |
| 274 | - 'MONTHNAME' => strftime('%B', strtotime($year . '-' . $i . '-1')) . ' ' . $year, |
|
| 274 | + 'MONTHNAME' => strftime('%B', strtotime($year.'-'.$i.'-1')).' '.$year, |
|
| 275 | 275 | 'CALYEAR' => ($i == $firstMonth) ? $year : '' |
| 276 | 276 | ]; |
| 277 | 277 | |
| 278 | - $firstOfMonth = strtotime($year . '-' . $i . '-1'); |
|
| 278 | + $firstOfMonth = strtotime($year.'-'.$i.'-1'); |
|
| 279 | 279 | $lastOfMonth = strtotime('last day of', ($firstOfMonth)); |
| 280 | 280 | $firstOfMonthStart = strtotime('last Monday', $firstOfMonth); |
| 281 | 281 | // There are never more than 6 weeks in a month. |
| 282 | 282 | for ($j = 0; $j <= 5; $j++) { |
| 283 | - $firstDayOfWeek = strtotime('+ ' . $j . ' Week', $firstOfMonthStart); |
|
| 283 | + $firstDayOfWeek = strtotime('+ '.$j.' Week', $firstOfMonthStart); |
|
| 284 | 284 | |
| 285 | 285 | $calendarData[$i]['week'][$j] = [ |
| 286 | 286 | 'DAYMON' => ['dayValue' => ' '], |
@@ -293,7 +293,7 @@ discard block |
||
| 293 | 293 | ]; |
| 294 | 294 | // Every week has seven days. ;-) |
| 295 | 295 | for ($k = 0; $k <= 6; $k++) { |
| 296 | - $currentDayTime = strtotime('+ ' . $k . ' Day', $firstDayOfWeek); |
|
| 296 | + $currentDayTime = strtotime('+ '.$k.' Day', $firstDayOfWeek); |
|
| 297 | 297 | if ( |
| 298 | 298 | $currentDayTime >= $firstOfMonth |
| 299 | 299 | && $currentDayTime <= $lastOfMonth |
@@ -324,7 +324,7 @@ discard block |
||
| 324 | 324 | } |
| 325 | 325 | $dayLinkDiv = $dayLinksText; |
| 326 | 326 | } |
| 327 | - switch (strftime('%w', strtotime('+ ' . $k . ' Day', $firstDayOfWeek))) { |
|
| 327 | + switch (strftime('%w', strtotime('+ '.$k.' Day', $firstDayOfWeek))) { |
|
| 328 | 328 | case '0': |
| 329 | 329 | $calendarData[$i]['week'][$j]['DAYSUN']['dayValue'] = strftime('%d', $currentDayTime); |
| 330 | 330 | if ((int) $dayLinks === (int) date('j', $currentDayTime)) { |
@@ -34,13 +34,13 @@ |
||
| 34 | 34 | $countVolumes = $this->documentRepository->countAllVolumes($this->settings); |
| 35 | 35 | |
| 36 | 36 | // Set replacements. |
| 37 | - $args['###TITLES###'] = $countTitles . ' ' . htmlspecialchars( |
|
| 37 | + $args['###TITLES###'] = $countTitles.' '.htmlspecialchars( |
|
| 38 | 38 | LocalizationUtility::translate( |
| 39 | 39 | ($countTitles > 1 ? 'titles' : 'title'), 'dlf' |
| 40 | 40 | ) |
| 41 | 41 | ); |
| 42 | 42 | |
| 43 | - $args['###VOLUMES###'] = $countVolumes . ' ' . htmlspecialchars( |
|
| 43 | + $args['###VOLUMES###'] = $countVolumes.' '.htmlspecialchars( |
|
| 44 | 44 | LocalizationUtility::translate( |
| 45 | 45 | ($countTitles > 1 ? 'volumes' : 'volume'), 'dlf' |
| 46 | 46 | ) |
@@ -96,14 +96,14 @@ |
||
| 96 | 96 | foreach ($collections as $collection) { |
| 97 | 97 | $solr_query = ''; |
| 98 | 98 | if ($collection->getIndexSearch() != '') { |
| 99 | - $solr_query .= '(' . $collection->getIndexSearch() . ')'; |
|
| 99 | + $solr_query .= '('.$collection->getIndexSearch().')'; |
|
| 100 | 100 | } else { |
| 101 | - $solr_query .= 'collection:("' . Solr::escapeQuery($collection->getIndexName()) . '")'; |
|
| 101 | + $solr_query .= 'collection:("'.Solr::escapeQuery($collection->getIndexName()).'")'; |
|
| 102 | 102 | } |
| 103 | - $params['query'] = $solr_query . ' AND partof:0 AND toplevel:true'; |
|
| 103 | + $params['query'] = $solr_query.' AND partof:0 AND toplevel:true'; |
|
| 104 | 104 | $partOfNothing = $solr->search_raw($params); |
| 105 | 105 | |
| 106 | - $params['query'] = $solr_query . ' AND NOT partof:0 AND toplevel:true'; |
|
| 106 | + $params['query'] = $solr_query.' AND NOT partof:0 AND toplevel:true'; |
|
| 107 | 107 | $partOfSomething = $solr->search_raw($params); |
| 108 | 108 | // Titles are all documents that are "root" elements i.e. partof == 0 |
| 109 | 109 | $collectionInfo['titles'] = []; |
@@ -52,12 +52,12 @@ |
||
| 52 | 52 | $(document).ready(function() { |
| 53 | 53 | AudioPlayer = new dlfAudioPlayer({ |
| 54 | 54 | audio: { |
| 55 | - mimeType: "' . $this->audio['mimetype'] . '", |
|
| 56 | - title: "' . $this->audio['label'] . '", |
|
| 57 | - url: "' . $this->audio['url'] . '" |
|
| 55 | + mimeType: "' . $this->audio['mimetype'].'", |
|
| 56 | + title: "' . $this->audio['label'].'", |
|
| 57 | + url: "' . $this->audio['url'].'" |
|
| 58 | 58 | }, |
| 59 | 59 | parentElId: "tx-dlf-audio", |
| 60 | - swfPath: "' . PathUtility::stripPathSitePrefix(ExtensionManagementUtility::extPath('dlf')) . 'Resources/Public/Javascript/jPlayer/jquery.jplayer.swf" |
|
| 60 | + swfPath: "' . PathUtility::stripPathSitePrefix(ExtensionManagementUtility::extPath('dlf')).'Resources/Public/Javascript/jPlayer/jquery.jplayer.swf" |
|
| 61 | 61 | }); |
| 62 | 62 | }); |
| 63 | 63 | '; |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | array_unshift($metadata, $data); |
| 156 | 156 | } |
| 157 | 157 | if (empty($metadata)) { |
| 158 | - $this->logger->warning('No metadata found for document with UID ' . $this->document->getUid()); |
|
| 158 | + $this->logger->warning('No metadata found for document with UID '.$this->document->getUid()); |
|
| 159 | 159 | return ''; |
| 160 | 160 | } |
| 161 | 161 | ksort($metadata); |
@@ -255,7 +255,7 @@ discard block |
||
| 255 | 255 | if (empty($metadataValue) && $this->settings['getTitle'] && $this->document->getDoc()->parentId) { |
| 256 | 256 | $superiorTitle = Doc::getTitle($this->document->getPartof(), true); |
| 257 | 257 | if (!empty($superiorTitle)) { |
| 258 | - $metadataArray[$i][$metadataName] = ['[' . $superiorTitle . ']']; |
|
| 258 | + $metadataArray[$i][$metadataName] = ['['.$superiorTitle.']']; |
|
| 259 | 259 | } |
| 260 | 260 | } |
| 261 | 261 | if (!empty($metadataValue)) { |
@@ -253,7 +253,7 @@ discard block |
||
| 253 | 253 | $image['mimetypeLabel'] = $mimetypeLabel; |
| 254 | 254 | break; |
| 255 | 255 | } else { |
| 256 | - $this->logger->warning('File not found in fileGrp "' . $fileGrp . '"'); |
|
| 256 | + $this->logger->warning('File not found in fileGrp "'.$fileGrp.'"'); |
|
| 257 | 257 | } |
| 258 | 258 | } |
| 259 | 259 | return $image; |
@@ -344,7 +344,7 @@ discard block |
||
| 344 | 344 | empty($page1Link) |
| 345 | 345 | && empty($page2Link) |
| 346 | 346 | ) { |
| 347 | - $this->logger->warning('File not found in fileGrps "' . $this->extConf['fileGrpDownload'] . '"'); |
|
| 347 | + $this->logger->warning('File not found in fileGrps "'.$this->extConf['fileGrpDownload'].'"'); |
|
| 348 | 348 | } |
| 349 | 349 | |
| 350 | 350 | if (!empty($page1Link)) { |
@@ -383,7 +383,7 @@ discard block |
||
| 383 | 383 | if (!empty($workLink)) { |
| 384 | 384 | $workLink = $workLink; |
| 385 | 385 | } else { |
| 386 | - $this->logger->warning('File not found in fileGrps "' . $this->extConf['fileGrpDownload'] . '"'); |
|
| 386 | + $this->logger->warning('File not found in fileGrps "'.$this->extConf['fileGrpDownload'].'"'); |
|
| 387 | 387 | } |
| 388 | 388 | return $workLink; |
| 389 | 389 | } |