Completed
Push — master ( b57bf8...8930a4 )
by Mehmet
03:07
created
src/ModelUtils.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -236,6 +236,9 @@
 block discarded – undo
236 236
         return $value;
237 237
     }
238 238
     
239
+    /**
240
+     * @param string $key
241
+     */
239 242
     private static function filterValidate($input_type, $key, $value, $format)
240 243
     {
241 244
         $filter_check = null;
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
             default:
215 215
                 if ($max_length !== null) {
216 216
                     if (strlen($value)>$max_length) {
217
-                        throw new \Exception("Error for value '".$value."' for '".$key."' couldn't pass the " .
217
+                        throw new \Exception("Error for value '".$value."' for '".$key."' couldn't pass the ".
218 218
                             "validation: It's length must be smaller than ".$max_length."  ");
219 219
                     }
220 220
                 }
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
 
335 335
         return $value;
336 336
     }
337
-    private static function setMaxMin($type, $value, $min_length, $max_length){
337
+    private static function setMaxMin($type, $value, $min_length, $max_length) {
338 338
         switch ($type) {
339 339
             case 'integer':
340 340
             case 'float':
@@ -347,7 +347,7 @@  discard block
 block discarded – undo
347 347
                 return $value;
348 348
                 break;
349 349
             case 'string':
350
-                if ($max_length !== null && strlen($value)>$max_length ) {
350
+                if ($max_length !== null && strlen($value)>$max_length) {
351 351
                     $value = substr($value, 0, $max_length);
352 352
                 }
353 353
                 return $value;
Please login to merge, or discard this patch.