Completed
Push — master ( 5cbdfb...f4c8d8 )
by Nikola
05:45
created
behaviors/PropertyQueryBehavior.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -17,13 +17,15 @@
 block discarded – undo
17 17
         $this->joinTables();
18 18
 
19 19
 
20
-        if(!empty($name))
21
-            $this->getQuery()
20
+        if(!empty($name)) {
21
+                    $this->getQuery()
22 22
                 ->andFilterWhere([ TaxonomyTerms::tableName() . '.term' => $name ]);
23
+        }
23 24
 
24
-        if(!empty($value))
25
-            $this->getQuery()
25
+        if(!empty($value)) {
26
+                    $this->getQuery()
26 27
                 ->andFilterWhere([ $this->taxonomy->table . '.value' => $value ]);
28
+        }
27 29
 
28 30
         return $this->getQuery();
29 31
     }
Please login to merge, or discard this patch.