We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -200,14 +200,14 @@ discard block |
||
200 | 200 | |
201 | 201 | foreach (array ('AND', 'OR', 'NOT') as $operator) { |
202 | 202 | |
203 | - $operatorOptions .= '<option class="tx-dlf-search-operator-option tx-dlf-search-operator-'.$operator.'" value="'.$operator.'">'.$this->pi_getLL($operator, '', TRUE).'</option>'; |
|
203 | + $operatorOptions .= '<option class="tx-dlf-search-operator-option tx-dlf-search-operator-'.$operator.'" value="'.$operator.'">'.$this->pi_getLL($operator, '', true).'</option>'; |
|
204 | 204 | |
205 | 205 | } |
206 | 206 | |
207 | 207 | // Get field selector options. |
208 | 208 | $fieldSelectorOptions = ''; |
209 | 209 | |
210 | - $searchFields = \TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $this->conf['extendedFields'], TRUE); |
|
210 | + $searchFields = \TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $this->conf['extendedFields'], true); |
|
211 | 211 | |
212 | 212 | foreach ($searchFields as $searchField) { |
213 | 213 | |
@@ -263,7 +263,7 @@ discard block |
||
263 | 263 | // Get facets from plugin configuration. |
264 | 264 | $facets = array (); |
265 | 265 | |
266 | - foreach (\TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $this->conf['facets'], TRUE) as $facet) { |
|
266 | + foreach (\TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $this->conf['facets'], true) as $facet) { |
|
267 | 267 | |
268 | 268 | $facets[$facet.'_faceting'] = tx_dlf_helper::translate($facet, 'tx_dlf_metadata', $this->conf['pages']); |
269 | 269 | |
@@ -390,7 +390,7 @@ discard block |
||
390 | 390 | $queryColumn = array_column($search['params']['filterquery'], 'query'); |
391 | 391 | $index = array_search($field.':("'.tx_dlf_solr::escapeQuery($value).'")', $queryColumn); |
392 | 392 | |
393 | - if ($index !== FALSE) { |
|
393 | + if ($index !== false) { |
|
394 | 394 | |
395 | 395 | // Facet is selected, thus remove it from filter. |
396 | 396 | unset($queryColumn[$index]); |
@@ -404,7 +404,7 @@ discard block |
||
404 | 404 | //Reset facets |
405 | 405 | if ($this->conf['resetFacets']) { |
406 | 406 | //remove ($count) for selected facet in template |
407 | - $entryArray['count'] = FALSE; |
|
407 | + $entryArray['count'] = false; |
|
408 | 408 | //build link to delete selected facet |
409 | 409 | $entryArray['_OVERRIDE_HREF'] = $this->pi_linkTP_keepPIvars_url(array ('query' => $search['query'], 'fq' => $queryColumn)); |
410 | 410 | $entryArray['title'] = sprintf($this->pi_getLL('resetFacet', ''), $entryArray['title']); |
@@ -440,7 +440,7 @@ discard block |
||
440 | 440 | $this->init($conf); |
441 | 441 | |
442 | 442 | // Disable caching for this plugin. |
443 | - $this->setCache(FALSE); |
|
443 | + $this->setCache(false); |
|
444 | 444 | |
445 | 445 | // Quit without doing anything if required variables are not set. |
446 | 446 | if (empty($this->conf['solrcore'])) { |
@@ -536,7 +536,7 @@ discard block |
||
536 | 536 | } |
537 | 537 | |
538 | 538 | // Build label for result list. |
539 | - $label = $this->pi_getLL('search', '', TRUE); |
|
539 | + $label = $this->pi_getLL('search', '', true); |
|
540 | 540 | |
541 | 541 | if (!empty($this->piVars['query'])) { |
542 | 542 | |
@@ -573,7 +573,7 @@ discard block |
||
573 | 573 | |
574 | 574 | $allowedOperators = array ('AND', 'OR', 'NOT'); |
575 | 575 | |
576 | - $allowedFields = \TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $this->conf['extendedFields'], TRUE); |
|
576 | + $allowedFields = \TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $this->conf['extendedFields'], true); |
|
577 | 577 | |
578 | 578 | for ($i = 0; $i < count($this->piVars['extQuery']); $i++) { |
579 | 579 | |
@@ -630,7 +630,7 @@ discard block |
||
630 | 630 | |
631 | 631 | $params['filterquery'][]['query'] = 'collection_faceting:("'.tx_dlf_solr::escapeQuery($index_name).'")'; |
632 | 632 | |
633 | - $label .= sprintf($this->pi_getLL('in', '', TRUE), tx_dlf_helper::translate($index_name, 'tx_dlf_collections', $this->conf['pages'])); |
|
633 | + $label .= sprintf($this->pi_getLL('in', '', true), tx_dlf_helper::translate($index_name, 'tx_dlf_collections', $this->conf['pages'])); |
|
634 | 634 | |
635 | 635 | } |
636 | 636 | |
@@ -726,7 +726,7 @@ discard block |
||
726 | 726 | |
727 | 727 | } |
728 | 728 | |
729 | - $linkConf['additionalParams'] = \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, $additionalParams, '', TRUE, FALSE); |
|
729 | + $linkConf['additionalParams'] = \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, $additionalParams, '', true, false); |
|
730 | 730 | |
731 | 731 | // Send headers. |
732 | 732 | header('Location: '.\TYPO3\CMS\Core\Utility\GeneralUtility::locationHeaderUrl($this->cObj->typoLink_URL($linkConf))); |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | * @var boolean |
75 | 75 | * @access protected |
76 | 76 | */ |
77 | - protected $ready = FALSE; |
|
77 | + protected $ready = false; |
|
78 | 78 | |
79 | 79 | /** |
80 | 80 | * This holds the singleton search objects with their core as array key |
@@ -329,7 +329,7 @@ discard block |
||
329 | 329 | $start = max(intval($start), 0); |
330 | 330 | |
331 | 331 | // Check if core already exists. |
332 | - if (self::getInstance('dlfCore'.$start) === NULL) { |
|
332 | + if (self::getInstance('dlfCore'.$start) === null) { |
|
333 | 333 | |
334 | 334 | return $start; |
335 | 335 | |
@@ -430,7 +430,7 @@ discard block |
||
430 | 430 | 'core' => $this->core, |
431 | 431 | 'pid' => $this->cPid, |
432 | 432 | 'order' => 'score', |
433 | - 'order.asc' => TRUE, |
|
433 | + 'order.asc' => true, |
|
434 | 434 | 'numberOfHits' => $this->numberOfHits, |
435 | 435 | 'numberOfToplevelHits' => $numberOfToplevelHits |
436 | 436 | ) |
@@ -465,7 +465,7 @@ discard block |
||
465 | 465 | |
466 | 466 | $resultSet = []; |
467 | 467 | |
468 | - if (($entry = $cache->get($cacheIdentifier)) === FALSE) { |
|
468 | + if (($entry = $cache->get($cacheIdentifier)) === false) { |
|
469 | 469 | |
470 | 470 | $selectQuery = $this->service->createSelect(array_merge($this->params, $parameters)); |
471 | 471 | $result = $this->service->select($selectQuery); |
@@ -690,7 +690,7 @@ discard block |
||
690 | 690 | $this->core = $core; |
691 | 691 | |
692 | 692 | // Instantiation successful! |
693 | - $this->ready = TRUE; |
|
693 | + $this->ready = true; |
|
694 | 694 | |
695 | 695 | } catch (Exception $e) { |
696 | 696 |