@@ -60,7 +60,7 @@ |
||
60 | 60 | { |
61 | 61 | /** @var $facets FacetCollection */ |
62 | 62 | $facets = $arguments['facets']; |
63 | - $requiredGroup = isset($arguments['groupName']) ? $arguments['groupName'] : 'main'; |
|
63 | + $requiredGroup = isset($arguments['groupName']) ? $arguments['groupName'] : 'main'; |
|
64 | 64 | $filtered = $facets->getByGroupName($requiredGroup); |
65 | 65 | |
66 | 66 | $templateVariableProvider = $renderingContext->getVariableProvider(); |
@@ -87,7 +87,7 @@ |
||
87 | 87 | |
88 | 88 | foreach ($frequentSearchTerms as $term => $hits) { |
89 | 89 | $size = round($minimumSize + (($hits - $minimumHits) * $step)); |
90 | - $frequentSearches[] = ['q' => htmlspecialchars_decode($term), 'hits' => $hits, 'style' => 'font-size: ' . $size . 'px', 'class' => 'tx-solr-frequent-term-' . $size, 'size' => $size,]; |
|
90 | + $frequentSearches[] = ['q' => htmlspecialchars_decode($term), 'hits' => $hits, 'style' => 'font-size: ' . $size . 'px', 'class' => 'tx-solr-frequent-term-' . $size, 'size' => $size, ]; |
|
91 | 91 | } |
92 | 92 | } |
93 | 93 |
@@ -67,7 +67,7 @@ |
||
67 | 67 | /** @var $resultSet SearchResultSet */ |
68 | 68 | $resultSet = $arguments['resultSet']; |
69 | 69 | |
70 | - $maximumScore = $document->__solr_grouping_groupMaximumScore ? : $resultSet->getUsedSearch()->getMaximumResultScore(); |
|
70 | + $maximumScore = $document->__solr_grouping_groupMaximumScore ?: $resultSet->getUsedSearch()->getMaximumResultScore(); |
|
71 | 71 | $content = 0; |
72 | 72 | |
73 | 73 | if ($maximumScore <= 0) { |
@@ -14,10 +14,7 @@ |
||
14 | 14 | * The TYPO3 project - inspiring people to share! |
15 | 15 | */ |
16 | 16 | |
17 | -use ApacheSolrForTypo3\Solr\Domain\Search\ResultSet\SearchResultSet; |
|
18 | 17 | use ApacheSolrForTypo3\Solr\ViewHelpers\Uri\AbstractUriViewHelper; |
19 | -use TYPO3\CMS\Core\Utility\GeneralUtility; |
|
20 | -use TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder; |
|
21 | 18 | use TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface; |
22 | 19 | use TYPO3\CMS\Fluid\Core\ViewHelper\Facets\CompilableInterface; |
23 | 20 |
@@ -14,10 +14,7 @@ |
||
14 | 14 | * The TYPO3 project - inspiring people to share! |
15 | 15 | */ |
16 | 16 | |
17 | -use ApacheSolrForTypo3\Solr\Domain\Search\ResultSet\SearchResultSet; |
|
18 | 17 | use ApacheSolrForTypo3\Solr\ViewHelpers\Uri\AbstractUriViewHelper; |
19 | -use TYPO3\CMS\Core\Utility\GeneralUtility; |
|
20 | -use TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder; |
|
21 | 18 | use TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface; |
22 | 19 | use TYPO3\CMS\Fluid\Core\ViewHelper\Facets\CompilableInterface; |
23 | 20 |
@@ -14,10 +14,7 @@ |
||
14 | 14 | * The TYPO3 project - inspiring people to share! |
15 | 15 | */ |
16 | 16 | |
17 | -use ApacheSolrForTypo3\Solr\Domain\Search\ResultSet\SearchResultSet; |
|
18 | 17 | use ApacheSolrForTypo3\Solr\ViewHelpers\Uri\AbstractUriViewHelper; |
19 | -use TYPO3\CMS\Core\Utility\GeneralUtility; |
|
20 | -use TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder; |
|
21 | 18 | use TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface; |
22 | 19 | use TYPO3\CMS\Fluid\Core\ViewHelper\Facets\CompilableInterface; |
23 | 20 |
@@ -14,10 +14,7 @@ |
||
14 | 14 | * The TYPO3 project - inspiring people to share! |
15 | 15 | */ |
16 | 16 | |
17 | -use ApacheSolrForTypo3\Solr\Domain\Search\ResultSet\SearchResultSet; |
|
18 | 17 | use ApacheSolrForTypo3\Solr\ViewHelpers\Uri\AbstractUriViewHelper; |
19 | -use TYPO3\CMS\Core\Utility\GeneralUtility; |
|
20 | -use TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder; |
|
21 | 18 | use TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface; |
22 | 19 | use TYPO3\CMS\Fluid\Core\ViewHelper\Facets\CompilableInterface; |
23 | 20 |
@@ -24,7 +24,7 @@ |
||
24 | 24 | * @param string $time |
25 | 25 | * @param \DateTimeZone $timezone |
26 | 26 | */ |
27 | - public function __construct($time = 'now', \DateTimeZone $timezone=null) |
|
27 | + public function __construct($time = 'now', \DateTimeZone $timezone = null) |
|
28 | 28 | { |
29 | 29 | parent::__construct($time, $timezone); |
30 | 30 | } |
@@ -63,7 +63,6 @@ |
||
63 | 63 | * Register a facet type with its helper classes. |
64 | 64 | * |
65 | 65 | * @param string $facetType Facet type that can be used in a TypoScript facet configuration |
66 | - * @param string $rendererClassName Class used to render the facet UI |
|
67 | 66 | * @param string $filterEncoderClassName Class used to translate filter parameter from the URL to Lucene filter syntax |
68 | 67 | * @param string $queryFacetBuilderClassName Class used to build the facet parameters according to the facet's configuration |
69 | 68 | */ |