@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | */ |
| 187 | 187 | private function checkTableName($tableName = null) { |
| 188 | 188 | if ($tableName === null) { |
| 189 | - if (count($this->dbRows) > 1) { |
|
| 189 | + if (count($this->dbRows)>1) { |
|
| 190 | 190 | throw new TDBMException('This object is based on several tables. You must specify which table you are retrieving data from.'); |
| 191 | 191 | } elseif (count($this->dbRows) === 1) { |
| 192 | 192 | $tableName = array_keys($this->dbRows)[0]; |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | protected function set($var, $value, $tableName = null) |
| 214 | 214 | { |
| 215 | 215 | if ($tableName === null) { |
| 216 | - if (count($this->dbRows) > 1) { |
|
| 216 | + if (count($this->dbRows)>1) { |
|
| 217 | 217 | throw new TDBMException('This object is based on several tables. You must specify which table you are retrieving data from.'); |
| 218 | 218 | } elseif (count($this->dbRows) === 1) { |
| 219 | 219 | $tableName = array_keys($this->dbRows)[0]; |
@@ -239,7 +239,7 @@ discard block |
||
| 239 | 239 | protected function setRef($foreignKeyName, AbstractTDBMObject $bean, $tableName = null) |
| 240 | 240 | { |
| 241 | 241 | if ($tableName === null) { |
| 242 | - if (count($this->dbRows) > 1) { |
|
| 242 | + if (count($this->dbRows)>1) { |
|
| 243 | 243 | throw new TDBMException('This object is based on several tables. You must specify which table you are retrieving data from.'); |
| 244 | 244 | } elseif (count($this->dbRows) === 1) { |
| 245 | 245 | $tableName = array_keys($this->dbRows)[0]; |