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

@@ 256-259 (lines=4) @@
253
            $msg = "Type must be a valid TFunctionType";
254
            return false;
255
        }
256
        if (null != $this->mode && !$this->isTParameterModeValid($this->mode)) {
257
            $msg = "Mode must be a valid TParameterMode";
258
            return false;
259
        }
260
261
        return true;
262
    }