Code Duplication    Length = 8-8 lines in 2 locations

src/POData/ObjectModel/ObjectModelSerializerBase.php 1 location

@@ 241-248 (lines=8) @@
238
            $comma = ',';
239
        }
240
241
        if (!is_null($eTag)) {
242
            // If eTag is made up of datetime or string properties then the above
243
            // IType::converToOData will perform utf8 and url encode. But we don't
244
            // want this for eTag value.
245
            $eTag = urldecode(utf8_decode($eTag));
246
247
            return ODataConstants::HTTP_WEAK_ETAG_PREFIX . rtrim($eTag, ',') . '"';
248
        }
249
250
        return null;
251
    }

src/POData/BaseService.php 1 location

@@ 784-791 (lines=8) @@
781
            $comma = ',';
782
        }
783
784
        if (!is_null($eTag)) {
785
            // If eTag is made up of datetime or string properties then the above
786
            // IType::convertToOData will perform utf8 and url encode. But we don't
787
            // want this for eTag value.
788
            $eTag = urldecode(utf8_decode($eTag));
789
790
            return rtrim($eTag, ',');
791
        }
792
793
        return null;
794
    }