Passed
Pull Request — master (#1267)
by Osma
03:25
created
model/ConceptSearchParameters.php 1 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') !== null ? $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.