@@ -218,7 +218,7 @@ |
||
218 | 218 | $ucHelperKey = Util::underscoredToUpperCamelCase($helperKey); |
219 | 219 | $vendorNameSpace = 'ApacheSolrForTypo3\\Solr\\'; |
220 | 220 | $possibleFilename = $ucHelperKey . '.php'; |
221 | - $possibleClassName = $vendorNameSpace . str_replace('/', '\\', |
|
221 | + $possibleClassName = $vendorNameSpace . str_replace('/', '\\', |
|
222 | 222 | $viewHelperRealPath) . '\\' . $ucHelperKey; |
223 | 223 | |
224 | 224 | $viewHelperIncludePath = ExtensionManagementUtility::extPath($extensionKey) |
@@ -52,7 +52,7 @@ |
||
52 | 52 | */ |
53 | 53 | public function __construct($keywords, $solrConfiguration = null) |
54 | 54 | { |
55 | - $keywords = (string) $keywords; |
|
55 | + $keywords = (string)$keywords; |
|
56 | 56 | if ($solrConfiguration == null) { |
57 | 57 | $solrConfiguration = Util::getSolrConfiguration(); |
58 | 58 | } |
@@ -526,7 +526,7 @@ |
||
526 | 526 | $spellcheckingSuggestions = $suggestions; |
527 | 527 | |
528 | 528 | if (isset($this->response->spellcheck->collations)) { |
529 | - $collections = (array) $this->response->spellcheck->collations; |
|
529 | + $collections = (array)$this->response->spellcheck->collations; |
|
530 | 530 | $spellcheckingSuggestions['collation'] = $collections['collation']; |
531 | 531 | } |
532 | 532 | } |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | $activeFacets = $this->getActiveFacets(); |
155 | 155 | $facetNames = []; |
156 | 156 | |
157 | - array_map(function ($activeFacet) use (&$facetNames) { |
|
157 | + array_map(function($activeFacet) use (&$facetNames) { |
|
158 | 158 | $facetNames[] = substr($activeFacet, 0, strpos($activeFacet, ':')); |
159 | 159 | }, $activeFacets); |
160 | 160 | |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | $values = []; |
172 | 172 | $activeFacets = $this->getActiveFacets(); |
173 | 173 | |
174 | - array_map(function ($activeFacet) use (&$values, $facetName) { |
|
174 | + array_map(function($activeFacet) use (&$values, $facetName) { |
|
175 | 175 | $parts = explode(':', $activeFacet, 2); |
176 | 176 | if ($parts[0] === $facetName) { |
177 | 177 | $values[] = $parts[1]; |
@@ -273,7 +273,7 @@ discard block |
||
273 | 273 | public function removeAllFacetValuesByName($facetName) |
274 | 274 | { |
275 | 275 | $facetValues = $this->getActiveFacets(); |
276 | - $facetValues = array_filter($facetValues, function ($facetValue) use ($facetName) { |
|
276 | + $facetValues = array_filter($facetValues, function($facetValue) use ($facetName) { |
|
277 | 277 | $parts = explode(':', $facetValue, 2); |
278 | 278 | return $parts[0] !== $facetName; |
279 | 279 | }); |
@@ -370,7 +370,7 @@ |
||
370 | 370 | )); |
371 | 371 | |
372 | 372 | // restore |
373 | - $this->configuration= $backupConfiguration; |
|
373 | + $this->configuration = $backupConfiguration; |
|
374 | 374 | $parentContentObject->data = $backupRecord; |
375 | 375 | } |
376 | 376 |
@@ -287,8 +287,8 @@ |
||
287 | 287 | |
288 | 288 | $mountedPagesIdsWithQueueItems = []; |
289 | 289 | foreach ($queueItemsOfExistingMountPoints as $id => $queueItemsOfExistingMountPoint) { |
290 | - if (((int) $queueItemsOfExistingMountPoint['queueItemCount']) > 0) { |
|
291 | - $mountedPagesIdsWithQueueItems[] = (int) $id; |
|
290 | + if (((int)$queueItemsOfExistingMountPoint['queueItemCount']) > 0) { |
|
291 | + $mountedPagesIdsWithQueueItems[] = (int)$id; |
|
292 | 292 | } |
293 | 293 | } |
294 | 294 |
@@ -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 |
@@ -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 | /** |