Code Duplication    Length = 8-8 lines in 2 locations

src/POData/ObjectModel/ObjectModelSerializerBase.php 1 location

@@ 256-263 (lines=8) @@
253
            $comma = ',';
254
        }
255
256
        if (!is_null($eTag)) {
257
            // If eTag is made up of datetime or string properties then the above
258
            // IType::converToOData will perform utf8 and url encode. But we don't
259
            // want this for eTag value.
260
            $eTag = urldecode(utf8_decode($eTag));
261
262
            return ODataConstants::HTTP_WEAK_ETAG_PREFIX . rtrim($eTag, ',') . '"';
263
        }
264
    }
265
266
    /**

src/POData/BaseService.php 1 location

@@ 803-810 (lines=8) @@
800
            $comma = ',';
801
        }
802
803
        if (!is_null($eTag)) {
804
            // If eTag is made up of datetime or string properties then the above
805
            // IType::convertToOData will perform utf8 and url encode. But we don't
806
            // want this for eTag value.
807
            $eTag = urldecode(utf8_decode($eTag));
808
809
            return rtrim($eTag, ',');
810
        }
811
        return null;
812
    }
813
}