@@ -361,7 +361,7 @@ |
||
| 361 | 361 | protected function doASearch($query, $offSet) |
| 362 | 362 | { |
| 363 | 363 | $response = $this->search->search($query, $offSet, null); |
| 364 | - if($response === null) { |
|
| 364 | + if ($response === null) { |
|
| 365 | 365 | throw new SolrIncompleteResponseException('The response retrieved from solr was incomplete', 1505989678); |
| 366 | 366 | } |
| 367 | 367 | |
@@ -52,7 +52,7 @@ |
||
| 52 | 52 | return $this->getFilteredCopy(function(Option $option) use ($filteredPrefix) |
| 53 | 53 | { |
| 54 | 54 | $filteredPrefixLength = strlen($filteredPrefix); |
| 55 | - $currentPrefix = substr(strtolower($option->getLabel()),0, $filteredPrefixLength); |
|
| 55 | + $currentPrefix = substr(strtolower($option->getLabel()), 0, $filteredPrefixLength); |
|
| 56 | 56 | |
| 57 | 57 | return $currentPrefix === $filteredPrefix; |
| 58 | 58 | }); |
@@ -89,12 +89,12 @@ |
||
| 89 | 89 | */ |
| 90 | 90 | protected static function applySortBy(array $prefixes, $sortBy): array |
| 91 | 91 | { |
| 92 | - if($sortBy === 'count' || $sortBy === '') |
|
| 92 | + if ($sortBy === 'count' || $sortBy === '') |
|
| 93 | 93 | { |
| 94 | 94 | return $prefixes; |
| 95 | 95 | } |
| 96 | 96 | |
| 97 | - if($sortBy === 'alpha') |
|
| 97 | + if ($sortBy === 'alpha') |
|
| 98 | 98 | { |
| 99 | 99 | sort($prefixes); |
| 100 | 100 | return $prefixes; |
@@ -125,7 +125,7 @@ |
||
| 125 | 125 | } |
| 126 | 126 | |
| 127 | 127 | // calculate starting count for <ol> (items per page multiplied by (number of pages -1) and adding +1) |
| 128 | - $pagination['resultCountStart'] = (($this->getItemsPerPage() * ($this->currentPage-1))+1); |
|
| 128 | + $pagination['resultCountStart'] = (($this->getItemsPerPage() * ($this->currentPage - 1)) + 1); |
|
| 129 | 129 | return $pagination; |
| 130 | 130 | } |
| 131 | 131 | |
@@ -344,7 +344,7 @@ |
||
| 344 | 344 | * a complete and well formed "delete" xml document |
| 345 | 345 | * |
| 346 | 346 | * @param string $rawPost Expected to be utf-8 encoded xml document |
| 347 | - * @param float|int $timeout Maximum expected duration of the delete operation on the server (otherwise, will throw a communication exception) |
|
| 347 | + * @param integer $timeout Maximum expected duration of the delete operation on the server (otherwise, will throw a communication exception) |
|
| 348 | 348 | * @deprecated Since 8.0.0 will be removed in 9.0.0. Use getWriteService()->delete() instead |
| 349 | 349 | * |
| 350 | 350 | * @return \Apache_Solr_Response |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | */ |
| 153 | 153 | public function getAdminService() |
| 154 | 154 | { |
| 155 | - if($this->adminService === null) { |
|
| 155 | + if ($this->adminService === null) { |
|
| 156 | 156 | $this->adminService = GeneralUtility::makeInstance(SolrAdminService::class, $this->host, $this->port, $this->path, $this->scheme, $this->configuration, $this->logger, $this->synonymParser, $this->stopWordParser, $this->schemaParser); |
| 157 | 157 | } |
| 158 | 158 | |
@@ -164,7 +164,7 @@ discard block |
||
| 164 | 164 | */ |
| 165 | 165 | public function getReadService() |
| 166 | 166 | { |
| 167 | - if($this->readService === null) { |
|
| 167 | + if ($this->readService === null) { |
|
| 168 | 168 | $this->readService = GeneralUtility::makeInstance(SolrReadService::class, $this->host, $this->port, $this->path, $this->scheme, $this->configuration, $this->logger); |
| 169 | 169 | } |
| 170 | 170 | |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | */ |
| 177 | 177 | public function getWriteService() |
| 178 | 178 | { |
| 179 | - if($this->writeService === null) { |
|
| 179 | + if ($this->writeService === null) { |
|
| 180 | 180 | $this->writeService = GeneralUtility::makeInstance(SolrWriteService::class, $this->host, $this->port, $this->path, $this->scheme, $this->configuration, $this->logger); |
| 181 | 181 | } |
| 182 | 182 | |