Code Duplication    Length = 5-5 lines in 2 locations

src/POData/ObjectModel/ObjectModelSerializerBase.php 1 location

@@ 227-231 (lines=5) @@
224
                '!is_null($type) && $type instanceof IType'
225
            );
226
            $value = $this->getPropertyValue($entryObject, $resourceType, $eTagProperty);
227
            if (is_null($value)) {
228
                $eTag = $eTag . $comma . 'null';
229
            } else {
230
                $eTag = $eTag . $comma . $type->convertToOData($value);
231
            }
232
233
            $comma = ',';
234
        }

src/POData/BaseService.php 1 location

@@ 771-775 (lines=5) @@
768
                );
769
            }
770
771
            if (is_null($value)) {
772
                $eTag = $eTag . $comma . 'null';
773
            } else {
774
                $eTag = $eTag . $comma . $type->convertToOData($value);
775
            }
776
777
            $comma = ',';
778
        }