@@ -60,7 +60,7 @@ |
||
60 | 60 | } |
61 | 61 | |
62 | 62 | if (isset($cropConfiguration['cropFullWords'])) { |
63 | - $this->cropFullWords = (boolean) $cropConfiguration ['cropFullWords']; |
|
63 | + $this->cropFullWords = (boolean)$cropConfiguration ['cropFullWords']; |
|
64 | 64 | } |
65 | 65 | } |
66 | 66 |
@@ -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) |
@@ -1152,7 +1152,7 @@ |
||
1152 | 1152 | } |
1153 | 1153 | |
1154 | 1154 | /** |
1155 | - * @param $templateContent |
|
1155 | + * @param string $templateContent |
|
1156 | 1156 | * @return mixed |
1157 | 1157 | */ |
1158 | 1158 | public function setTemplateContent($templateContent) |
@@ -39,9 +39,9 @@ |
||
39 | 39 | */ |
40 | 40 | protected $configuration; |
41 | 41 | |
42 | - /** |
|
43 | - * @var string |
|
44 | - */ |
|
42 | + /** |
|
43 | + * @var string |
|
44 | + */ |
|
45 | 45 | protected $prefix; |
46 | 46 | |
47 | 47 | /** |
@@ -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 | }); |
@@ -324,7 +324,7 @@ |
||
324 | 324 | * Sets a request's parameter and its value. |
325 | 325 | * |
326 | 326 | * @param string $parameter Parameter name |
327 | - * @param mixed $value Parameter value. |
|
327 | + * @param string $value Parameter value. |
|
328 | 328 | */ |
329 | 329 | public function setParameter($parameter, $value) |
330 | 330 | { |
@@ -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 |
@@ -232,7 +232,7 @@ discard block |
||
232 | 232 | * |
233 | 233 | * Also does not report the time, see https://forge.typo3.org/issues/64551 |
234 | 234 | * |
235 | - * @param float|int $timeout maximum time to wait for ping in seconds, -1 for unlimited (default is 2) |
|
235 | + * @param integer $timeout maximum time to wait for ping in seconds, -1 for unlimited (default is 2) |
|
236 | 236 | * @param boolean $useCache indicates if the ping result should be cached in the instance or not |
237 | 237 | * @return bool TRUE if Solr can be reached, FALSE if not |
238 | 238 | */ |
@@ -245,7 +245,7 @@ discard block |
||
245 | 245 | /** |
246 | 246 | * Call the /admin/ping servlet, can be used to get the runtime of a ping request. |
247 | 247 | * |
248 | - * @param float|int $timeout maximum time to wait for ping in seconds, -1 for unlimited (default is 2) |
|
248 | + * @param integer $timeout maximum time to wait for ping in seconds, -1 for unlimited (default is 2) |
|
249 | 249 | * @param boolean $useCache indicates if the ping result should be cached in the instance or not |
250 | 250 | * @return double runtime in milliseconds |
251 | 251 | * @throws \ApacheSolrForTypo3\Solr\PingFailedException |
@@ -482,7 +482,7 @@ discard block |
||
482 | 482 | * |
483 | 483 | * @param string $url |
484 | 484 | * @param float|bool $timeout Read timeout in seconds |
485 | - * @return \Apache_Solr_Response |
|
485 | + * @return string |
|
486 | 486 | */ |
487 | 487 | protected function _sendRawGet($url, $timeout = false) |
488 | 488 | { |
@@ -656,7 +656,7 @@ discard block |
||
656 | 656 | * a complete and well formed "delete" xml document |
657 | 657 | * |
658 | 658 | * @param string $rawPost Expected to be utf-8 encoded xml document |
659 | - * @param float|int $timeout Maximum expected duration of the delete operation on the server (otherwise, will throw a communication exception) |
|
659 | + * @param integer $timeout Maximum expected duration of the delete operation on the server (otherwise, will throw a communication exception) |
|
660 | 660 | * @return \Apache_Solr_Response |
661 | 661 | */ |
662 | 662 | public function delete($rawPost, $timeout = 3600) |
@@ -302,7 +302,7 @@ discard block |
||
302 | 302 | */ |
303 | 303 | protected function performPingRequest($timeout = 2, $useCache = true) |
304 | 304 | { |
305 | - $cacheKey = (string) ($this); |
|
305 | + $cacheKey = (string)($this); |
|
306 | 306 | if ($useCache && isset(static::$pingCache[$cacheKey])) { |
307 | 307 | return static::$pingCache[$cacheKey]; |
308 | 308 | } |
@@ -631,7 +631,7 @@ discard block |
||
631 | 631 | $solrconfigXmlUrl = $this->_scheme . '://' |
632 | 632 | . $this->_host . ':' . $this->_port |
633 | 633 | . $this->_path . 'admin/file/?file=solrconfig.xml'; |
634 | - $response= $this->_sendRawGet($solrconfigXmlUrl); |
|
634 | + $response = $this->_sendRawGet($solrconfigXmlUrl); |
|
635 | 635 | |
636 | 636 | $solrconfigXml = simplexml_load_string($response->getRawResponse()); |
637 | 637 | if ($solrconfigXml === false) { |
@@ -896,7 +896,7 @@ discard block |
||
896 | 896 | { |
897 | 897 | $paths = explode('/', trim($this->_path, '/')); |
898 | 898 | |
899 | - return (string) array_pop($paths); |
|
899 | + return (string)array_pop($paths); |
|
900 | 900 | } |
901 | 901 | |
902 | 902 | /** |
@@ -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 |