Code Duplication    Length = 7-7 lines in 2 locations

src/POData/Common/Version.php 1 location

@@ 126-132 (lines=7) @@
123
    private static $fixedVersion;
124
125
    private static function fillVersions(){
126
        if(is_null(self::$fixedVersion)){
127
            self::$fixedVersion = array(
128
                1 => new Version(1,0),
129
                2 => new Version(2,0),
130
                3 => new Version(3,0),
131
            );
132
        }
133
    }
134
135
    public static function v1()

src/POData/UriProcessor/RequestDescription.php 1 location

@@ 975-981 (lines=7) @@
972
     */
973
    public static function getKnownDataServiceVersions()
974
    {
975
        if (is_null(self::$_knownDataServiceVersions)) {
976
            self::$_knownDataServiceVersions = array(
977
                new Version(1, 0),
978
                new Version(2, 0),
979
                new Version(3, 0)
980
            );
981
        }
982
983
        return self::$_knownDataServiceVersions;
984
    }