We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -649,7 +649,7 @@ discard block |
||
| 649 | 649 | // Get the root element's name as text format. |
| 650 | 650 | $textFormat = strtoupper($rawTextXml->getName()); |
| 651 | 651 | } else { |
| 652 | - Helper::devLog('Invalid structure node @ID "' . $id . '"', DEVLOG_SEVERITY_WARNING); |
|
| 652 | + Helper::devLog('Invalid structure node @ID "'.$id.'"', DEVLOG_SEVERITY_WARNING); |
|
| 653 | 653 | return $rawText; |
| 654 | 654 | } |
| 655 | 655 | // Is this text format supported? |
@@ -664,11 +664,11 @@ discard block |
||
| 664 | 664 | $rawText = $obj->getRawText($rawTextXml); |
| 665 | 665 | $this->rawTextArray[$id] = $rawText; |
| 666 | 666 | } else { |
| 667 | - Helper::devLog('Invalid class/method "' . $class . '->getRawText()" for text format "' . $textFormat . '"', DEVLOG_SEVERITY_WARNING); |
|
| 667 | + Helper::devLog('Invalid class/method "'.$class.'->getRawText()" for text format "'.$textFormat.'"', DEVLOG_SEVERITY_WARNING); |
|
| 668 | 668 | } |
| 669 | 669 | } |
| 670 | 670 | } else { |
| 671 | - Helper::devLog('Unsupported text format "' . $textFormat . '" in physical node with @ID "' . $id . '"', DEVLOG_SEVERITY_WARNING); |
|
| 671 | + Helper::devLog('Unsupported text format "'.$textFormat.'" in physical node with @ID "'.$id.'"', DEVLOG_SEVERITY_WARNING); |
|
| 672 | 672 | } |
| 673 | 673 | return $rawText; |
| 674 | 674 | } |
@@ -722,10 +722,10 @@ discard block |
||
| 722 | 722 | $title = self::getTitle($partof, TRUE); |
| 723 | 723 | } |
| 724 | 724 | } else { |
| 725 | - Helper::devLog('No document with UID ' . $uid . ' found or document not accessible', DEVLOG_SEVERITY_WARNING); |
|
| 725 | + Helper::devLog('No document with UID '.$uid.' found or document not accessible', DEVLOG_SEVERITY_WARNING); |
|
| 726 | 726 | } |
| 727 | 727 | } else { |
| 728 | - Helper::devLog('Invalid UID ' . $uid . ' for document', DEVLOG_SEVERITY_ERROR); |
|
| 728 | + Helper::devLog('Invalid UID '.$uid.' for document', DEVLOG_SEVERITY_ERROR); |
|
| 729 | 729 | } |
| 730 | 730 | return $title; |
| 731 | 731 | } |
@@ -858,7 +858,7 @@ discard block |
||
| 858 | 858 | // the actual loading is format specific |
| 859 | 859 | return $this->loadLocation($location); |
| 860 | 860 | } else { |
| 861 | - Helper::devLog('Invalid file location "' . $location . '" for document loading', DEVLOG_SEVERITY_ERROR); |
|
| 861 | + Helper::devLog('Invalid file location "'.$location.'" for document loading', DEVLOG_SEVERITY_ERROR); |
|
| 862 | 862 | } |
| 863 | 863 | return FALSE; |
| 864 | 864 | } |
@@ -969,7 +969,7 @@ discard block |
||
| 969 | 969 | // Retain current PID. |
| 970 | 970 | $pid = $this->pid; |
| 971 | 971 | } elseif (!$pid) { |
| 972 | - Helper::devLog('Invalid PID ' . $pid . ' for document saving', DEVLOG_SEVERITY_ERROR); |
|
| 972 | + Helper::devLog('Invalid PID '.$pid.' for document saving', DEVLOG_SEVERITY_ERROR); |
|
| 973 | 973 | return FALSE; |
| 974 | 974 | } |
| 975 | 975 | // Set PID for metadata definitions. |
@@ -1007,7 +1007,7 @@ discard block |
||
| 1007 | 1007 | if ($resArray = $result->fetch()) { |
| 1008 | 1008 | $structure = $resArray['uid']; |
| 1009 | 1009 | } else { |
| 1010 | - Helper::devLog('Could not identify document/structure type "' . $queryBuilder->expr()->literal($metadata['type'][0]) . '"', DEVLOG_SEVERITY_ERROR); |
|
| 1010 | + Helper::devLog('Could not identify document/structure type "'.$queryBuilder->expr()->literal($metadata['type'][0]).'"', DEVLOG_SEVERITY_ERROR); |
|
| 1011 | 1011 | return FALSE; |
| 1012 | 1012 | } |
| 1013 | 1013 | $metadata['type'][0] = $structure; |
@@ -1244,7 +1244,7 @@ discard block |
||
| 1244 | 1244 | if ($core) { |
| 1245 | 1245 | Indexer::add($this, $core); |
| 1246 | 1246 | } else { |
| 1247 | - Helper::devLog('Invalid UID "' . $core . '" for Solr core', DEVLOG_SEVERITY_NOTICE); |
|
| 1247 | + Helper::devLog('Invalid UID "'.$core.'" for Solr core', DEVLOG_SEVERITY_NOTICE); |
|
| 1248 | 1248 | } |
| 1249 | 1249 | return TRUE; |
| 1250 | 1250 | } |
@@ -1310,7 +1310,7 @@ discard block |
||
| 1310 | 1310 | // Set metadata definitions' PID. |
| 1311 | 1311 | $cPid = ($this->cPid ? $this->cPid : $this->pid); |
| 1312 | 1312 | if (!$cPid) { |
| 1313 | - Helper::devLog('Invalid PID ' . $cPid . ' for metadata definitions', DEVLOG_SEVERITY_ERROR); |
|
| 1313 | + Helper::devLog('Invalid PID '.$cPid.' for metadata definitions', DEVLOG_SEVERITY_ERROR); |
|
| 1314 | 1314 | return []; |
| 1315 | 1315 | } |
| 1316 | 1316 | if ( |
@@ -1638,7 +1638,7 @@ discard block |
||
| 1638 | 1638 | // Document ready! |
| 1639 | 1639 | $this->ready = TRUE; |
| 1640 | 1640 | } else { |
| 1641 | - Helper::devLog('No document with UID ' . $uid . ' found or document not accessible', DEVLOG_SEVERITY_ERROR); |
|
| 1641 | + Helper::devLog('No document with UID '.$uid.' found or document not accessible', DEVLOG_SEVERITY_ERROR); |
|
| 1642 | 1642 | } |
| 1643 | 1643 | } |
| 1644 | 1644 | |
@@ -1653,12 +1653,12 @@ discard block |
||
| 1653 | 1653 | */ |
| 1654 | 1654 | public function __get($var) |
| 1655 | 1655 | { |
| 1656 | - $method = '_get' . ucfirst($var); |
|
| 1656 | + $method = '_get'.ucfirst($var); |
|
| 1657 | 1657 | if ( |
| 1658 | 1658 | !property_exists($this, $var) |
| 1659 | 1659 | || !method_exists($this, $method) |
| 1660 | 1660 | ) { |
| 1661 | - Helper::devLog('There is no getter function for property "' . $var . '"', DEVLOG_SEVERITY_WARNING); |
|
| 1661 | + Helper::devLog('There is no getter function for property "'.$var.'"', DEVLOG_SEVERITY_WARNING); |
|
| 1662 | 1662 | return; |
| 1663 | 1663 | } else { |
| 1664 | 1664 | return $this->$method(); |
@@ -1677,12 +1677,12 @@ discard block |
||
| 1677 | 1677 | */ |
| 1678 | 1678 | public function __set($var, $value) |
| 1679 | 1679 | { |
| 1680 | - $method = '_set' . ucfirst($var); |
|
| 1680 | + $method = '_set'.ucfirst($var); |
|
| 1681 | 1681 | if ( |
| 1682 | 1682 | !property_exists($this, $var) |
| 1683 | 1683 | || !method_exists($this, $method) |
| 1684 | 1684 | ) { |
| 1685 | - Helper::devLog('There is no setter function for property "' . $var . '"', DEVLOG_SEVERITY_WARNING); |
|
| 1685 | + Helper::devLog('There is no setter function for property "'.$var.'"', DEVLOG_SEVERITY_WARNING); |
|
| 1686 | 1686 | } else { |
| 1687 | 1687 | $this->$method($value); |
| 1688 | 1688 | } |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | if ($this->valid()) { |
| 133 | 133 | return $this->getRecord($this->elements[$this->position]); |
| 134 | 134 | } else { |
| 135 | - Helper::devLog('Invalid position "' . $this->position . '" for list element', DEVLOG_SEVERITY_NOTICE); |
|
| 135 | + Helper::devLog('Invalid position "'.$this->position.'" for list element', DEVLOG_SEVERITY_NOTICE); |
|
| 136 | 136 | return; |
| 137 | 137 | } |
| 138 | 138 | } |
@@ -237,7 +237,7 @@ discard block |
||
| 237 | 237 | // Restrict the fields to the required ones |
| 238 | 238 | $params['fields'] = 'uid,id,toplevel,thumbnail,page'; |
| 239 | 239 | foreach ($this->solrConfig as $solr_name) { |
| 240 | - $params['fields'] .= ',' . $solr_name; |
|
| 240 | + $params['fields'] .= ','.$solr_name; |
|
| 241 | 241 | } |
| 242 | 242 | // If it is a fulltext search, enable highlighting. |
| 243 | 243 | if ($this->metadata['fulltextSearch']) { |
@@ -259,15 +259,15 @@ discard block |
||
| 259 | 259 | // Extend filter query to get all documents with the same UID. |
| 260 | 260 | foreach ($params['filterquery'] as $key => $value) { |
| 261 | 261 | if (isset($value['query'])) { |
| 262 | - $params['filterquery'][$key]['query'] = $value['query'] . ' OR toplevel:true'; |
|
| 262 | + $params['filterquery'][$key]['query'] = $value['query'].' OR toplevel:true'; |
|
| 263 | 263 | } |
| 264 | 264 | } |
| 265 | 265 | // Add filter query to get all documents with the required uid. |
| 266 | - $params['filterquery'][] = ['query' => 'uid:' . Solr::escapeQuery($record['uid'])]; |
|
| 266 | + $params['filterquery'][] = ['query' => 'uid:'.Solr::escapeQuery($record['uid'])]; |
|
| 267 | 267 | // Add sorting. |
| 268 | 268 | $params['sort'] = $this->metadata['options']['params']['sort']; |
| 269 | 269 | // Set query. |
| 270 | - $params['query'] = $this->metadata['options']['select'] . ' OR toplevel:true'; |
|
| 270 | + $params['query'] = $this->metadata['options']['select'].' OR toplevel:true'; |
|
| 271 | 271 | // Perform search for all documents with the same uid that either fit to the search or marked as toplevel. |
| 272 | 272 | $selectQuery = $this->solr->service->createSelect($params); |
| 273 | 273 | $result = $this->solr->service->select($selectQuery); |
@@ -342,7 +342,7 @@ discard block |
||
| 342 | 342 | $position < 0 |
| 343 | 343 | || $position >= $this->count |
| 344 | 344 | ) { |
| 345 | - Helper::devLog('Invalid position "' . $position . '" for element moving', DEVLOG_SEVERITY_WARNING); |
|
| 345 | + Helper::devLog('Invalid position "'.$position.'" for element moving', DEVLOG_SEVERITY_WARNING); |
|
| 346 | 346 | return; |
| 347 | 347 | } |
| 348 | 348 | $steps = intval($steps); |
@@ -350,7 +350,7 @@ discard block |
||
| 350 | 350 | if (($position + $steps) < 0 |
| 351 | 351 | || ($position + $steps) >= $this->count |
| 352 | 352 | ) { |
| 353 | - Helper::devLog('Invalid steps "' . $steps . '" for moving element at position "' . $position . '"', DEVLOG_SEVERITY_WARNING); |
|
| 353 | + Helper::devLog('Invalid steps "'.$steps.'" for moving element at position "'.$position.'"', DEVLOG_SEVERITY_WARNING); |
|
| 354 | 354 | return; |
| 355 | 355 | } |
| 356 | 356 | $element = $this->remove($position); |
@@ -428,7 +428,7 @@ discard block |
||
| 428 | 428 | if ($this->offsetExists($offset)) { |
| 429 | 429 | return $this->getRecord($this->elements[$offset]); |
| 430 | 430 | } else { |
| 431 | - Helper::devLog('Invalid offset "' . $offset . '" for list element', DEVLOG_SEVERITY_NOTICE); |
|
| 431 | + Helper::devLog('Invalid offset "'.$offset.'" for list element', DEVLOG_SEVERITY_NOTICE); |
|
| 432 | 432 | return; |
| 433 | 433 | } |
| 434 | 434 | } |
@@ -472,7 +472,7 @@ discard block |
||
| 472 | 472 | $position < 0 |
| 473 | 473 | || $position >= $this->count |
| 474 | 474 | ) { |
| 475 | - Helper::devLog('Invalid position "' . $position . '" for element removing', DEVLOG_SEVERITY_WARNING); |
|
| 475 | + Helper::devLog('Invalid position "'.$position.'" for element removing', DEVLOG_SEVERITY_WARNING); |
|
| 476 | 476 | return; |
| 477 | 477 | } |
| 478 | 478 | $removed = array_splice($this->elements, $position, 1); |
@@ -497,7 +497,7 @@ discard block |
||
| 497 | 497 | $position < 0 |
| 498 | 498 | || $position >= $this->count |
| 499 | 499 | ) { |
| 500 | - Helper::devLog('Invalid position "' . $position . '" for element removing', DEVLOG_SEVERITY_WARNING); |
|
| 500 | + Helper::devLog('Invalid position "'.$position.'" for element removing', DEVLOG_SEVERITY_WARNING); |
|
| 501 | 501 | return; |
| 502 | 502 | } |
| 503 | 503 | $removed = array_splice($this->elements, $position, $length); |
@@ -588,7 +588,7 @@ discard block |
||
| 588 | 588 | ->execute(); |
| 589 | 589 | |
| 590 | 590 | while ($resArray = $result->fetch()) { |
| 591 | - $this->solrConfig[$resArray['index_name']] = $resArray['index_name'] . '_' . ($resArray['index_tokenized'] ? 't' : 'u') . 's' . ($resArray['index_indexed'] ? 'i' : 'u'); |
|
| 591 | + $this->solrConfig[$resArray['index_name']] = $resArray['index_name'].'_'.($resArray['index_tokenized'] ? 't' : 'u').'s'.($resArray['index_indexed'] ? 'i' : 'u'); |
|
| 592 | 592 | } |
| 593 | 593 | // Add static fields. |
| 594 | 594 | $this->solrConfig['type'] = 'type'; |
@@ -616,7 +616,7 @@ discard block |
||
| 616 | 616 | foreach ($this->elements as $num => $element) { |
| 617 | 617 | // Is this element sortable? |
| 618 | 618 | if (!empty($element['s'][$by])) { |
| 619 | - $newOrder[$element['s'][$by] . str_pad($num, 6, '0', STR_PAD_LEFT)] = $element; |
|
| 619 | + $newOrder[$element['s'][$by].str_pad($num, 6, '0', STR_PAD_LEFT)] = $element; |
|
| 620 | 620 | } else { |
| 621 | 621 | $nonSortable[] = $element; |
| 622 | 622 | } |
@@ -752,12 +752,12 @@ discard block |
||
| 752 | 752 | */ |
| 753 | 753 | public function __get($var) |
| 754 | 754 | { |
| 755 | - $method = '_get' . ucfirst($var); |
|
| 755 | + $method = '_get'.ucfirst($var); |
|
| 756 | 756 | if ( |
| 757 | 757 | !property_exists($this, $var) |
| 758 | 758 | || !method_exists($this, $method) |
| 759 | 759 | ) { |
| 760 | - Helper::devLog('There is no getter function for property "' . $var . '"', DEVLOG_SEVERITY_WARNING); |
|
| 760 | + Helper::devLog('There is no getter function for property "'.$var.'"', DEVLOG_SEVERITY_WARNING); |
|
| 761 | 761 | return; |
| 762 | 762 | } else { |
| 763 | 763 | return $this->$method(); |
@@ -776,12 +776,12 @@ discard block |
||
| 776 | 776 | */ |
| 777 | 777 | public function __set($var, $value) |
| 778 | 778 | { |
| 779 | - $method = '_set' . ucfirst($var); |
|
| 779 | + $method = '_set'.ucfirst($var); |
|
| 780 | 780 | if ( |
| 781 | 781 | !property_exists($this, $var) |
| 782 | 782 | || !method_exists($this, $method) |
| 783 | 783 | ) { |
| 784 | - Helper::devLog('There is no setter function for property "' . $var . '"', DEVLOG_SEVERITY_WARNING); |
|
| 784 | + Helper::devLog('There is no setter function for property "'.$var.'"', DEVLOG_SEVERITY_WARNING); |
|
| 785 | 785 | } else { |
| 786 | 786 | $this->$method($value); |
| 787 | 787 | } |
@@ -98,9 +98,9 @@ discard block |
||
| 98 | 98 | protected function printContent() |
| 99 | 99 | { |
| 100 | 100 | $this->doc = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Template\DocumentTemplate::class); |
| 101 | - $this->doc->setModuleTemplate('EXT:' . $this->extKey . '/Resources/Private/Templates/' . Helper::getUnqualifiedClassName(get_class($this)) . '.tmpl'); |
|
| 101 | + $this->doc->setModuleTemplate('EXT:'.$this->extKey.'/Resources/Private/Templates/'.Helper::getUnqualifiedClassName(get_class($this)).'.tmpl'); |
|
| 102 | 102 | $this->doc->backPath = $GLOBALS['BACK_PATH']; |
| 103 | - $this->doc->bodyTagAdditions = 'class="ext-' . $this->extKey . '-modules"'; |
|
| 103 | + $this->doc->bodyTagAdditions = 'class="ext-'.$this->extKey.'-modules"'; |
|
| 104 | 104 | $this->doc->form = '<form action="" method="post" enctype="multipart/form-data">'; |
| 105 | 105 | // Add Javascript for function menu. |
| 106 | 106 | $this->doc->JScode .= '<script type="text/javascript">script_ended = 0;function jumpToUrl(URL) { document.location = URL; }</script>'; |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | $this->content .= $this->doc->startPage($GLOBALS['LANG']->getLL('title')); |
| 111 | 111 | // Set defaults for menu. |
| 112 | 112 | if (empty($this->markerArray['CSH'])) { |
| 113 | - $this->markerArray['CSH'] = \TYPO3\CMS\Backend\Utility\BackendUtility::cshItem('_MOD_' . $GLOBALS['MCONF']['name'], 'csh', $GLOBALS['BACK_PATH'], '', TRUE); |
|
| 113 | + $this->markerArray['CSH'] = \TYPO3\CMS\Backend\Utility\BackendUtility::cshItem('_MOD_'.$GLOBALS['MCONF']['name'], 'csh', $GLOBALS['BACK_PATH'], '', TRUE); |
|
| 114 | 114 | } |
| 115 | 115 | if (empty($this->markerArray['MOD_MENU'])) { |
| 116 | 116 | $this->markerArray['MOD_MENU'] = \TYPO3\CMS\Backend\Utility\BackendUtility::getFuncMenu($this->id, 'SET[function]', $this->MOD_SETTINGS['function'], $this->MOD_MENU['function']); |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | */ |
| 130 | 130 | public function __construct() |
| 131 | 131 | { |
| 132 | - $GLOBALS['LANG']->includeLLFile('EXT:' . $this->extKey . '/Resources/Private/Language/' . Helper::getUnqualifiedClassName(get_class($this)) . '.xml'); |
|
| 132 | + $GLOBALS['LANG']->includeLLFile('EXT:'.$this->extKey.'/Resources/Private/Language/'.Helper::getUnqualifiedClassName(get_class($this)).'.xml'); |
|
| 133 | 133 | $this->conf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$this->extKey]); |
| 134 | 134 | $this->data = \TYPO3\CMS\Core\Utility\GeneralUtility::_GPmerged($this->prefixId); |
| 135 | 135 | } |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | $templateFile = $this->conf['templateFile']; |
| 77 | 77 | } else { |
| 78 | 78 | // Load default template from extension. |
| 79 | - $templateFile = 'EXT:' . $this->extKey . '/Resources/Private/Templates/' . Helper::getUnqualifiedClassName(get_class($this)) . '.tmpl'; |
|
| 79 | + $templateFile = 'EXT:'.$this->extKey.'/Resources/Private/Templates/'.Helper::getUnqualifiedClassName(get_class($this)).'.tmpl'; |
|
| 80 | 80 | } |
| 81 | 81 | $this->template = $this->templateService->getSubpart($this->cObj->fileResource($templateFile), $part); |
| 82 | 82 | } |
@@ -100,12 +100,12 @@ discard block |
||
| 100 | 100 | $conf = Helper::mergeRecursiveWithOverrule($flexFormConf, $conf); |
| 101 | 101 | } |
| 102 | 102 | // Read plugin TS configuration. |
| 103 | - $pluginConf = $GLOBALS['TSFE']->tmpl->setup['plugin.']['tx_dlf_' . strtolower(Helper::getUnqualifiedClassName(get_class($this))) . '.']; |
|
| 103 | + $pluginConf = $GLOBALS['TSFE']->tmpl->setup['plugin.']['tx_dlf_'.strtolower(Helper::getUnqualifiedClassName(get_class($this))).'.']; |
|
| 104 | 104 | if (is_array($pluginConf)) { |
| 105 | 105 | $conf = Helper::mergeRecursiveWithOverrule($pluginConf, $conf); |
| 106 | 106 | } |
| 107 | 107 | // Read general TS configuration. |
| 108 | - $generalConf = $GLOBALS['TSFE']->tmpl->setup['plugin.'][$this->prefixId . '.']; |
|
| 108 | + $generalConf = $GLOBALS['TSFE']->tmpl->setup['plugin.'][$this->prefixId.'.']; |
|
| 109 | 109 | if (is_array($generalConf)) { |
| 110 | 110 | $conf = Helper::mergeRecursiveWithOverrule($generalConf, $conf); |
| 111 | 111 | } |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | // Set default plugin variables. |
| 124 | 124 | $this->pi_setPiVarDefaults(); |
| 125 | 125 | // Load translation files. |
| 126 | - $this->pi_loadLL('EXT:' . $this->extKey . '/Resources/Private/Language/' . Helper::getUnqualifiedClassName(get_class($this)) . '.xml'); |
|
| 126 | + $this->pi_loadLL('EXT:'.$this->extKey.'/Resources/Private/Language/'.Helper::getUnqualifiedClassName(get_class($this)).'.xml'); |
|
| 127 | 127 | } |
| 128 | 128 | |
| 129 | 129 | /** |
@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | if (!$this->doc->ready) { |
| 148 | 148 | // Destroy the incomplete object. |
| 149 | 149 | $this->doc = NULL; |
| 150 | - Helper::devLog('Failed to load document with UID ' . $this->piVars['id'], DEVLOG_SEVERITY_ERROR); |
|
| 150 | + Helper::devLog('Failed to load document with UID '.$this->piVars['id'], DEVLOG_SEVERITY_ERROR); |
|
| 151 | 151 | } else { |
| 152 | 152 | // Set configuration PID. |
| 153 | 153 | $this->doc->cPid = $this->conf['pages']; |
@@ -176,10 +176,10 @@ discard block |
||
| 176 | 176 | // Try to load document. |
| 177 | 177 | $this->loadDocument(); |
| 178 | 178 | } else { |
| 179 | - Helper::devLog('Failed to load document with record ID "' . $this->piVars['recordId'] . '"', DEVLOG_SEVERITY_ERROR); |
|
| 179 | + Helper::devLog('Failed to load document with record ID "'.$this->piVars['recordId'].'"', DEVLOG_SEVERITY_ERROR); |
|
| 180 | 180 | } |
| 181 | 181 | } else { |
| 182 | - Helper::devLog('Invalid UID ' . $this->piVars['id'] . ' or PID ' . $this->conf['pages'] . ' for document loading', DEVLOG_SEVERITY_ERROR); |
|
| 182 | + Helper::devLog('Invalid UID '.$this->piVars['id'].' or PID '.$this->conf['pages'].' for document loading', DEVLOG_SEVERITY_ERROR); |
|
| 183 | 183 | } |
| 184 | 184 | } |
| 185 | 185 | |
@@ -210,9 +210,9 @@ discard block |
||
| 210 | 210 | { |
| 211 | 211 | if (!$GLOBALS['TSFE']->config['config']['disableWrapInBaseClass']) { |
| 212 | 212 | // Use class name instead of $this->prefixId for content wrapping because $this->prefixId is the same for all plugins. |
| 213 | - $content = '<div class="tx-dlf-' . Helper::getUnqualifiedClassName(get_class($this)) . '">' . $content . '</div>'; |
|
| 213 | + $content = '<div class="tx-dlf-'.Helper::getUnqualifiedClassName(get_class($this)).'">'.$content.'</div>'; |
|
| 214 | 214 | if (!$GLOBALS['TSFE']->config['config']['disablePrefixComment']) { |
| 215 | - $content = "\n\n<!-- BEGIN: Content of extension '" . $this->extKey . "', plugin '" . Helper::getUnqualifiedClassName(get_class($this)) . "' -->\n\n" . $content . "\n\n<!-- END: Content of extension '" . $this->extKey . "', plugin '" . Helper::getUnqualifiedClassName(get_class($this)) . "' -->\n\n"; |
|
| 215 | + $content = "\n\n<!-- BEGIN: Content of extension '".$this->extKey."', plugin '".Helper::getUnqualifiedClassName(get_class($this))."' -->\n\n".$content."\n\n<!-- END: Content of extension '".$this->extKey."', plugin '".Helper::getUnqualifiedClassName(get_class($this))."' -->\n\n"; |
|
| 216 | 216 | } |
| 217 | 217 | } |
| 218 | 218 | return $content; |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | protected function cmdAddMetadata() |
| 44 | 44 | { |
| 45 | 45 | // Include metadata definition file. |
| 46 | - include_once(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($this->extKey) . 'Resources/Private/Data/MetadataDefaults.php'); |
|
| 46 | + include_once(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($this->extKey).'Resources/Private/Data/MetadataDefaults.php'); |
|
| 47 | 47 | $i = 0; |
| 48 | 48 | // Build data array. |
| 49 | 49 | foreach ($metadataDefaults as $index_name => $values) { |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | // Build data array. |
| 104 | 104 | $data['tx_dlf_solrcores'][uniqid('NEW')] = [ |
| 105 | 105 | 'pid' => intval($this->id), |
| 106 | - 'label' => $GLOBALS['LANG']->getLL('solrcore') . ' (PID ' . $this->id . ')', |
|
| 106 | + 'label' => $GLOBALS['LANG']->getLL('solrcore').' (PID '.$this->id.')', |
|
| 107 | 107 | 'index_name' => '', |
| 108 | 108 | ]; |
| 109 | 109 | $_ids = Helper::processDBasAdmin($data); |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | protected function cmdAddStructure() |
| 136 | 136 | { |
| 137 | 137 | // Include structure definition file. |
| 138 | - include_once(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($this->extKey) . 'Resources/Private/Data/StructureDefaults.php'); |
|
| 138 | + include_once(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($this->extKey).'Resources/Private/Data/StructureDefaults.php'); |
|
| 139 | 139 | // Build data array. |
| 140 | 140 | foreach ($structureDefaults as $index_name => $values) { |
| 141 | 141 | $data['tx_dlf_structures'][uniqid('NEW')] = [ |
@@ -204,7 +204,7 @@ discard block |
||
| 204 | 204 | // Should we do something? |
| 205 | 205 | if (!empty($this->CMD)) { |
| 206 | 206 | // Sanitize input... |
| 207 | - $_method = 'cmd' . ucfirst($this->CMD); |
|
| 207 | + $_method = 'cmd'.ucfirst($this->CMD); |
|
| 208 | 208 | // ...and unset to prevent infinite looping. |
| 209 | 209 | unset($this->CMD); |
| 210 | 210 | if (method_exists($this, $_method)) { |
@@ -37,9 +37,9 @@ discard block |
||
| 37 | 37 | public function displayThumbnail(&$params, &$pObj) |
| 38 | 38 | { |
| 39 | 39 | // Simulate TCA field type "passthrough". |
| 40 | - $output = '<input type="hidden" name="' . $params['itemFormElName'] . '" value="' . $params['itemFormElValue'] . '" />'; |
|
| 40 | + $output = '<input type="hidden" name="'.$params['itemFormElName'].'" value="'.$params['itemFormElValue'].'" />'; |
|
| 41 | 41 | if (!empty($params['itemFormElValue'])) { |
| 42 | - $output .= '<img alt="" src="' . $params['itemFormElValue'] . '" />'; |
|
| 42 | + $output .= '<img alt="" src="'.$params['itemFormElValue'].'" />'; |
|
| 43 | 43 | } |
| 44 | 44 | return $output; |
| 45 | 45 | } |
@@ -132,8 +132,8 @@ discard block |
||
| 132 | 132 | $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery( |
| 133 | 133 | $fields, |
| 134 | 134 | $table, |
| 135 | - '(' . $table . '.pid=' . intval($page['uid']) . ' ' . $where . ')' |
|
| 136 | - . ($localize ? ' AND (' . $table . '.sys_language_uid IN (-1,0) OR ' . $table . '.l18n_parent=0)' : '') |
|
| 135 | + '('.$table.'.pid='.intval($page['uid']).' '.$where.')' |
|
| 136 | + . ($localize ? ' AND ('.$table.'.sys_language_uid IN (-1,0) OR '.$table.'.l18n_parent=0)' : '') |
|
| 137 | 137 | . Helper::whereClause($table), |
| 138 | 138 | '', |
| 139 | 139 | $sorting |
@@ -55,7 +55,7 @@ |
||
| 55 | 55 | if (empty($id)) { |
| 56 | 56 | $id = (string) $divs[0]['DMDID']; |
| 57 | 57 | } |
| 58 | - $recordIds = $xml->xpath('//mets:dmdSec[@ID="' . $id . '"]//mods:mods/mods:recordInfo/mods:recordIdentifier'); |
|
| 58 | + $recordIds = $xml->xpath('//mets:dmdSec[@ID="'.$id.'"]//mods:mods/mods:recordInfo/mods:recordIdentifier'); |
|
| 59 | 59 | if (!empty($recordIds[0])) { |
| 60 | 60 | $record_id = (string) $recordIds[0]; |
| 61 | 61 | } |
@@ -40,15 +40,15 @@ |
||
| 40 | 40 | */ |
| 41 | 41 | public static function addPItoST43($key, $class, $suffix = '', $type = 'list_type', $cached = FALSE) |
| 42 | 42 | { |
| 43 | - $internalName = 'tx_' . $key . '_' . strtolower(Helper::getUnqualifiedClassName($class)); |
|
| 43 | + $internalName = 'tx_'.$key.'_'.strtolower(Helper::getUnqualifiedClassName($class)); |
|
| 44 | 44 | // General plugin |
| 45 | - $typoscript = 'plugin.' . $internalName . ' = USER' . ($cached ? '' : '_INT') . "\n"; |
|
| 46 | - $typoscript .= 'plugin.' . $internalName . '.userFunc = ' . $class . '->main' . "\n"; |
|
| 45 | + $typoscript = 'plugin.'.$internalName.' = USER'.($cached ? '' : '_INT')."\n"; |
|
| 46 | + $typoscript .= 'plugin.'.$internalName.'.userFunc = '.$class.'->main'."\n"; |
|
| 47 | 47 | parent::addTypoScript($key, 'setup', $typoscript); |
| 48 | 48 | // Add after defaultContentRendering |
| 49 | 49 | switch ($type) { |
| 50 | 50 | case 'list_type': |
| 51 | - $addLine = 'tt_content.list.20.' . $key . $suffix . ' = < plugin.' . $internalName; |
|
| 51 | + $addLine = 'tt_content.list.20.'.$key.$suffix.' = < plugin.'.$internalName; |
|
| 52 | 52 | break; |
| 53 | 53 | default: |
| 54 | 54 | $addLine = ''; |
@@ -54,12 +54,12 @@ |
||
| 54 | 54 | !empty($solrInfo['username']) |
| 55 | 55 | && !empty($solrInfo['password']) |
| 56 | 56 | ) { |
| 57 | - $host = $solrInfo['username'] . ':' . $solrInfo['password'] . '@' . $solrInfo['host']; |
|
| 57 | + $host = $solrInfo['username'].':'.$solrInfo['password'].'@'.$solrInfo['host']; |
|
| 58 | 58 | } else { |
| 59 | 59 | $host = $solrInfo['host']; |
| 60 | 60 | } |
| 61 | 61 | // Build request URI. |
| 62 | - $url = $solrInfo['scheme'] . '://' . $host . ':' . $solrInfo['port'] . '/' . $solrInfo['path'] . '/admin/cores?wt=xml'; |
|
| 62 | + $url = $solrInfo['scheme'].'://'.$host.':'.$solrInfo['port'].'/'.$solrInfo['path'].'/admin/cores?wt=xml'; |
|
| 63 | 63 | $context = stream_context_create([ |
| 64 | 64 | 'http' => [ |
| 65 | 65 | 'method' => 'GET', |