@@ -287,9 +287,9 @@ discard block |
||
287 | 287 | |
288 | 288 | private static function setDefaultModelAttributes($myModel) |
289 | 289 | { |
290 | - $source =static::$fieldAttributes; |
|
290 | + $source = static::$fieldAttributes; |
|
291 | 291 | foreach ($myModel as $key => $value) { |
292 | - $source[$key]=$value; |
|
292 | + $source[$key] = $value; |
|
293 | 293 | } |
294 | 294 | return $source; |
295 | 295 | } |
@@ -303,7 +303,7 @@ discard block |
||
303 | 303 | private static function sanitizeDocItem($value, $myModel) |
304 | 304 | { |
305 | 305 | $myModel = self::setDefaultModelAttributes($myModel); |
306 | - if($myModel['_input_type']!='html'){ |
|
306 | + if ($myModel['_input_type'] != 'html') { |
|
307 | 307 | $value = filter_var($value, FILTER_SANITIZE_STRING, FILTER_FLAG_NO_ENCODE_QUOTES); |
308 | 308 | } |
309 | 309 | if (($myModel['_input_type'] == 'timestamp') && ($value == 'now')) { |