Code Duplication    Length = 5-5 lines in 2 locations

src/POData/BaseService.php 1 location

@@ 788-792 (lines=5) @@
785
                );
786
            }
787
788
            if (is_null($value)) {
789
                $eTag = $eTag . $comma. 'null';
790
            } else {
791
                $eTag = $eTag . $comma . $type->convertToOData($value);
792
            }
793
794
            $comma = ',';
795
        }

src/POData/ObjectModel/ObjectModelSerializerBase.php 1 location

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