Code Duplication    Length = 8-8 lines in 2 locations

src/POData/BaseService.php 1 location

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

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
    /**