Passed
Push — master ( 9cfb91...8e2b60 )
by Andreas
09:24
created
lib/midcom/helper/search/handler/search.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      */
60 60
     private function search_nodes(array $node, midcom_helper_nav $nap, string $prefix)
61 61
     {
62
-        if (   !array_key_exists($node[MIDCOM_NAV_COMPONENT], $this->_request_data['components'])
62
+        if (!array_key_exists($node[MIDCOM_NAV_COMPONENT], $this->_request_data['components'])
63 63
             && $node[MIDCOM_NAV_COMPONENT] != 'midcom.helper.search') {
64 64
             $l10n = $this->_i18n->get_l10n($node[MIDCOM_NAV_COMPONENT]);
65 65
             $this->_request_data['components'][$node[MIDCOM_NAV_COMPONENT]] = $l10n->get($node[MIDCOM_NAV_COMPONENT]);
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
         }
107 107
         $this->prepare_formdata($type, $request);
108 108
 
109
-        if (   count(explode(' ', $data['query'])) == 1
109
+        if (count(explode(' ', $data['query'])) == 1
110 110
             && !str_contains($data['query'], '*')
111 111
             && $this->_config->get('single_term_auto_wildcard')) {
112 112
             //If there is only one search term append * to the query if auto_wildcard is enabled
Please login to merge, or discard this patch.