Completed
Push — master ( ec5058...2a1602 )
by Mehmet
06:46 queued 03:43
created
src/ModelUtils.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -287,9 +287,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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')) {
Please login to merge, or discard this patch.