Code Duplication    Length = 8-8 lines in 2 locations

src/POData/BaseService.php 1 location

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

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
    }