@@ -180,7 +180,7 @@ discard block |
||
| 180 | 180 | protected function get($var, $tableName = null) |
| 181 | 181 | { |
| 182 | 182 | if ($tableName === null) { |
| 183 | - if (count($this->dbRows) > 1) { |
|
| 183 | + if (count($this->dbRows)>1) { |
|
| 184 | 184 | throw new TDBMException('This object is based on several tables. You must specify which table you are retrieving data from.'); |
| 185 | 185 | } elseif (count($this->dbRows) === 1) { |
| 186 | 186 | $tableName = array_keys($this->dbRows)[0]; |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | protected function set($var, $value, $tableName = null) |
| 202 | 202 | { |
| 203 | 203 | if ($tableName === null) { |
| 204 | - if (count($this->dbRows) > 1) { |
|
| 204 | + if (count($this->dbRows)>1) { |
|
| 205 | 205 | throw new TDBMException('This object is based on several tables. You must specify which table you are retrieving data from.'); |
| 206 | 206 | } elseif (count($this->dbRows) === 1) { |
| 207 | 207 | $tableName = array_keys($this->dbRows)[0]; |
@@ -227,7 +227,7 @@ discard block |
||
| 227 | 227 | protected function setRef($foreignKeyName, AbstractTDBMObject $bean, $tableName = null) |
| 228 | 228 | { |
| 229 | 229 | if ($tableName === null) { |
| 230 | - if (count($this->dbRows) > 1) { |
|
| 230 | + if (count($this->dbRows)>1) { |
|
| 231 | 231 | throw new TDBMException('This object is based on several tables. You must specify which table you are retrieving data from.'); |
| 232 | 232 | } elseif (count($this->dbRows) === 1) { |
| 233 | 233 | $tableName = array_keys($this->dbRows)[0]; |
@@ -254,7 +254,7 @@ discard block |
||
| 254 | 254 | protected function getRef($foreignKeyName, $tableName = null) |
| 255 | 255 | { |
| 256 | 256 | if ($tableName === null) { |
| 257 | - if (count($this->dbRows) > 1) { |
|
| 257 | + if (count($this->dbRows)>1) { |
|
| 258 | 258 | throw new TDBMException('This object is based on several tables. You must specify which table you are retrieving data from.'); |
| 259 | 259 | } elseif (count($this->dbRows) === 1) { |
| 260 | 260 | $tableName = array_keys($this->dbRows)[0]; |