Completed
Pull Request — master (#1319)
by Timo
33:49
created
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.