Code Duplication    Length = 8-8 lines in 2 locations

src/POData/ObjectModel/ObjectModelSerializerBase.php 1 location

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

src/POData/BaseService.php 1 location

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