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

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