Completed
Push — master ( 40d170...cfb1a5 )
by Nikola
04:21
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.
migrations/m151031_160731_taxonomy.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,8 +11,9 @@
 block discarded – undo
11 11
         if ($this->db->driverName === 'mysql') {
12 12
             // http://stackoverflow.com/questions/766809/whats-the-difference-between-utf8-general-ci-and-utf8-unicode-ci
13 13
             return 'CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB';
14
-        } else
15
-            throw new Exception('Unsupported database.');
14
+        } else {
15
+                    throw new Exception('Unsupported database.');
16
+        }
16 17
     }
17 18
 
18 19
     public function up()
Please login to merge, or discard this patch.