We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | 'page' => $this->list[$number]['page'] |
| 194 | 194 | ); |
| 195 | 195 | |
| 196 | - if(!empty($this->piVars['logicalPage'])) { |
|
| 196 | + if (!empty($this->piVars['logicalPage'])) { |
|
| 197 | 197 | |
| 198 | 198 | $additionalParams['logicalPage'] = $this->piVars['logicalPage']; |
| 199 | 199 | |
@@ -318,9 +318,9 @@ discard block |
||
| 318 | 318 | 'forceAbsoluteUrl' => 1 |
| 319 | 319 | ); |
| 320 | 320 | |
| 321 | - if(!empty($this->piVars['logicalPage'])) { |
|
| 321 | + if (!empty($this->piVars['logicalPage'])) { |
|
| 322 | 322 | |
| 323 | - $linkConf['additionalParams'] = \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId,array('logicalPage' => $this->piVars['logicalPage']), '', TRUE, FALSE); |
|
| 323 | + $linkConf['additionalParams'] = \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, array ('logicalPage' => $this->piVars['logicalPage']), '', TRUE, FALSE); |
|
| 324 | 324 | |
| 325 | 325 | } |
| 326 | 326 | |
@@ -437,7 +437,7 @@ discard block |
||
| 437 | 437 | 'highlight_word' => preg_replace('/\s\s+/', ';', $this->list->metadata['searchString']) |
| 438 | 438 | ); |
| 439 | 439 | |
| 440 | - if(!empty($this->piVars['logicalPage'])) { |
|
| 440 | + if (!empty($this->piVars['logicalPage'])) { |
|
| 441 | 441 | |
| 442 | 442 | $additionalParams['logicalPage'] = $this->piVars['logicalPage']; |
| 443 | 443 | |
@@ -302,13 +302,13 @@ discard block |
||
| 302 | 302 | // Check for plugin configuration. |
| 303 | 303 | if (!empty($this->conf['fulltext'])) { |
| 304 | 304 | |
| 305 | - $output .= ' <input class="tx-dlf-search-fulltext" id="tx-dlf-search-fulltext-no" type="radio" name="' . $this->prefixId . '[fulltext]" value="0" ' . ($isFulltextSearch == 0 ? 'checked="checked"' : '') .' />'; |
|
| 305 | + $output .= ' <input class="tx-dlf-search-fulltext" id="tx-dlf-search-fulltext-no" type="radio" name="'.$this->prefixId.'[fulltext]" value="0" '.($isFulltextSearch == 0 ? 'checked="checked"' : '').' />'; |
|
| 306 | 306 | |
| 307 | - $output .= ' <label for="tx-dlf-search-fulltext-no">' . $this->pi_getLL('label.inMetadata', '') . '</label>'; |
|
| 307 | + $output .= ' <label for="tx-dlf-search-fulltext-no">'.$this->pi_getLL('label.inMetadata', '').'</label>'; |
|
| 308 | 308 | |
| 309 | - $output .= ' <input class="tx-dlf-search-fulltext" id="tx-dlf-search-fulltext-yes" type="radio" name="' . $this->prefixId . '[fulltext]" value="1" ' . ($isFulltextSearch == 1 ? 'checked="checked"' : '') .'/>'; |
|
| 309 | + $output .= ' <input class="tx-dlf-search-fulltext" id="tx-dlf-search-fulltext-yes" type="radio" name="'.$this->prefixId.'[fulltext]" value="1" '.($isFulltextSearch == 1 ? 'checked="checked"' : '').'/>'; |
|
| 310 | 310 | |
| 311 | - $output .= ' <label for="tx-dlf-search-fulltext-yes">' . $this->pi_getLL('label.inFulltext', '') . '</label>'; |
|
| 311 | + $output .= ' <label for="tx-dlf-search-fulltext-yes">'.$this->pi_getLL('label.inFulltext', '').'</label>'; |
|
| 312 | 312 | |
| 313 | 313 | } |
| 314 | 314 | |
@@ -330,9 +330,9 @@ discard block |
||
| 330 | 330 | // Check for plugin configuration. |
| 331 | 331 | if (!empty($this->conf['showLogicalPageField'])) { |
| 332 | 332 | |
| 333 | - $output .= ' <label for="tx-dlf-search-logical-page">' . $this->pi_getLL('label.logicalPage', '') . ': </label>'; |
|
| 333 | + $output .= ' <label for="tx-dlf-search-logical-page">'.$this->pi_getLL('label.logicalPage', '').': </label>'; |
|
| 334 | 334 | |
| 335 | - $output .= ' <input class="tx-dlf-search-logical-page" id="tx-dlf-search-logical-page" type="text" name="' . $this->prefixId . '[logicalPage]" />'; |
|
| 335 | + $output .= ' <input class="tx-dlf-search-logical-page" id="tx-dlf-search-logical-page" type="text" name="'.$this->prefixId.'[logicalPage]" />'; |
|
| 336 | 336 | |
| 337 | 337 | } |
| 338 | 338 | |
@@ -353,7 +353,7 @@ discard block |
||
| 353 | 353 | */ |
| 354 | 354 | protected function getFacetsMenuEntry($field, $value, $count, $search, &$state) { |
| 355 | 355 | |
| 356 | - $entryArray = array(); |
|
| 356 | + $entryArray = array (); |
|
| 357 | 357 | |
| 358 | 358 | // Translate value. |
| 359 | 359 | if ($field == 'owner_faceting') { |
@@ -553,7 +553,7 @@ discard block |
||
| 553 | 553 | if ((!empty($this->conf['fulltext']) && !empty($this->piVars['fulltext'])) || preg_match('/fulltext:\((.*)\)/', $this->piVars['query'], $matches)) { |
| 554 | 554 | |
| 555 | 555 | // If the query already is a fulltext query e.g using the facets |
| 556 | - $this->piVars['query'] = empty($matches[1])?$this->piVars['query']:$matches[1]; |
|
| 556 | + $this->piVars['query'] = empty($matches[1]) ? $this->piVars['query'] : $matches[1]; |
|
| 557 | 557 | |
| 558 | 558 | // Search in fulltext field if applicable. query must not be empty! |
| 559 | 559 | if (!empty($this->piVars['query'])) { |
@@ -576,7 +576,7 @@ discard block |
||
| 576 | 576 | // Add extended search query. |
| 577 | 577 | if (!empty($this->piVars['extQuery']) && is_array($this->piVars['extQuery'])) { |
| 578 | 578 | |
| 579 | - $allowedOperators = array('AND', 'OR', 'NOT'); |
|
| 579 | + $allowedOperators = array ('AND', 'OR', 'NOT'); |
|
| 580 | 580 | |
| 581 | 581 | $allowedFields = \TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $this->conf['extendedFields'], TRUE); |
| 582 | 582 | |
@@ -679,22 +679,22 @@ discard block |
||
| 679 | 679 | // Clean output buffer. |
| 680 | 680 | \TYPO3\CMS\Core\Utility\GeneralUtility::cleanOutputBuffers(); |
| 681 | 681 | |
| 682 | - $additionalParams = array(); |
|
| 682 | + $additionalParams = array (); |
|
| 683 | 683 | |
| 684 | - if(!empty($this->piVars['logicalPage'])) { |
|
| 684 | + if (!empty($this->piVars['logicalPage'])) { |
|
| 685 | 685 | |
| 686 | 686 | $additionalParams['logicalPage'] = $this->piVars['logicalPage']; |
| 687 | 687 | |
| 688 | 688 | } |
| 689 | 689 | |
| 690 | 690 | // Jump directly to the page view, if there is only one result and it is configured |
| 691 | - if($results->count() == 1 && !empty($this->conf['showSingleResult'])) { |
|
| 691 | + if ($results->count() == 1 && !empty($this->conf['showSingleResult'])) { |
|
| 692 | 692 | |
| 693 | 693 | $linkConf['parameter'] = $this->conf['targetPidPageView']; |
| 694 | 694 | |
| 695 | 695 | $additionalParams['id'] = $results->current()['uid']; |
| 696 | 696 | $additionalParams['highlight_word'] = preg_replace('/\s\s+/', ';', $results->metadata['searchString']); |
| 697 | - $additionalParams['page'] = count($results[0]['subparts']) == 1?$results[0]['subparts'][0]['page']:1; |
|
| 697 | + $additionalParams['page'] = count($results[0]['subparts']) == 1 ? $results[0]['subparts'][0]['page'] : 1; |
|
| 698 | 698 | |
| 699 | 699 | } else { |
| 700 | 700 | |
@@ -568,7 +568,7 @@ discard block |
||
| 568 | 568 | |
| 569 | 569 | $details['id'] = $attributes['ID']; |
| 570 | 570 | |
| 571 | - $details['dmdId'] = (isset($attributes['DMDID']) ? $attributes['DMDID'] : ''); |
|
| 571 | + $details['dmdId'] = (isset($attributes['DMDID']) ? $attributes['DMDID'] : ''); |
|
| 572 | 572 | |
| 573 | 573 | $details['label'] = (isset($attributes['LABEL']) ? $attributes['LABEL'] : ''); |
| 574 | 574 | |
@@ -917,7 +917,7 @@ discard block |
||
| 917 | 917 | */ |
| 918 | 918 | public function getPhysicalPage($logicalPage) { |
| 919 | 919 | |
| 920 | - if(!empty( $this->lastSearchedPhysicalPage['logicalPage']) && $this->lastPhysicalPageSearch['logicalPage'] == $logicalPage) { |
|
| 920 | + if (!empty($this->lastSearchedPhysicalPage['logicalPage']) && $this->lastPhysicalPageSearch['logicalPage'] == $logicalPage) { |
|
| 921 | 921 | |
| 922 | 922 | return $this->lastSearchedPhysicalPage['physicalPage']; |
| 923 | 923 | |
@@ -925,9 +925,9 @@ discard block |
||
| 925 | 925 | |
| 926 | 926 | $physicalPage = 0; |
| 927 | 927 | |
| 928 | - foreach($this->physicalStructureInfo as $page) { |
|
| 928 | + foreach ($this->physicalStructureInfo as $page) { |
|
| 929 | 929 | |
| 930 | - if(strpos($page['orderlabel'], $logicalPage) !== false){ |
|
| 930 | + if (strpos($page['orderlabel'], $logicalPage) !== false) { |
|
| 931 | 931 | |
| 932 | 932 | $this->lastSearchedPhysicalPage['logicalPage'] = $logicalPage; |
| 933 | 933 | $this->lastSearchedPhysicalPage['physicalPage'] = $physicalPage; |
@@ -1351,7 +1351,7 @@ discard block |
||
| 1351 | 1351 | |
| 1352 | 1352 | if (TYPO3_DLOG) { |
| 1353 | 1353 | |
| 1354 | - \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_document->save('.$_pid.', '.$_core.')] Could not identify document/structure type ' . $GLOBALS['TYPO3_DB']->fullQuoteStr($metadata['type'][0], 'tx_dlf_structures'), |
|
| 1354 | + \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_document->save('.$_pid.', '.$_core.')] Could not identify document/structure type '.$GLOBALS['TYPO3_DB']->fullQuoteStr($metadata['type'][0], 'tx_dlf_structures'), |
|
| 1355 | 1355 | self::$extKey, SYSLOG_SEVERITY_ERROR); |
| 1356 | 1356 | |
| 1357 | 1357 | } |
@@ -1522,7 +1522,7 @@ discard block |
||
| 1522 | 1522 | |
| 1523 | 1523 | if ($parentLocation != $this->location) { |
| 1524 | 1524 | |
| 1525 | - $parentDoc =& tx_dlf_document::getInstance($parentLocation, $pid); |
|
| 1525 | + $parentDoc = & tx_dlf_document::getInstance($parentLocation, $pid); |
|
| 1526 | 1526 | |
| 1527 | 1527 | if ($parentDoc->ready) { |
| 1528 | 1528 | |
@@ -2436,7 +2436,7 @@ discard block |
||
| 2436 | 2436 | $hookObjects = tx_dlf_helper::getHookObjects('common/class.tx_dlf_document.php'); |
| 2437 | 2437 | |
| 2438 | 2438 | // Apply hooks. |
| 2439 | - foreach($hookObjects as $hookObj) { |
|
| 2439 | + foreach ($hookObjects as $hookObj) { |
|
| 2440 | 2440 | |
| 2441 | 2441 | if (method_exists($hookObj, 'construct_postProcessRecordId')) { |
| 2442 | 2442 | |