Code Duplication    Length = 4-4 lines in 2 locations

src/MetadataV3/edm/Groups/TFunctionImportParameterAttributesTrait.php 1 location

@@ 217-220 (lines=4) @@
214
            $msg = "Type must be a valid TFunctionImportParameterAndReturnType";
215
            return false;
216
        }
217
        if (null != $this->mode && !$this->isTParameterModeValid($this->mode)) {
218
            $msg = "Mode must be a valid TParameterMode";
219
            return false;
220
        }
221
        if (null != $this->maxLength && !$this->isTMaxLengthFacetValid($this->maxLength)) {
222
            $msg = "Max length must be a valid TMaxLengthFacet";
223
            return false;

src/MetadataV3/edm/ssdl/TParameterType.php 1 location

@@ 288-291 (lines=4) @@
285
            $msg = "Type must be a valid TFunctionType";
286
            return false;
287
        }
288
        if (null != $this->mode && !$this->isTParameterModeValid($this->mode)) {
289
            $msg = "Mode must be a valid TParameterMode";
290
            return false;
291
        }
292
293
        return true;
294
    }