Code Duplication    Length = 5-5 lines in 2 locations

lib/Property/Collection.php 2 locations

@@ 405-409 (lines=5) @@
402
                        // Class name for validation
403
                        $value = $v;
404
                        $valid = true;
405
                    } elseif (method_exists($this, $v)) {
406
                        // Name of validation method
407
                        $value = [$this, $v];
408
                        $valid = true;
409
                    } else {
410
                        // Explicitly given list of valid values
411
                        $valid = true;
412
                    }
@@ 417-421 (lines=5) @@
414
                    if (class_exists($value)) {
415
                        // Explicitly given class name for validation
416
                        $valid = true;
417
                    } elseif (method_exists($this, $value)) {
418
                        // Explicitly given name of validation method
419
                        $value = [$this, $value];
420
                        $valid = true;
421
                    }
422
                } /** @noinspection NotOptimalIfConditionsInspection */ elseif (is_array($value)) {
423
                    // Explicitly given list of valid values
424
                    $valid = true;