@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | */ |
| 173 | 173 | public static function getPrimaryKeyVars() |
| 174 | 174 | { |
| 175 | - return !is_array(static::$primaryKey) ? [ static::$primaryKey ] : static::$primaryKey; |
|
| 175 | + return !is_array(static::$primaryKey) ? [static::$primaryKey] : static::$primaryKey; |
|
| 176 | 176 | } |
| 177 | 177 | |
| 178 | 178 | /** |
@@ -316,7 +316,7 @@ discard block |
||
| 316 | 316 | $em = EM::getInstance(static::class); |
| 317 | 317 | $getter = $em->getNamer()->getMethodName('get' . ucfirst($attribute), self::$namingSchemeMethods); |
| 318 | 318 | |
| 319 | - if (method_exists($this, $getter) && is_callable([ $this, $getter ])) { |
|
| 319 | + if (method_exists($this, $getter) && is_callable([$this, $getter])) { |
|
| 320 | 320 | return $this->$getter(); |
| 321 | 321 | } else { |
| 322 | 322 | $col = static::getColumnName($attribute); |
@@ -341,7 +341,7 @@ discard block |
||
| 341 | 341 | $em = EM::getInstance(static::class); |
| 342 | 342 | $getter = $em->getNamer()->getMethodName('get' . ucfirst($attribute), self::$namingSchemeMethods); |
| 343 | 343 | |
| 344 | - if (method_exists($this, $getter) && is_callable([ $this, $getter ])) { |
|
| 344 | + if (method_exists($this, $getter) && is_callable([$this, $getter])) { |
|
| 345 | 345 | return $this->$getter() !== null; |
| 346 | 346 | } else { |
| 347 | 347 | $col = static::getColumnName($attribute); |
@@ -378,7 +378,7 @@ discard block |
||
| 378 | 378 | $em = EM::getInstance(static::class); |
| 379 | 379 | $setter = $em->getNamer()->getMethodName('set' . ucfirst($attribute), self::$namingSchemeMethods); |
| 380 | 380 | |
| 381 | - if (method_exists($this, $setter) && is_callable([ $this, $setter ])) { |
|
| 381 | + if (method_exists($this, $setter) && is_callable([$this, $setter])) { |
|
| 382 | 382 | $oldValue = $this->__get($attribute); |
| 383 | 383 | $md5OldData = md5(serialize($this->data)); |
| 384 | 384 | $this->$setter($value); |
@@ -794,7 +794,7 @@ discard block |
||
| 794 | 794 | */ |
| 795 | 795 | public function serialize() |
| 796 | 796 | { |
| 797 | - return serialize([ $this->data, $this->relatedObjects ]); |
|
| 797 | + return serialize([$this->data, $this->relatedObjects]); |
|
| 798 | 798 | } |
| 799 | 799 | |
| 800 | 800 | /** |