Completed
Push — master ( bdfdd6...dbc6ab )
by Mehmet
03:03
created
src/ModelUtils.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
                     return $my_doc[$key];
49 49
                 }
50 50
             } // Is the value of the array[key] have same variable type
51
-              //that stated in the definition of the model array.
51
+                //that stated in the definition of the model array.
52 52
             elseif (self::getType($my_doc[$key]) != $my_model[$key]['_type']) {
53 53
                 if ($my_key !== null) {
54 54
                     $my_key = $my_key." . ".$key;
@@ -389,7 +389,7 @@  discard block
 block discarded – undo
389 389
             'float' => 'float',
390 390
             'object' => 'object',
391 391
             'resource' => 'resource',
392
-			'null' => 'null'
392
+            'null' => 'null'
393 393
         ][strtolower(gettype($value))];
394 394
     }
395 395
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -305,7 +305,7 @@
 block discarded – undo
305 305
         $max_length = isset($my_model['_max_length']) ? $my_model['_max_length'] : null;
306 306
         $in_options = isset($my_model['_in_options']) ? $my_model['_in_options'] : null;
307 307
         $value = filter_var($value, FILTER_SANITIZE_FULL_SPECIAL_CHARS);
308
-        if(($input_type == 'timestamp') && ($value == 'now')){
308
+        if (($input_type == 'timestamp') && ($value == 'now')) {
309 309
                 $value = time();
310 310
         }
311 311
         settype($value, $type);
Please login to merge, or discard this patch.