@@ -255,7 +255,7 @@ discard block |
||
255 | 255 | { |
256 | 256 | /** @var $registry Registry */ |
257 | 257 | $registry = GeneralUtility::makeInstance(Registry::class); |
258 | - $servers = (array) $registry->get('tx_solr', 'servers', []); |
|
258 | + $servers = (array)$registry->get('tx_solr', 'servers', []); |
|
259 | 259 | return $servers; |
260 | 260 | } |
261 | 261 | |
@@ -339,7 +339,7 @@ discard block |
||
339 | 339 | $recursionRootPageId = intval($rootPageId); |
340 | 340 | if ($rootPageId == 'SITE_ROOT') { |
341 | 341 | $recursionRootPageId = $this->rootPage['uid']; |
342 | - $pageIds[] = (int) $this->rootPage['uid']; |
|
342 | + $pageIds[] = (int)$this->rootPage['uid']; |
|
343 | 343 | } |
344 | 344 | |
345 | 345 | if ($maxDepth <= 0) { |
@@ -381,7 +381,7 @@ discard block |
||
381 | 381 | $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery('uid', 'pages', 'pid = ' . $recursionRootPageId . ' ' . BackendUtility::deleteClause('pages') . $initialPagesAdditionalWhereClause); |
382 | 382 | |
383 | 383 | while ($page = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($result)) { |
384 | - $pageIds[] = (int) $page['uid']; |
|
384 | + $pageIds[] = (int)$page['uid']; |
|
385 | 385 | |
386 | 386 | if ($maxDepth > 1) { |
387 | 387 | $pageIds = array_merge($pageIds, $this->getPages($page['uid'], $maxDepth - 1)); |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | */ |
165 | 165 | public function __construct($keywords, $solrConfiguration = null, SiteHashService $siteHashService = null) |
166 | 166 | { |
167 | - $keywords = (string) $keywords; |
|
167 | + $keywords = (string)$keywords; |
|
168 | 168 | |
169 | 169 | $this->solrConfiguration = is_null($solrConfiguration) ? Util::getSolrConfiguration() : $solrConfiguration; |
170 | 170 | $this->siteHashService = is_null($siteHashService) ? GeneralUtility::makeInstance(SiteHashService::class) : $siteHashService; |
@@ -683,7 +683,7 @@ discard block |
||
683 | 683 | */ |
684 | 684 | public function getGroupFields() |
685 | 685 | { |
686 | - return (array) $this->getQueryParameter('group.field', []); |
|
686 | + return (array)$this->getQueryParameter('group.field', []); |
|
687 | 687 | } |
688 | 688 | |
689 | 689 | /** |
@@ -706,7 +706,7 @@ discard block |
||
706 | 706 | */ |
707 | 707 | public function getGroupSortings() |
708 | 708 | { |
709 | - return (array) $this->getQueryParameter('group.sort', []); |
|
709 | + return (array)$this->getQueryParameter('group.sort', []); |
|
710 | 710 | } |
711 | 711 | |
712 | 712 | // faceting |
@@ -732,7 +732,7 @@ discard block |
||
732 | 732 | */ |
733 | 733 | public function getGroupQueries() |
734 | 734 | { |
735 | - return (array) $this->getQueryParameter('group.query', []); |
|
735 | + return (array)$this->getQueryParameter('group.query', []); |
|
736 | 736 | } |
737 | 737 | |
738 | 738 | /** |
@@ -88,7 +88,7 @@ |
||
88 | 88 | */ |
89 | 89 | protected function getSystemHash() |
90 | 90 | { |
91 | - if(!isset($GLOBALS['TYPO3_CONF_VARS']['SYS']['sitename'])) { |
|
91 | + if (!isset($GLOBALS['TYPO3_CONF_VARS']['SYS']['sitename'])) { |
|
92 | 92 | throw new \InvalidArgumentException("No sitename set in TYPO3_CONF_VARS|SYS|sitename"); |
93 | 93 | } |
94 | 94 |