@@ -63,7 +63,7 @@ |
||
63 | 63 | */ |
64 | 64 | public function getSelected() |
65 | 65 | { |
66 | - return $this->getFilteredCopy(function (AbstractFacetItem $item) { |
|
66 | + return $this->getFilteredCopy(function(AbstractFacetItem $item) { |
|
67 | 67 | return $item->getSelected(); |
68 | 68 | }); |
69 | 69 | } |
@@ -49,13 +49,13 @@ |
||
49 | 49 | */ |
50 | 50 | protected $endOffset = 0; |
51 | 51 | |
52 | - /** |
|
53 | - * @param string $suggestion the suggested term |
|
54 | - * @param string $missSpelled the misspelled original term |
|
55 | - * @param int $numFound |
|
56 | - * @param int $startOffset |
|
57 | - * @param int $endOffset |
|
58 | - */ |
|
52 | + /** |
|
53 | + * @param string $suggestion the suggested term |
|
54 | + * @param string $missSpelled the misspelled original term |
|
55 | + * @param int $numFound |
|
56 | + * @param int $startOffset |
|
57 | + * @param int $endOffset |
|
58 | + */ |
|
59 | 59 | public function __construct($suggestion = '', $missSpelled = '', $numFound = 1, $startOffset = 0, $endOffset = 0) |
60 | 60 | { |
61 | 61 | $this->suggestion = $suggestion; |
@@ -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 |
@@ -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 | } |
@@ -548,7 +548,7 @@ discard block |
||
548 | 548 | /** |
549 | 549 | * Activates and deactivates grouping for the current query. |
550 | 550 | * |
551 | - * @param bool|Grouping $grouping TRUE to enable grouping, FALSE to disable grouping |
|
551 | + * @param Grouping $grouping TRUE to enable grouping, FALSE to disable grouping |
|
552 | 552 | * @return void |
553 | 553 | */ |
554 | 554 | public function setGrouping($grouping = true) |
@@ -736,7 +736,7 @@ discard block |
||
736 | 736 | /** |
737 | 737 | * Activates and deactivates faceting for the current query. |
738 | 738 | * |
739 | - * @param bool|Faceting $faceting TRUE to enable faceting, FALSE to disable faceting |
|
739 | + * @param Faceting $faceting TRUE to enable faceting, FALSE to disable faceting |
|
740 | 740 | * @return void |
741 | 741 | */ |
742 | 742 | public function setFaceting($faceting = true) |
@@ -1043,7 +1043,7 @@ discard block |
||
1043 | 1043 | * |
1044 | 1044 | * This query supports the complete Lucene Query Language. |
1045 | 1045 | * |
1046 | - * @param mixed $alternativeQuery String alternative query or boolean FALSE to disable / reset the q.alt parameter. |
|
1046 | + * @param string $alternativeQuery String alternative query or boolean FALSE to disable / reset the q.alt parameter. |
|
1047 | 1047 | * @see http://wiki.apache.org/solr/DisMaxQParserPlugin#q.alt |
1048 | 1048 | */ |
1049 | 1049 | public function setAlternativeQuery($alternativeQuery) |
@@ -1231,7 +1231,7 @@ discard block |
||
1231 | 1231 | /** |
1232 | 1232 | * Enables or disables highlighting of search terms in result teasers. |
1233 | 1233 | * |
1234 | - * @param Highlighting|bool $highlighting Enables highlighting when set to TRUE, deactivates highlighting when set to FALSE, defaults to TRUE. |
|
1234 | + * @param Highlighting $highlighting Enables highlighting when set to TRUE, deactivates highlighting when set to FALSE, defaults to TRUE. |
|
1235 | 1235 | * @param int $fragmentSize Size, in characters, of fragments to consider for highlighting. |
1236 | 1236 | * @see http://wiki.apache.org/solr/HighlightingParameters |
1237 | 1237 | * @return void |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | namespace ApacheSolrForTypo3\Solr\Controller\Backend; |
4 | 4 | |
5 | 5 | /*************************************************************** |
@@ -148,7 +148,7 @@ |
||
148 | 148 | } |
149 | 149 | |
150 | 150 | /** |
151 | - * @param $pid |
|
151 | + * @param integer $pid |
|
152 | 152 | * @return \ApacheSolrForTypo3\Solr\System\Configuration\TypoScriptConfiguration|array |
153 | 153 | */ |
154 | 154 | protected function getConfigurationFromPageId($pid) |
@@ -63,11 +63,11 @@ |
||
63 | 63 | { |
64 | 64 | $newItems = []; |
65 | 65 | |
66 | - array_map(function ($fieldName) use (&$newItems, $configuredFacets) { |
|
66 | + array_map(function($fieldName) use (&$newItems, $configuredFacets) { |
|
67 | 67 | $value = $fieldName; |
68 | 68 | $label = $fieldName; |
69 | 69 | |
70 | - $facetNameFilter = function ($facet) use ($fieldName) { |
|
70 | + $facetNameFilter = function($facet) use ($fieldName) { |
|
71 | 71 | return $facet['field'] === $fieldName; |
72 | 72 | }; |
73 | 73 | $configuredFacets = array_filter($configuredFacets, $facetNameFilter); |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | public function getUsed() |
25 | 25 | { |
26 | 26 | return $this->getFilteredCopy( |
27 | - function (AbstractFacet $facet) { |
|
27 | + function(AbstractFacet $facet) { |
|
28 | 28 | return $facet->getIsUsed() && $facet->getIncludeInUsedFacets(); |
29 | 29 | } |
30 | 30 | ); |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | public function getAvailable() |
37 | 37 | { |
38 | 38 | return $this->getFilteredCopy( |
39 | - function (AbstractFacet $facet) { |
|
39 | + function(AbstractFacet $facet) { |
|
40 | 40 | return $facet->getIsAvailable() && $facet->getIncludeInAvailableFacets() && $facet->getAllRequirementsMet(); |
41 | 41 | } |
42 | 42 | ); |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | public function getByGroupName($requiredGroup = 'all') |
50 | 50 | { |
51 | 51 | return $this->getFilteredCopy( |
52 | - function (AbstractFacet $facet) use ($requiredGroup) { |
|
52 | + function(AbstractFacet $facet) use ($requiredGroup) { |
|
53 | 53 | return $facet->getGroupName() == $requiredGroup; |
54 | 54 | } |
55 | 55 | ); |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | public function getByName($requiredName) |
63 | 63 | { |
64 | 64 | return $this->getFilteredCopy( |
65 | - function (AbstractFacet $facet) use ($requiredName) { |
|
65 | + function(AbstractFacet $facet) use ($requiredName) { |
|
66 | 66 | return $facet->getName() == $requiredName; |
67 | 67 | } |
68 | 68 | ); |