@@ -230,7 +230,7 @@ discard block |
||
| 230 | 230 | { |
| 231 | 231 | /** @var $registry Registry */ |
| 232 | 232 | $registry = GeneralUtility::makeInstance(Registry::class); |
| 233 | - $servers = (array) $registry->get('tx_solr', 'servers', []); |
|
| 233 | + $servers = (array)$registry->get('tx_solr', 'servers', []); |
|
| 234 | 234 | return $servers; |
| 235 | 235 | } |
| 236 | 236 | |
@@ -314,7 +314,7 @@ discard block |
||
| 314 | 314 | $recursionRootPageId = intval($rootPageId); |
| 315 | 315 | if ($rootPageId == 'SITE_ROOT') { |
| 316 | 316 | $recursionRootPageId = $this->rootPage['uid']; |
| 317 | - $pageIds[] = (int) $this->rootPage['uid']; |
|
| 317 | + $pageIds[] = (int)$this->rootPage['uid']; |
|
| 318 | 318 | } |
| 319 | 319 | |
| 320 | 320 | if ($maxDepth <= 0) { |
@@ -345,7 +345,7 @@ discard block |
||
| 345 | 345 | $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery('uid', 'pages', 'pid = ' . $recursionRootPageId . ' ' . BackendUtility::deleteClause('pages')); |
| 346 | 346 | |
| 347 | 347 | while ($page = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($result)) { |
| 348 | - $pageIds[] = (int) $page['uid']; |
|
| 348 | + $pageIds[] = (int)$page['uid']; |
|
| 349 | 349 | |
| 350 | 350 | if ($maxDepth > 1) { |
| 351 | 351 | $pageIds = array_merge($pageIds, $this->getPages($page['uid'], $maxDepth - 1)); |
@@ -276,7 +276,7 @@ discard block |
||
| 276 | 276 | */ |
| 277 | 277 | protected function performPingRequest($timeout = 2, $useCache = true) |
| 278 | 278 | { |
| 279 | - $cacheKey = (string) ($this); |
|
| 279 | + $cacheKey = (string)($this); |
|
| 280 | 280 | if ($useCache && isset(static::$pingCache[$cacheKey])) { |
| 281 | 281 | return static::$pingCache[$cacheKey]; |
| 282 | 282 | } |
@@ -610,7 +610,7 @@ discard block |
||
| 610 | 610 | $solrconfigXmlUrl = $this->_scheme . '://' |
| 611 | 611 | . $this->_host . ':' . $this->_port |
| 612 | 612 | . $this->_path . 'admin/file/?file=solrconfig.xml'; |
| 613 | - $response= $this->_sendRawGet($solrconfigXmlUrl); |
|
| 613 | + $response = $this->_sendRawGet($solrconfigXmlUrl); |
|
| 614 | 614 | |
| 615 | 615 | $solrconfigXml = simplexml_load_string($response->getRawResponse()); |
| 616 | 616 | if ($solrconfigXml === false) { |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | // try to create DateTime object |
| 56 | - $timezone = is_null($timezone) ? new DateTimeZone(date_default_timezone_get()) : $timezone; |
|
| 56 | + $timezone = is_null($timezone) ? new DateTimeZone(date_default_timezone_get()) : $timezone; |
|
| 57 | 57 | return $this->getFormattedDate($input, $inputFormat, $outputFormat, $timezone); |
| 58 | 58 | } |
| 59 | 59 | |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | $this->configuration = $site->getSolrConfiguration(); |
| 79 | 79 | $this->site = $site; |
| 80 | 80 | $this->indexQueue = is_null($queue) ? GeneralUtility::makeInstance(Queue::class) : $queue; |
| 81 | - $this->signalSlotDispatcher = is_null($dispatcher) ? GeneralUtility::makeInstance(Dispatcher::class) : $dispatcher; |
|
| 81 | + $this->signalSlotDispatcher = is_null($dispatcher) ? GeneralUtility::makeInstance(Dispatcher::class) : $dispatcher; |
|
| 82 | 82 | } |
| 83 | 83 | |
| 84 | 84 | /** |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | protected function generateIndexingErrorLog(Item $itemToIndex, \Exception $e) |
| 141 | 141 | { |
| 142 | 142 | $message = 'Failed indexing Index Queue item ' . $itemToIndex->getIndexQueueUid(); |
| 143 | - $data = [ 'code' => $e->getCode(), |
|
| 143 | + $data = ['code' => $e->getCode(), |
|
| 144 | 144 | 'message' => $e->getMessage(), |
| 145 | 145 | 'trace' => $e->getTrace(), |
| 146 | 146 | 'item' => (array)$itemToIndex]; |