Completed
Push — master ( b30ac8...5c3cc4 )
by Osma
21s queued 13s
created
model/ConceptSearchParameters.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,11 +71,11 @@
 block discarded – undo
71 71
         if ((!isset($term) || strlen(trim($term)) === 0) && $this->rest)
72 72
             $term = $this->request->getQueryParamRaw('label');
73 73
         $term = trim($term); // surrounding whitespace is not considered significant
74
-        $term = Normalizer::normalize( $term, Normalizer::FORM_C ); //Normalize decomposed unicode characters #1184
74
+        $term = Normalizer::normalize($term, Normalizer::FORM_C); //Normalize decomposed unicode characters #1184
75 75
         if ($this->rest) {
76 76
             return $term;
77 77
         }
78
-        return strpos($term, "*") === false ? $term . "*" : $term; // default to prefix search
78
+        return strpos($term, "*") === false ? $term."*" : $term; // default to prefix search
79 79
     }
80 80
 
81 81
     public function getContentLang()
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,8 +68,9 @@
 block discarded – undo
68 68
     public function getSearchTerm() : string
69 69
     {
70 70
         $term = $this->request->getQueryParamRaw('q') ? $this->request->getQueryParamRaw('q') : $this->request->getQueryParamRaw('query');
71
-        if ((!isset($term) || strlen(trim($term)) === 0) && $this->rest)
72
-            $term = $this->request->getQueryParamRaw('label');
71
+        if ((!isset($term) || strlen(trim($term)) === 0) && $this->rest) {
72
+                    $term = $this->request->getQueryParamRaw('label');
73
+        }
73 74
         $term = trim($term); // surrounding whitespace is not considered significant
74 75
         $term = Normalizer::normalize( $term, Normalizer::FORM_C ); //Normalize decomposed unicode characters #1184
75 76
         if ($this->rest) {
Please login to merge, or discard this patch.