@@ -14,7 +14,6 @@ |
||
14 | 14 | * The TYPO3 project - inspiring people to share! |
15 | 15 | */ |
16 | 16 | use ApacheSolrForTypo3\Solr\Domain\Search\LastSearches\LastSearchesService; |
17 | -use ApacheSolrForTypo3\Solr\Domain\Search\ResultSet\Facets\FacetParserRegistry; |
|
18 | 17 | use ApacheSolrForTypo3\Solr\Domain\Search\ResultSet\Facets\FacetRegistry; |
19 | 18 | use ApacheSolrForTypo3\Solr\Domain\Search\ResultSet\Sorting\Sorting; |
20 | 19 | use ApacheSolrForTypo3\Solr\Domain\Search\ResultSet\Spellchecking\Suggestion; |
@@ -67,8 +67,8 @@ |
||
67 | 67 | } |
68 | 68 | |
69 | 69 | /** |
70 | - * @param $type |
|
71 | - * @return mixed|string |
|
70 | + * @param string $type |
|
71 | + * @return string |
|
72 | 72 | */ |
73 | 73 | protected function resolveClassName($type) |
74 | 74 | { |
@@ -100,7 +100,7 @@ |
||
100 | 100 | public function getPackage($type) |
101 | 101 | { |
102 | 102 | $instance = $this->getInstance($type); |
103 | - if(!$instance instanceof AbstractFacetPackage) { |
|
103 | + if (!$instance instanceof AbstractFacetPackage) { |
|
104 | 104 | throw new \Exception('Invalid class registered for ' . htmlspecialchars($type)); |
105 | 105 | } |
106 | 106 | $instance->setObjectManager($this->objectManager); |
@@ -45,8 +45,8 @@ discard block |
||
45 | 45 | public function getParser() |
46 | 46 | { |
47 | 47 | $parser = $this->objectManager->get($this->getParserClassName()); |
48 | - if(!$parser instanceof FacetParserInterface) { |
|
49 | - throw new \Exception('Invalid parser for package ' . __CLASS__ ); |
|
48 | + if (!$parser instanceof FacetParserInterface) { |
|
49 | + throw new \Exception('Invalid parser for package ' . __CLASS__); |
|
50 | 50 | } |
51 | 51 | return $parser; |
52 | 52 | } |
@@ -65,8 +65,8 @@ discard block |
||
65 | 65 | public function getUrlDecoder() |
66 | 66 | { |
67 | 67 | $urlDecoder = $this->objectManager->get($this->getUrlDecoderClassName()); |
68 | - if(!$urlDecoder instanceof FacetUrlDecoderInterface) { |
|
69 | - throw new \Exception('Invalid urldecoder for package ' . __CLASS__ ); |
|
68 | + if (!$urlDecoder instanceof FacetUrlDecoderInterface) { |
|
69 | + throw new \Exception('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 \Exception('Invalid querybuilder for package ' . __CLASS__ ); |
|
88 | + if (!$urlDecoder instanceof FacetQueryBuilderInterface) { |
|
89 | + throw new \Exception('Invalid querybuilder for package ' . __CLASS__); |
|
90 | 90 | } |
91 | 91 | return $urlDecoder; |
92 | 92 | } |