Completed
Pull Request — master (#8)
by
unknown
02:06
created
components/terms/BaseTerm.php 1 patch
Braces   +8 added lines, -5 removed lines patch added patch discarded remove patch
@@ -74,8 +74,9 @@  discard block
 block discarded – undo
74 74
     }
75 75
 
76 76
     public function canInstall() {
77
-        if(!$this->getTable())
78
-            return 'Missing "table" property';
77
+        if(!$this->getTable()) {
78
+                    return 'Missing "table" property';
79
+        }
79 80
         return true;
80 81
     }
81 82
 
@@ -95,10 +96,12 @@  discard block
 block discarded – undo
95 96
 
96 97
     public function getRefTableName()
97 98
     {
98
-        if(strpos($this->refTable, '\\') === FALSE) //not an AR class but a table name
99
+        if(strpos($this->refTable, '\\') === FALSE) {
100
+            //not an AR class but a table name
99 101
             return $this->refTable;
100
-        else
101
-            return call_user_func([$this->refTable, 'tableName']);
102
+        } else {
103
+                    return call_user_func([$this->refTable, 'tableName']);
104
+        }
102 105
     }
103 106
 
104 107
     public function getTable()
Please login to merge, or discard this patch.