@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | } else { |
| 47 | 47 | $fieldValue = $newValue; |
| 48 | 48 | } |
| 49 | - $count ++; |
|
| 49 | + $count++; |
|
| 50 | 50 | } elseif (!empty($this->fieldsAliases)) { // look up for the field aliases |
| 51 | 51 | $fieldAliases = array_keys($this->fieldsAliases, $fieldName); |
| 52 | 52 | if (!empty($fieldAliases)) { |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | } else { |
| 59 | 59 | $fieldValue = $newValue; |
| 60 | 60 | } |
| 61 | - $count ++; |
|
| 61 | + $count++; |
|
| 62 | 62 | |
| 63 | 63 | break; |
| 64 | 64 | } |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | |
| 93 | 93 | return $this; |
| 94 | 94 | } else { |
| 95 | - throw new \Exception("Object '" . get_class($this) . "' hasn't field '" . $fieldName . "'"); |
|
| 95 | + throw new \Exception("Object '".get_class($this)."' hasn't field '".$fieldName."'"); |
|
| 96 | 96 | } |
| 97 | 97 | } |
| 98 | 98 | |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | return $fieldsList; |
| 115 | 115 | } |
| 116 | 116 | |
| 117 | - return array_map(function ($e) { |
|
| 117 | + return array_map(function($e) { |
|
| 118 | 118 | if (is_string($e) && !is_null($e)) { |
| 119 | 119 | return stripslashes($e); |
| 120 | 120 | } |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | if (array_key_exists($fieldName, $this->fieldsList)) { |
| 140 | 140 | return stripslashes($this->fieldsList[$fieldName]); |
| 141 | 141 | } else { |
| 142 | - throw new \Exception("Object '" . get_class($this) . "' hasn't field '" . $fieldName . "'"); |
|
| 142 | + throw new \Exception("Object '".get_class($this)."' hasn't field '".$fieldName."'"); |
|
| 143 | 143 | } |
| 144 | 144 | } |
| 145 | 145 | |
@@ -217,7 +217,7 @@ discard block |
||
| 217 | 217 | * @return mixed The return value of the callback, or FALSE on error. |
| 218 | 218 | */ |
| 219 | 219 | public function __set($fieldName, $fieldValue) { |
| 220 | - return call_user_func_array([$this, "set" . ucfirst($fieldName)], [$fieldValue]); |
|
| 220 | + return call_user_func_array([$this, "set".ucfirst($fieldName)], [$fieldValue]); |
|
| 221 | 221 | } |
| 222 | 222 | |
| 223 | 223 | /** |
@@ -228,7 +228,7 @@ discard block |
||
| 228 | 228 | * @return mixed The return value of the callback, or FALSE on error. |
| 229 | 229 | */ |
| 230 | 230 | public function __get($fieldName) { |
| 231 | - return call_user_func_array([$this, "get" . ucfirst($fieldName)], []); |
|
| 231 | + return call_user_func_array([$this, "get".ucfirst($fieldName)], []); |
|
| 232 | 232 | } |
| 233 | 233 | |
| 234 | 234 | } |