Code Duplication    Length = 9-9 lines in 2 locations

src/POData/Providers/Metadata/Type/Boolean.php 1 location

@@ 45-53 (lines=9) @@
42
     * 
43
     * @return boolean
44
     */
45
    public function validate($value, &$outValue)
46
    {
47
        if (strcmp($value, 'true') != 0 && strcmp($value, 'false') != 0) {
48
            return false;
49
        }
50
        
51
        $outValue = $value;
52
        return true;
53
    }
54
55
    /**
56
     * Convert the given value to a form that can be used in OData uri. 

src/POData/Providers/Metadata/Type/NullType.php 1 location

@@ 47-55 (lines=9) @@
44
     * 
45
     * @return boolean
46
     */
47
    public function validate($value, &$outValue)
48
    {
49
        if (strcmp($value, 'null') != 0) {
50
            return false;
51
        }
52
        
53
        $outValue = $value;
54
        return true;
55
    }
56
57
    /**
58
     * Gets full name of this type in EDM namespace