Completed
Push — master ( f4c8d8...fbc7bc )
by Nikola
02:33
created
behaviors/PropertyQueryBehavior.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -17,13 +17,13 @@
 block discarded – undo
17 17
         $this->joinTables();
18 18
 
19 19
 
20
-        if(!empty($name))
20
+        if (!empty($name))
21 21
             $this->getQuery()
22
-                ->andFilterWhere([ TaxonomyTerms::tableName() . '.term' => $name ]);
22
+                ->andFilterWhere([TaxonomyTerms::tableName().'.term' => $name]);
23 23
 
24
-        if(!empty($value))
24
+        if (!empty($value))
25 25
             $this->getQuery()
26
-                ->andFilterWhere([ $this->taxonomy->table . '.value' => $value ]);
26
+                ->andFilterWhere([$this->taxonomy->table.'.value' => $value]);
27 27
 
28 28
         return $this->getQuery();
29 29
     }
Please login to merge, or discard this 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.