@@ -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)); |
@@ -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]; |
@@ -123,7 +123,7 @@ |
||
123 | 123 | |
124 | 124 | if ($coresReloaded) { |
125 | 125 | $this->addFlashMessage( |
126 | - 'Core configuration reloaded ('.implode(', ', $reloadedCores).').', |
|
126 | + 'Core configuration reloaded (' . implode(', ', $reloadedCores) . ').', |
|
127 | 127 | '', |
128 | 128 | FlashMessage::OK |
129 | 129 | ); |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | */ |
301 | 301 | protected function performPingRequest($timeout = 2, $useCache = true) |
302 | 302 | { |
303 | - $cacheKey = (string) ($this); |
|
303 | + $cacheKey = (string)($this); |
|
304 | 304 | if ($useCache && isset(static::$pingCache[$cacheKey])) { |
305 | 305 | return static::$pingCache[$cacheKey]; |
306 | 306 | } |
@@ -629,7 +629,7 @@ discard block |
||
629 | 629 | $solrconfigXmlUrl = $this->_scheme . '://' |
630 | 630 | . $this->_host . ':' . $this->_port |
631 | 631 | . $this->_path . 'admin/file/?file=solrconfig.xml'; |
632 | - $response= $this->_sendRawGet($solrconfigXmlUrl); |
|
632 | + $response = $this->_sendRawGet($solrconfigXmlUrl); |
|
633 | 633 | |
634 | 634 | $solrconfigXml = simplexml_load_string($response->getRawResponse()); |
635 | 635 | if ($solrconfigXml === false) { |
@@ -892,7 +892,7 @@ discard block |
||
892 | 892 | */ |
893 | 893 | public function getCoreName() |
894 | 894 | { |
895 | - return (string) array_pop(explode('/', trim($this->_path, '/'))); |
|
895 | + return (string)array_pop(explode('/', trim($this->_path, '/'))); |
|
896 | 896 | } |
897 | 897 | |
898 | 898 | /** |
@@ -173,7 +173,7 @@ |
||
173 | 173 | 'auth', // service type |
174 | 174 | AuthorizationService::class, |
175 | 175 | // service key |
176 | - [ // service meta data |
|
176 | + [// service meta data |
|
177 | 177 | 'title' => 'Solr Indexer Authorization', |
178 | 178 | 'description' => 'Authorizes the Solr Index Queue indexer to access protected pages.', |
179 | 179 |
@@ -48,7 +48,7 @@ |
||
48 | 48 | */ |
49 | 49 | public function __construct($TCA = null) |
50 | 50 | { |
51 | - $this->tca = (array) (is_null($TCA) ? $GLOBALS['TCA'] : $TCA); |
|
51 | + $this->tca = (array)(is_null($TCA) ? $GLOBALS['TCA'] : $TCA); |
|
52 | 52 | } |
53 | 53 | |
54 | 54 | /** |