Code Duplication    Length = 4-4 lines in 2 locations

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
    }

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

@@ 252-255 (lines=4) @@
249
            $msg = "Type must be a valid TFunctionImportParameterAndReturnType";
250
            return false;
251
        }
252
        if (null != $this->mode && !$this->isTParameterModeValid($this->mode)) {
253
            $msg = "Mode must be a valid TParameterMode";
254
            return false;
255
        }
256
        if (null != $this->maxLength && !$this->isTMaxLengthFacetValid($this->maxLength)) {
257
            $msg = "Max length must be a valid TMaxLengthFacet";
258
            return false;