Code Duplication    Length = 8-8 lines in 2 locations

src/POData/ObjectModel/ObjectModelSerializerBase.php 1 location

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

src/POData/BaseService.php 1 location

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