Completed
Push — master ( 22c687...5d78eb )
by Dmytro
02:30
created
framework/core/Object.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
114 114
             return $fieldsList;
115 115
         }
116 116
 
117
-        return array_map(function ($e) {
117
+        return array_map(function($e) {
118 118
             return stripslashes($e);
119 119
         }, $this->fieldsList);
120 120
     }
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
         if (isset($this->fieldsList[$fieldName])) {
136 136
             return stripslashes($this->fieldsList[$fieldName]);
137 137
         } else {
138
-            throw new \Exception("Object '" . get_class($this) . "' hasn't field '" . $fieldName . "'");
138
+            throw new \Exception("Object '".get_class($this)."' hasn't field '".$fieldName."'");
139 139
         }
140 140
     }
141 141
 
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
      * @return mixed The return value of the callback, or FALSE on error.
214 214
      */
215 215
     public function __set($fieldName, $fieldValue) {
216
-        return call_user_func_array([$this, "set" . ucfirst($fieldName)], [$fieldValue]);
216
+        return call_user_func_array([$this, "set".ucfirst($fieldName)], [$fieldValue]);
217 217
     }
218 218
 
219 219
     /**
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
      * @return mixed The return value of the callback, or FALSE on error.
225 225
      */
226 226
     public function __get($fieldName) {
227
-        return call_user_func_array([$this, "get" . ucfirst($fieldName)], []);
227
+        return call_user_func_array([$this, "get".ucfirst($fieldName)], []);
228 228
     }
229 229
 
230 230
 }
Please login to merge, or discard this patch.