@@ -13,7 +13,6 @@ |
||
| 13 | 13 | * |
| 14 | 14 | * The TYPO3 project - inspiring people to share! |
| 15 | 15 | */ |
| 16 | -use ApacheSolrForTypo3\Solr\Domain\Search\ResultSet\SearchResultSet; |
|
| 17 | 16 | |
| 18 | 17 | /** |
| 19 | 18 | * Abstract item that represent a value of a facet. E.g. an option or a node |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | { |
| 47 | 47 | $parser = $this->objectManager->get($this->getParserClassName()); |
| 48 | 48 | if (!$parser instanceof FacetParserInterface) { |
| 49 | - throw new InvalidFacetPackageException('Invalid parser for package ' . __CLASS__ ); |
|
| 49 | + throw new InvalidFacetPackageException('Invalid parser for package ' . __CLASS__); |
|
| 50 | 50 | } |
| 51 | 51 | return $parser; |
| 52 | 52 | } |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | { |
| 67 | 67 | $urlDecoder = $this->objectManager->get($this->getUrlDecoderClassName()); |
| 68 | 68 | if (!$urlDecoder instanceof FacetUrlDecoderInterface) { |
| 69 | - throw new InvalidUrlDecoderException('Invalid urldecoder for package ' . __CLASS__ ); |
|
| 69 | + throw new InvalidUrlDecoderException('Invalid urldecoder for package ' . __CLASS__); |
|
| 70 | 70 | } |
| 71 | 71 | return $urlDecoder; |
| 72 | 72 | } |
@@ -85,8 +85,8 @@ discard block |
||
| 85 | 85 | public function getQueryBuilder() |
| 86 | 86 | { |
| 87 | 87 | $urlDecoder = $this->objectManager->get($this->getQueryBuilderClassName()); |
| 88 | - if(!$urlDecoder instanceof FacetQueryBuilderInterface) { |
|
| 89 | - throw new InvalidQueryBuilderException('Invalid querybuilder for package ' . __CLASS__ ); |
|
| 88 | + if (!$urlDecoder instanceof FacetQueryBuilderInterface) { |
|
| 89 | + throw new InvalidQueryBuilderException('Invalid querybuilder for package ' . __CLASS__); |
|
| 90 | 90 | } |
| 91 | 91 | return $urlDecoder; |
| 92 | 92 | } |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | * This method decides if the condition is true or false |
| 50 | 50 | * |
| 51 | 51 | * @param array $arguments ViewHelper arguments to evaluate the condition for this ViewHelper. |
| 52 | - * @return bool |
|
| 52 | + * @return double |
|
| 53 | 53 | */ |
| 54 | 54 | protected static function evaluateCondition($arguments = null) |
| 55 | 55 | { |
@@ -80,7 +80,7 @@ |
||
| 80 | 80 | { |
| 81 | 81 | /** @var $service \TYPO3\CMS\Extbase\Service\FlexFormService::class */ |
| 82 | 82 | $service = GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\Service\FlexFormService::class); |
| 83 | - $this->flexformData = $service->convertFlexFormContentToArray($contentElement['pi_flexform']); |
|
| 83 | + $this->flexformData = $service->convertFlexFormContentToArray($contentElement['pi_flexform']); |
|
| 84 | 84 | $this->pluginContentElement = $contentElement; |
| 85 | 85 | } |
| 86 | 86 | |
@@ -219,7 +219,7 @@ |
||
| 219 | 219 | public function getIncludeInUsedFacets() |
| 220 | 220 | { |
| 221 | 221 | |
| 222 | - return ((int) $this->getFacetSettingOrDefaultValue('includeInUsedFacets', 1)) === 1; |
|
| 222 | + return ((int)$this->getFacetSettingOrDefaultValue('includeInUsedFacets', 1)) === 1; |
|
| 223 | 223 | } |
| 224 | 224 | |
| 225 | 225 | /** |
@@ -187,7 +187,7 @@ |
||
| 187 | 187 | } |
| 188 | 188 | if ($this->extensionConfiguration->getIsUseConfigurationTrackRecordsOutsideSiteroot()) { |
| 189 | 189 | $recordPageId = $this->getRecordPageId($table, $uid); |
| 190 | - if($recordPageId === 0) { |
|
| 190 | + if ($recordPageId === 0) { |
|
| 191 | 191 | return $rootPages; |
| 192 | 192 | } |
| 193 | 193 | $alternativeSiteRoots = $this->getAlternativeSiteRootPagesIds($table, $uid, $recordPageId); |
@@ -164,10 +164,10 @@ discard block |
||
| 164 | 164 | // direct access for small paths |
| 165 | 165 | case 1: |
| 166 | 166 | $this->data[$pathArray[0]] = $value; |
| 167 | - return; |
|
| 167 | + return; |
|
| 168 | 168 | case 2: |
| 169 | 169 | $this->data[$pathArray[0]][$pathArray[1]] = $value; |
| 170 | - return; |
|
| 170 | + return; |
|
| 171 | 171 | default: |
| 172 | 172 | $this->setDeepElementWithLoop($pathArray, $value); |
| 173 | 173 | } |
@@ -208,10 +208,10 @@ discard block |
||
| 208 | 208 | // direct access for small paths |
| 209 | 209 | case 1: |
| 210 | 210 | unset($this->data[$pathArray[0]]); |
| 211 | - return; |
|
| 211 | + return; |
|
| 212 | 212 | case 2: |
| 213 | 213 | unset($this->data[$pathArray[0]][$pathArray[1]]); |
| 214 | - return; |
|
| 214 | + return; |
|
| 215 | 215 | default: |
| 216 | 216 | $this->resetDeepElementWithLoop($pathArray); |
| 217 | 217 | } |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | public function removeByPrefix($filterFieldName) |
| 59 | 59 | { |
| 60 | 60 | foreach ($this->filters as $key => $filterString) { |
| 61 | - if (GeneralUtility::isFirstPartOfStr($filterString, $filterFieldName )) { |
|
| 61 | + if (GeneralUtility::isFirstPartOfStr($filterString, $filterFieldName)) { |
|
| 62 | 62 | unset($this->filters[$key]); |
| 63 | 63 | } |
| 64 | 64 | } |
@@ -84,7 +84,7 @@ |
||
| 84 | 84 | |
| 85 | 85 | $facetParameters = $this->buildFacetingParameters($allFacets, $typoScriptConfiguration); |
| 86 | 86 | foreach ($facetParameters as $facetParameter => $value) { |
| 87 | - if(strtolower($facetParameter) === 'facet.field') { |
|
| 87 | + if (strtolower($facetParameter) === 'facet.field') { |
|
| 88 | 88 | $query->getFaceting()->setFields($value); |
| 89 | 89 | } else { |
| 90 | 90 | $query->getFaceting()->addAdditionalParameter($facetParameter, $value); |