Completed
Pull Request — master (#1319)
by Timo
33:49
created
Classes/Domain/Search/ResultSet/ResultSetReconstitutionProcessor.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Classes/System/Object/AbstractClassRegistry.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,8 +67,8 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Classes/Domain/Search/ResultSet/Facets/FacetRegistry.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
Classes/Domain/Search/ResultSet/Facets/AbstractFacetPackage.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -45,8 +45,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.