Code Duplication    Length = 5-5 lines in 2 locations

src/POData/BaseService.php 1 location

@@ 778-782 (lines=5) @@
775
                );
776
            }
777
778
            if (is_null($value)) {
779
                $eTag = $eTag . $comma . 'null';
780
            } else {
781
                $eTag = $eTag . $comma . $type->convertToOData($value);
782
            }
783
784
            $comma = ',';
785
        }

src/POData/ObjectModel/ObjectModelSerializerBase.php 1 location

@@ 232-236 (lines=5) @@
229
            $type = $eTagProperty->getInstanceType();
230
            assert(!is_null($type) && $type instanceof IType, 'is_null($type) || $type not instanceof IType');
231
            $value = $this->getPropertyValue($entryObject, $resourceType, $eTagProperty);
232
            if (is_null($value)) {
233
                $eTag = $eTag . $comma . 'null';
234
            } else {
235
                $eTag = $eTag . $comma . $type->convertToOData($value);
236
            }
237
238
            $comma = ',';
239
        }